• Home
  • Raw
  • Download

Lines Matching refs:mac_size

2290     operation->mac_size = 0;  in psa_mac_abort()
2300 uint8_t *mac_size ) in psa_mac_finalize_alg_and_key_validation() argument
2315 *mac_size = PSA_MAC_LENGTH( key_type, key_bits, alg ); in psa_mac_finalize_alg_and_key_validation()
2317 if( *mac_size < 4 ) in psa_mac_finalize_alg_and_key_validation()
2326 if( *mac_size > PSA_MAC_LENGTH( key_type, key_bits, in psa_mac_finalize_alg_and_key_validation()
2364 &operation->mac_size ); in psa_mac_setup()
2432 size_t mac_size, in psa_mac_sign_finish() argument
2452 if( operation->mac_size == 0 ) in psa_mac_sign_finish()
2458 if( mac_size < operation->mac_size ) in psa_mac_sign_finish()
2465 mac, operation->mac_size, in psa_mac_sign_finish()
2477 *mac_length = mac_size; in psa_mac_sign_finish()
2478 operation->mac_size = 0; in psa_mac_sign_finish()
2481 if( mac_size > operation->mac_size ) in psa_mac_sign_finish()
2482 memset( &mac[operation->mac_size], '!', in psa_mac_sign_finish()
2483 mac_size - operation->mac_size ); in psa_mac_sign_finish()
2509 if( operation->mac_size != mac_length ) in psa_mac_verify_finish()
2529 size_t mac_size, in psa_mac_compute_internal() argument
2554 if( mac_size < operation_mac_size ) in psa_mac_compute_internal()
2576 *mac_length = mac_size; in psa_mac_compute_internal()
2579 if( mac_size > operation_mac_size ) in psa_mac_compute_internal()
2580 memset( &mac[operation_mac_size], '!', mac_size - operation_mac_size ); in psa_mac_compute_internal()
2592 size_t mac_size, in psa_mac_compute() argument
2597 mac, mac_size, mac_length, 1 ) ); in psa_mac_compute()
4328 operation->mac_size = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_start_hmac()