nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ ocrypto_aes_kw_unwrap()

int ocrypto_aes_kw_unwrap ( uint8_t * pt,
const uint8_t * ct,
size_t ct_len,
const uint8_t * key,
size_t size )

#include <crypto/nrf_oberon/include/ocrypto_aes_key_wrap.h>

AES KW unwrapping.

Parameters
[out]ptPlaintext. Length ct_len - 8.
ctCiphertext.
ct_lenCiphertext length, ct_len = n * 8, n >= 3.
keyAES key.
sizeKey size (16, 24, or 32).
Return values
0If ct is valid.
-1Otherwise.