Update style per code review comments

This commit is contained in:
Josh Holtrop
2025-07-22 08:19:01 -04:00
parent af3296a836
commit 525f1cc39e
2 changed files with 10 additions and 7 deletions

View File

@@ -3,13 +3,16 @@
\brief Callback used for a custom AES key wrap/unwrap operation.
key/keySz specify the key to use.
in/inSz specify the input data to wrap/unwrap.
out/outSz specify the output buffer.
\return The size of the wrapped/unwrapped key written to the output buffer
should be returned on success. A 0 return value or error code (< 0)
indicates a failure.
The size of the wrapped/unwrapped key written to the output buffer should
be returned on success. A 0 return value or error code (< 0) indicates a
failure.
\param[in] key Specify the key to use.
\param[in] keySz Size of the key to use.
\param[in] in Specify the input data to wrap/unwrap.
\param[in] inSz Size of the input data.
\param[out] out Specify the output buffer.
\param[out] outSz Size of the output buffer.
*/
typedef int (*CallbackAESKeyWrap)(const byte* key, word32 keySz,
const byte* in, word32 inSz, byte* out, word32 outSz);

View File

@@ -6816,7 +6816,7 @@ static int PKCS7_GenerateContentEncryptionKey(wc_PKCS7* pkcs7, word32 len)
/* wrap CEK (content encryption key) with KEK, returns output size (> 0) on
* success, < 0 on error */
static int wc_PKCS7_KeyWrap(wc_PKCS7 const * pkcs7, byte const * cek,
static int wc_PKCS7_KeyWrap(const wc_PKCS7 * pkcs7, byte const * cek,
word32 cekSz, byte const * kek, word32 kekSz, byte * out, word32 outSz,
int keyWrapAlgo, int direction)
{