i2d_PrivateKey function
i2d_PrivateKey marshals a private key from |key| to 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 a DER-encoded ECPrivateKey (RFC 5915) structure.
Use |RSA_marshal_private_key| or |EC_KEY_marshal_private_key| instead.
Implementation
@meta.RecordUse()
@ffi.Native<
ffi.Int Function(ffi.Pointer<EVP_PKEY>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>)
>(symbol: 'bssl_dart_i2d_PrivateKey')
external int i2d_PrivateKey(
ffi.Pointer<EVP_PKEY> key,
ffi.Pointer<ffi.Pointer<ffi.Uint8>> outp,
);