EC_KEY_parse_private_key function

  1. @RecordUse.new()
  2. @Native<Pointer<EC_KEY> Function(Pointer<CBS> cbs, Pointer<EC_GROUP> group)>(ffi.Pointer<CBS>, ffi.Pointer<EC_GROUP>)>(symbol: 'bssl_dart_EC_KEY_parse_private_key')
Pointer<EC_KEY> EC_KEY_parse_private_key(
  1. Pointer<CBS> cbs,
  2. Pointer<EC_GROUP> group
)

EC_KEY_parse_private_key parses a DER-encoded ECPrivateKey structure (RFC 5915) from |cbs| and advances |cbs|. It returns a newly-allocated |EC_KEY| or NULL on error. If |group| is non-null, the parameters field of the ECPrivateKey may be omitted (but must match |group| if present). Otherwise, the parameters field is required.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<EC_KEY> Function(ffi.Pointer<CBS>, ffi.Pointer<EC_GROUP>)
>(symbol: 'bssl_dart_EC_KEY_parse_private_key')
external ffi.Pointer<EC_KEY> EC_KEY_parse_private_key(
  ffi.Pointer<CBS> cbs,
  ffi.Pointer<EC_GROUP> group,
);