RSA_get0_key function

  1. @RecordUse.new()
  2. @Native<Void Function(Pointer<RSA>, Pointer<Pointer<BIGNUM>>, Pointer<Pointer<BIGNUM>>, Pointer<Pointer<BIGNUM>>)>(ffi.Pointer<RSA>, ffi.Pointer<ffi.Pointer<BIGNUM>>, ffi.Pointer<ffi.Pointer<BIGNUM>>, ffi.Pointer<ffi.Pointer<BIGNUM>>)>(symbol: 'bssl_dart_RSA_get0_key')
void RSA_get0_key(
  1. Pointer<RSA> rsa,
  2. Pointer<Pointer<BIGNUM>> out_n,
  3. Pointer<Pointer<BIGNUM>> out_e,
  4. Pointer<Pointer<BIGNUM>> out_d,
)

RSA_get0_key sets |*out_n|, |*out_e|, and |*out_d|, if non-NULL, to |rsa|'s modulus, public exponent, and private exponent, respectively. If |rsa| is a public key, the private exponent will be set to NULL.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Void Function(
    ffi.Pointer<RSA>,
    ffi.Pointer<ffi.Pointer<BIGNUM>>,
    ffi.Pointer<ffi.Pointer<BIGNUM>>,
    ffi.Pointer<ffi.Pointer<BIGNUM>>,
  )
>(symbol: 'bssl_dart_RSA_get0_key')
external void RSA_get0_key(
  ffi.Pointer<RSA> rsa,
  ffi.Pointer<ffi.Pointer<BIGNUM>> out_n,
  ffi.Pointer<ffi.Pointer<BIGNUM>> out_e,
  ffi.Pointer<ffi.Pointer<BIGNUM>> out_d,
);