EVP_PKEY_from_rsa_public_key function

  1. @RecordUse.new()
  2. @Native<Pointer<EVP_PKEY> Function(Pointer<EVP_PKEY_ALG>, Pointer<Uint8>, Size)>(ffi.Pointer<EVP_PKEY_ALG>, ffi.Pointer<ffi.Uint8>, ffi.Size)>(symbol: 'bssl_dart_EVP_PKEY_from_rsa_public_key')
Pointer<EVP_PKEY> EVP_PKEY_from_rsa_public_key(
  1. Pointer<EVP_PKEY_ALG> alg,
  2. Pointer<Uint8> in$,
  3. int len
)

EVP_PKEY_from_rsa_public_key decodes len bytes from in as a DER-encoded RSAPublicKey structure (RFC 8017) of algorithm alg. It returns a newly-allocated EVP_PKEY on success or NULL on error. alg must be an RSA-based algorithm, i.e. EVP_pkey_rsa or one of EVP_pkey_rsa_pss_*. If unsure, use EVP_pkey_rsa.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<EVP_PKEY> Function(
    ffi.Pointer<EVP_PKEY_ALG>,
    ffi.Pointer<ffi.Uint8>,
    ffi.Size,
  )
>(symbol: 'bssl_dart_EVP_PKEY_from_rsa_public_key')
external ffi.Pointer<EVP_PKEY> EVP_PKEY_from_rsa_public_key(
  ffi.Pointer<EVP_PKEY_ALG> alg,
  ffi.Pointer<ffi.Uint8> in$,
  int len,
);