Rename cipher_init_ctx() to cipher_setup()

This commit is contained in:
Manuel Pégourié-Gonnard 2015-05-14 13:51:45 +02:00
parent 51f14be888
commit 8473f87984
11 changed files with 26 additions and 26 deletions

View file

@ -195,7 +195,7 @@ int mbedtls_pkcs12_pbe( mbedtls_asn1_buf *pbe_params, int mode,
mbedtls_cipher_init( &cipher_ctx );
if( ( ret = mbedtls_cipher_init_ctx( &cipher_ctx, cipher_info ) ) != 0 )
if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 )
goto exit;
if( ( ret = mbedtls_cipher_setkey( &cipher_ctx, key, 8 * keylen, (mbedtls_operation_t) mode ) ) != 0 )