diff options
Diffstat (limited to 'chip/g/dcrypto/dcrypto.h')
-rw-r--r-- | chip/g/dcrypto/dcrypto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chip/g/dcrypto/dcrypto.h b/chip/g/dcrypto/dcrypto.h index 93763b1f26..f51907f767 100644 --- a/chip/g/dcrypto/dcrypto.h +++ b/chip/g/dcrypto/dcrypto.h @@ -21,6 +21,10 @@ #include "cryptoc/hmac.h" +#ifdef __cplusplus +extern "C" { +#endif + enum cipher_mode { CIPHER_MODE_ECB = 0, CIPHER_MODE_CTR = 1, @@ -337,4 +341,8 @@ BUILD_ASSERT(DCRYPTO_CIPHER_SALT_SIZE == CIPHER_SALT_SIZE); int DCRYPTO_app_cipher(enum dcrypto_appid appid, const void *salt, void *out, const void *in, size_t len); +#ifdef __cplusplus +} +#endif + #endif /* ! __EC_CHIP_G_DCRYPTO_DCRYPTO_H */ |