Fix CMAC interface for doxygen

Parameters didn't match the function definition.
This commit is contained in:
Simon Butcher 2016-10-05 15:33:53 +01:00
parent 08e890004c
commit 5805fbedcb
2 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ struct mbedtls_cmac_context_t
* \return 0 if successful, or a cipher specific error code * \return 0 if successful, or a cipher specific error code
*/ */
int mbedtls_cipher_cmac_starts( mbedtls_cipher_context_t *ctx, int mbedtls_cipher_cmac_starts( mbedtls_cipher_context_t *ctx,
const unsigned char *key, size_t keylen ); const unsigned char *key, size_t keybits );
/** /**
* \brief Generic CMAC process buffer. * \brief Generic CMAC process buffer.

View file

@ -201,7 +201,7 @@ static void cmac_pad( unsigned char padded_block[16],
} }
int mbedtls_cipher_cmac_starts( mbedtls_cipher_context_t *ctx, int mbedtls_cipher_cmac_starts( mbedtls_cipher_context_t *ctx,
const unsigned char *key, size_t keylen ) const unsigned char *key, size_t keybits )
{ {
mbedtls_cipher_type_t type; mbedtls_cipher_type_t type;
mbedtls_cmac_context_t *cmac_ctx; mbedtls_cmac_context_t *cmac_ctx;
@ -211,7 +211,7 @@ int mbedtls_cipher_cmac_starts( mbedtls_cipher_context_t *ctx,
if( ctx == NULL || ctx->cipher_info == NULL || key == NULL ) if( ctx == NULL || ctx->cipher_info == NULL || key == NULL )
return( MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA ); return( MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA );
if( ( retval = mbedtls_cipher_setkey( ctx, key, keylen, if( ( retval = mbedtls_cipher_setkey( ctx, key, keybits,
MBEDTLS_ENCRYPT ) ) != 0 ) MBEDTLS_ENCRYPT ) ) != 0 )
return( retval ); return( retval );