Lines Matching refs:length

148 static int ccm_auth_crypt( mbedtls_ccm_context *ctx, int mode, size_t length,  in ccm_auth_crypt()  argument
202 for( i = 0, len_left = length; i < q; i++, len_left >>= 8 ) in ccm_auth_crypt()
267 len_left = length; in ccm_auth_crypt()
319 int mbedtls_ccm_star_encrypt_and_tag( mbedtls_ccm_context *ctx, size_t length, in mbedtls_ccm_star_encrypt_and_tag() argument
328 CCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_ccm_star_encrypt_and_tag()
329 CCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_ccm_star_encrypt_and_tag()
331 return( ccm_auth_crypt( ctx, CCM_ENCRYPT, length, iv, iv_len, in mbedtls_ccm_star_encrypt_and_tag()
335 int mbedtls_ccm_encrypt_and_tag( mbedtls_ccm_context *ctx, size_t length, in mbedtls_ccm_encrypt_and_tag() argument
344 CCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_ccm_encrypt_and_tag()
345 CCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_ccm_encrypt_and_tag()
350 return( mbedtls_ccm_star_encrypt_and_tag( ctx, length, iv, iv_len, add, in mbedtls_ccm_encrypt_and_tag()
357 int mbedtls_ccm_star_auth_decrypt( mbedtls_ccm_context *ctx, size_t length, in mbedtls_ccm_star_auth_decrypt() argument
371 CCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_ccm_star_auth_decrypt()
372 CCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_ccm_star_auth_decrypt()
375 if( ( ret = ccm_auth_crypt( ctx, CCM_DECRYPT, length, in mbedtls_ccm_star_auth_decrypt()
388 mbedtls_platform_zeroize( output, length ); in mbedtls_ccm_star_auth_decrypt()
395 int mbedtls_ccm_auth_decrypt( mbedtls_ccm_context *ctx, size_t length, in mbedtls_ccm_auth_decrypt() argument
404 CCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_ccm_auth_decrypt()
405 CCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_ccm_auth_decrypt()
411 return( mbedtls_ccm_star_auth_decrypt( ctx, length, iv, iv_len, add, in mbedtls_ccm_auth_decrypt()