d2i_AutoPrivateKey function

  1. @RecordUse.new()
  2. @Native<Pointer<EVP_PKEY> Function(Pointer<Pointer<EVP_PKEY>>, Pointer<Pointer<Uint8>>, Long)>(ffi.Pointer<ffi.Pointer<EVP_PKEY>>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>, ffi.Long)>(symbol: 'bssl_dart_d2i_AutoPrivateKey')
Pointer<EVP_PKEY> d2i_AutoPrivateKey(
  1. Pointer<Pointer<EVP_PKEY>> out,
  2. Pointer<Pointer<Uint8>> inp,
  3. int len
)

d2i_AutoPrivateKey acts the same as |d2i_PrivateKey|, but detects the type of the private key.

This function tries to detect one of several formats. Instead, use |EVP_parse_private_key| for a PrivateKeyInfo, |RSA_parse_private_key| for an RSAPrivateKey, and |EC_parse_private_key| for an ECPrivateKey.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<EVP_PKEY> Function(
    ffi.Pointer<ffi.Pointer<EVP_PKEY>>,
    ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
    ffi.Long,
  )
>(symbol: 'bssl_dart_d2i_AutoPrivateKey')
external ffi.Pointer<EVP_PKEY> d2i_AutoPrivateKey(
  ffi.Pointer<ffi.Pointer<EVP_PKEY>> out,
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> inp,
  int len,
);