EVP_PKEY_from_private_key_info function

  1. @RecordUse.new()
  2. @Native<Pointer<EVP_PKEY> Function(Pointer<Uint8>, Size, Pointer<Pointer<EVP_PKEY_ALG>>, Size)>(ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Pointer<ffi.Pointer<EVP_PKEY_ALG>>, ffi.Size)>(symbol: 'bssl_dart_EVP_PKEY_from_private_key_info')
Pointer<EVP_PKEY> EVP_PKEY_from_private_key_info(
  1. Pointer<Uint8> in$,
  2. int len,
  3. Pointer<Pointer<EVP_PKEY_ALG>> algs,
  4. int num_algs,
)

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