DH_get0_key function

  1. @RecordUse.new()
  2. @Native<Void Function(Pointer<DH>, Pointer<Pointer<BIGNUM>>, Pointer<Pointer<BIGNUM>>)>(ffi.Pointer<DH>, ffi.Pointer<ffi.Pointer<BIGNUM>>, ffi.Pointer<ffi.Pointer<BIGNUM>>)>(symbol: 'bssl_dart_DH_get0_key')
void DH_get0_key(
  1. Pointer<DH> dh,
  2. Pointer<Pointer<BIGNUM>> out_pub_key,
  3. Pointer<Pointer<BIGNUM>> out_priv_key
)

DH_get0_key sets |*out_pub_key| and |*out_priv_key|, if non-NULL, to |dh|'s public and private key, respectively. If |dh| is a public key, the private key will be set to NULL.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Void Function(
    ffi.Pointer<DH>,
    ffi.Pointer<ffi.Pointer<BIGNUM>>,
    ffi.Pointer<ffi.Pointer<BIGNUM>>,
  )
>(symbol: 'bssl_dart_DH_get0_key')
external void DH_get0_key(
  ffi.Pointer<DH> dh,
  ffi.Pointer<ffi.Pointer<BIGNUM>> out_pub_key,
  ffi.Pointer<ffi.Pointer<BIGNUM>> out_priv_key,
);