AES_unwrap_key function
AES_unwrap_key performs AES key unwrap on in which must be a multiple of 8
bytes. iv must point to an 8 byte value or be NULL to use the default IV.
key must have been configured for decryption. On success, it writes
in_len - 8 bytes to out and returns in_len - 8. Otherwise, it returns
-1.
Implementation
@meta.RecordUse()
@ffi.Native<
ffi.Int Function(
ffi.Pointer<AES_KEY>,
ffi.Pointer<ffi.Uint8>,
ffi.Pointer<ffi.Uint8>,
ffi.Pointer<ffi.Uint8>,
ffi.Size,
)
>(symbol: 'bssl_dart_AES_unwrap_key')
external int AES_unwrap_key(
ffi.Pointer<AES_KEY> key,
ffi.Pointer<ffi.Uint8> iv,
ffi.Pointer<ffi.Uint8> out,
ffi.Pointer<ffi.Uint8> in$,
int in_len,
);