AES_unwrap_key function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<AES_KEY>, Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>, Size)>(ffi.Pointer<AES_KEY>, ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Size)>(symbol: 'bssl_dart_AES_unwrap_key')
int AES_unwrap_key(
  1. Pointer<AES_KEY> key,
  2. Pointer<Uint8> iv,
  3. Pointer<Uint8> out,
  4. Pointer<Uint8> in$,
  5. int in_len,
)

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,
);