Lines Matching full:mac
2 * PSA MAC layer on top of Mbed TLS software crypto
26 /** Calculate the MAC (message authentication code) of a message using Mbed TLS.
36 * computing the MAC. This buffer contains the key
40 * \param alg The MAC algorithm to use (\c PSA_ALG_XXX value
44 * \param[out] mac Buffer where the MAC value is to be written.
45 * \param mac_size Size of the \p mac buffer in bytes.
47 * that make up the MAC value.
65 uint8_t *mac,
69 /** Set up a multipart MAC calculation operation using Mbed TLS.
81 * computing the MAC. This buffer contains the key
85 * \param alg The MAC algorithm to use (\c PSA_ALG_XXX value
104 /** Set up a multipart MAC verification operation using Mbed TLS.
116 * computing the MAC. This buffer contains the key
120 * \param alg The MAC algorithm to use (\c PSA_ALG_XXX value
139 /** Add a message fragment to a multipart MAC operation using Mbed TLS.
152 * \param[in,out] operation Active MAC operation.
154 * the MAC calculation.
169 /** Finish the calculation of the MAC of a message using Mbed TLS.
177 * This function calculates the MAC of the message formed by concatenating
183 * \param[in,out] operation Active MAC operation.
184 * \param[out] mac Buffer where the MAC value is to be written.
185 * \param mac_size Output size requested for the MAC algorithm. The PSA
186 * core guarantees this is a valid MAC length for the
189 * \p mac buffer is large enough to contain the
192 * \p mac, which will be equal to the requested length
198 * The operation state is not valid (it must be an active mac sign
201 * The size of the \p mac buffer is too small. A sufficient buffer size
208 uint8_t *mac,
212 /** Finish the calculation of the MAC of a message and compare it with
221 * function. This function calculates the MAC of the message formed by
223 * mbedtls_psa_mac_update(). It then compares the calculated MAC with the
224 * expected MAC passed as a parameter to this function.
229 * \param[in,out] operation Active MAC operation.
230 * \param[in] mac Buffer containing the expected MAC value.
231 * \param mac_length Length in bytes of the expected MAC value. The PSA
232 * core guarantees that this length is a valid MAC
237 * The expected MAC is identical to the actual MAC of the message.
239 * The MAC of the message was calculated successfully, but it
240 * differs from the expected MAC.
242 * The operation state is not valid (it must be an active mac verify
249 const uint8_t *mac,
252 /** Abort a MAC operation using Mbed TLS.
268 * \param[in,out] operation Initialized MAC operation.