HMAC_CTX_copy function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<HMAC_CTX>, Pointer<HMAC_CTX>)>(ffi.Pointer<HMAC_CTX>, ffi.Pointer<HMAC_CTX>)>(symbol: 'bssl_dart_HMAC_CTX_copy')
int HMAC_CTX_copy(
  1. Pointer<HMAC_CTX> dest,
  2. Pointer<HMAC_CTX> src
)

HMAC_CTX_copy calls |HMAC_CTX_init| on |dest| and then sets it equal to |src|. On entry, |dest| must /not/ be initialised for an operation with |HMAC_Init_ex|. It returns one on success and zero on error.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<HMAC_CTX>, ffi.Pointer<HMAC_CTX>)>(
  symbol: 'bssl_dart_HMAC_CTX_copy',
)
external int HMAC_CTX_copy(
  ffi.Pointer<HMAC_CTX> dest,
  ffi.Pointer<HMAC_CTX> src,
);