summaryrefslogtreecommitdiff
path: root/library/cipher_wrap.c
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2015-04-28 18:02:54 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2015-04-28 18:02:54 +0200
commit6963ff096963a7875a76cbe9e94b14cabc20857a (patch)
treeaf3dcc2682d377f580ca22c507da63afa36338e2 /library/cipher_wrap.c
parentd54e617ea618e2465842ffa04d03b784cb642c8e (diff)
Split mbedtls_ccm_init() -> setkey()
Diffstat (limited to 'library/cipher_wrap.c')
-rw-r--r--library/cipher_wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cipher_wrap.c b/library/cipher_wrap.c
index ebc3c4f4..eb291b68 100644
--- a/library/cipher_wrap.c
+++ b/library/cipher_wrap.c
@@ -395,7 +395,7 @@ static const mbedtls_cipher_info_t aes_256_gcm_info = {
static int ccm_aes_setkey_wrap( void *ctx, const unsigned char *key,
unsigned int key_length )
{
- return mbedtls_ccm_init( (mbedtls_ccm_context *) ctx, MBEDTLS_CIPHER_ID_AES,
+ return mbedtls_ccm_setkey( (mbedtls_ccm_context *) ctx, MBEDTLS_CIPHER_ID_AES,
key, key_length );
}
@@ -752,7 +752,7 @@ static const mbedtls_cipher_info_t camellia_256_gcm_info = {
static int ccm_camellia_setkey_wrap( void *ctx, const unsigned char *key,
unsigned int key_length )
{
- return mbedtls_ccm_init( (mbedtls_ccm_context *) ctx, MBEDTLS_CIPHER_ID_CAMELLIA,
+ return mbedtls_ccm_setkey( (mbedtls_ccm_context *) ctx, MBEDTLS_CIPHER_ID_CAMELLIA,
key, key_length );
}