mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Update style per code review comments
This commit is contained in:
@@ -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);
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user