mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +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.
|
\brief Callback used for a custom AES key wrap/unwrap operation.
|
||||||
|
|
||||||
key/keySz specify the key to use.
|
\return The size of the wrapped/unwrapped key written to the output buffer
|
||||||
in/inSz specify the input data to wrap/unwrap.
|
should be returned on success. A 0 return value or error code (< 0)
|
||||||
out/outSz specify the output buffer.
|
indicates a failure.
|
||||||
|
|
||||||
The size of the wrapped/unwrapped key written to the output buffer should
|
\param[in] key Specify the key to use.
|
||||||
be returned on success. A 0 return value or error code (< 0) indicates a
|
\param[in] keySz Size of the key to use.
|
||||||
failure.
|
\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,
|
typedef int (*CallbackAESKeyWrap)(const byte* key, word32 keySz,
|
||||||
const byte* in, word32 inSz, byte* out, word32 outSz);
|
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
|
/* wrap CEK (content encryption key) with KEK, returns output size (> 0) on
|
||||||
* success, < 0 on error */
|
* 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,
|
word32 cekSz, byte const * kek, word32 kekSz, byte * out, word32 outSz,
|
||||||
int keyWrapAlgo, int direction)
|
int keyWrapAlgo, int direction)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user