• Home
  • Raw
  • Download

Lines Matching refs:alg

53     hmac->alg = hash_alg;  in psa_hmac_setup_internal()
120 psa_algorithm_t hash_alg = hmac->alg; in psa_hmac_finish_internal()
199 psa_algorithm_t alg ) in mac_init() argument
203 operation->alg = alg; in mac_init()
206 if( PSA_ALG_FULL_LENGTH_MAC( operation->alg ) == PSA_ALG_CMAC ) in mac_init()
214 if( PSA_ALG_IS_HMAC( operation->alg ) ) in mac_init()
217 operation->ctx.hmac.alg = 0; in mac_init()
234 if( operation->alg == 0 ) in mbedtls_psa_mac_abort()
243 if( PSA_ALG_FULL_LENGTH_MAC( operation->alg ) == PSA_ALG_CMAC ) in mbedtls_psa_mac_abort()
250 if( PSA_ALG_IS_HMAC( operation->alg ) ) in mbedtls_psa_mac_abort()
262 operation->alg = 0; in mbedtls_psa_mac_abort()
279 psa_algorithm_t alg ) in psa_mac_setup() argument
284 if( operation->alg != 0 ) in psa_mac_setup()
287 status = mac_init( operation, alg ); in psa_mac_setup()
292 if( PSA_ALG_FULL_LENGTH_MAC( alg ) == PSA_ALG_CMAC ) in psa_mac_setup()
302 if( PSA_ALG_IS_HMAC( alg ) ) in psa_mac_setup()
307 PSA_ALG_HMAC_GET_HASH( alg ) ); in psa_mac_setup()
329 psa_algorithm_t alg ) in mbedtls_psa_mac_sign_setup() argument
332 key_buffer, key_buffer_size, alg ) ); in mbedtls_psa_mac_sign_setup()
340 psa_algorithm_t alg ) in mbedtls_psa_mac_verify_setup() argument
343 key_buffer, key_buffer_size, alg ) ); in mbedtls_psa_mac_verify_setup()
351 if( operation->alg == 0 ) in mbedtls_psa_mac_update()
355 if( PSA_ALG_FULL_LENGTH_MAC( operation->alg ) == PSA_ALG_CMAC ) in mbedtls_psa_mac_update()
364 if( PSA_ALG_IS_HMAC( operation->alg ) ) in mbedtls_psa_mac_update()
385 if( PSA_ALG_FULL_LENGTH_MAC( operation->alg ) == PSA_ALG_CMAC ) in psa_mac_finish_internal()
397 if( PSA_ALG_IS_HMAC( operation->alg ) ) in psa_mac_finish_internal()
422 if( operation->alg == 0 ) in mbedtls_psa_mac_sign_finish()
440 if( operation->alg == 0 ) in mbedtls_psa_mac_verify_finish()
464 psa_algorithm_t alg, in mbedtls_psa_mac_compute() argument
476 alg ); in mbedtls_psa_mac_compute()