Lines Matching refs:mac_size
2526 operation->mac_size = 0;
2536 uint8_t *mac_size)
2553 *mac_size = PSA_MAC_LENGTH(key_type, key_bits, alg);
2555 if (*mac_size < 4) {
2563 if (*mac_size > PSA_MAC_LENGTH(key_type, key_bits,
2570 if (*mac_size > PSA_MAC_MAX_SIZE) {
2576 * psa_mac_compute(mac_size=PSA_MAC_MAX_SIZE), would return
2611 &operation->mac_size);
2692 size_t mac_size,
2698 LOCAL_OUTPUT_ALLOC(mac_external, mac_size, mac);
2710 /* Sanity check. This will guarantee that mac_size != 0 (and so mac != NULL)
2712 if (operation->mac_size == 0) {
2717 if (mac_size < operation->mac_size) {
2724 mac, operation->mac_size,
2735 *mac_length = mac_size;
2736 operation->mac_size = 0;
2740 psa_wipe_tag_output_buffer(mac, status, mac_size, *mac_length);
2767 if (operation->mac_size != mac_length) {
2788 size_t mac_size,
2812 if (mac_size < operation_mac_size) {
2832 *mac_length = mac_size;
2836 psa_wipe_tag_output_buffer(mac, status, mac_size, *mac_length);
2848 size_t mac_size,
2856 LOCAL_OUTPUT_ALLOC(mac_external, mac_size, mac);
2859 mac, mac_size, mac_length, 1);
5450 operation->mac_size = PSA_HASH_LENGTH(hash_alg);
5882 mac_operation.mac_size = prf_output_length;
5915 /* We are passing prf_output_length as mac_size because the driver
5916 * function directly sets mac_output_length as mac_size upon success.
7174 * mac_size as the driver function sets mac_output_length = mac_size