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