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

◆ ocrypto_aes_kwp_unwrap()

int ocrypto_aes_kwp_unwrap ( uint8_t * pt,
size_t * pt_len,
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 KWP unwrapping.

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