AES_unwrap_key_padded function
AES_unwrap_key_padded performs a padded AES key unwrap on |in| which must be a multiple of 8 bytes. |key| must have been configured for decryption. On success it writes at most |max_out| bytes to |out|, sets |*out_len| to the number of bytes written, and returns one. On failure it returns zero. Setting |max_out| to |in_len| is a sensible estimate.
Implementation
@meta.RecordUse()
@ffi.Native<
ffi.Int Function(
ffi.Pointer<AES_KEY>,
ffi.Pointer<ffi.Uint8>,
ffi.Pointer<ffi.Size>,
ffi.Size,
ffi.Pointer<ffi.Uint8>,
ffi.Size,
)
>(symbol: 'bssl_dart_AES_unwrap_key_padded')
external int AES_unwrap_key_padded(
ffi.Pointer<AES_KEY> key,
ffi.Pointer<ffi.Uint8> out,
ffi.Pointer<ffi.Size> out_len,
int max_out,
ffi.Pointer<ffi.Uint8> in$,
int in_len,
);