clarify description

pull/7830/head
Takashi Kojo 2024-08-05 05:59:36 +09:00
parent 00e42151ca
commit 8368a32e7e
2 changed files with 6 additions and 6 deletions

View File

@ -3,8 +3,8 @@
\brief HMACHMAC \brief HMACHMAC
\return 0 HMAC \return 0 HMAC
\return BAD_FUNC_ARG .MD5SHASHA256SHA384SHA3-224SHA3-256SHA3-384SHA3-512 \return BAD_FUNC_ARG .MD5SHASHA256SHA384SHA3-224SHA3-256SHA3-384SHA3-512
\return MEMORY_E 使 \return MEMORY_E 使
\return HMAC_MIN_KEYLEN_E FIPS使FIPS \return HMAC_MIN_KEYLEN_E FIPS使FIPS(14)
\param hmac HMAC \param hmac HMAC
\param type HMAC使.MD5SHASHA256SHA384SHA3-224SHA3-256SHA3-384SHA3-512 \param type HMAC使.MD5SHASHA256SHA384SHA3-224SHA3-256SHA3-384SHA3-512
\param key HMAC \param key HMAC
@ -13,7 +13,7 @@
Hmac hmac; Hmac hmac;
byte key[] = { // initialize with key to use for encryption }; byte key[] = { // initialize with key to use for encryption };
if (wc_HmacSetKey(&hmac, MD5, key, sizeof(key)) != 0) { if (wc_HmacSetKey(&hmac, MD5, key, sizeof(key)) != 0) {
// error initializing Hmac object // error initializing Hmac object
} }
\endcode \endcode
\sa wc_HmacUpdate \sa wc_HmacUpdate
@ -25,7 +25,7 @@ int wc_HmacSetKey(Hmac* hmac, int type, const byte* key, word32 keySz);
\ingroup HMAC \ingroup HMAC
\brief HMAC使HMACWC_HMACSETKEYwc_hmacupdatewc_hmacfinal \brief HMAC使HMACWC_HMACSETKEYwc_hmacupdatewc_hmacfinal
\return 0 \return 0
\return MEMORY_E 使 \return MEMORY_E 使
\param hmac HMAC \param hmac HMAC
\param msg \param msg
_Example_ _Example_

View File

@ -8,9 +8,9 @@
\return BAD_FUNC_ARG Returned if the input type is invalid (see type param) \return BAD_FUNC_ARG Returned if the input type is invalid (see type param)
\return MEMORY_E Returned if there is an error allocating memory for the \return MEMORY_E Returned if there is an error allocating memory for the
structure to use for hashing structure to use for hashing
\return HMAC_MIN_KEYLEN_E May be returned when using a FIPS implementation \return HMAC_MIN_KEYLEN_E Returned when using a FIPS implementation
and the key length specified is shorter than the minimum acceptable and the key length specified is shorter than the minimum acceptable
FIPS standard FIPS standard of 14 bytes
\param hmac pointer to the Hmac object to initialize \param hmac pointer to the Hmac object to initialize
\param type type specifying which encryption method the Hmac object \param type type specifying which encryption method the Hmac object