i2d_PublicKey function
i2d_PublicKey marshals a public key from |key| to a type-specific format, as described in |i2d_SAMPLE|.
RSA keys are serialized as a DER-encoded RSAPublicKey (RFC 8017) structure. EC keys are serialized as an EC point per SEC 1.
Use |RSA_marshal_public_key| or |EC_POINT_point2cbb| instead.
Implementation
@meta.RecordUse()
@ffi.Native<
ffi.Int Function(ffi.Pointer<EVP_PKEY>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>)
>(symbol: 'bssl_dart_i2d_PublicKey')
external int i2d_PublicKey(
ffi.Pointer<EVP_PKEY> key,
ffi.Pointer<ffi.Pointer<ffi.Uint8>> outp,
);