EVP_PKEY_from_private_key_info function
EVP_PKEY_from_private_key_info decodes a DER-encoded PrivateKeyInfo structure (RFC 5208) from |in|. It returns a newly-allocated |EVP_PKEY| or NULL on error. Only the |num_algs| algorithms in |algs| will be considered when parsing.
A PrivateKeyInfo ends with an optional set of attributes. These are silently ignored.
Implementation
@meta.RecordUse()
@ffi.Native<
ffi.Pointer<EVP_PKEY> Function(
ffi.Pointer<ffi.Uint8>,
ffi.Size,
ffi.Pointer<ffi.Pointer<EVP_PKEY_ALG>>,
ffi.Size,
)
>(symbol: 'bssl_dart_EVP_PKEY_from_private_key_info')
external ffi.Pointer<EVP_PKEY> EVP_PKEY_from_private_key_info(
ffi.Pointer<ffi.Uint8> in$,
int len,
ffi.Pointer<ffi.Pointer<EVP_PKEY_ALG>> algs,
int num_algs,
);