EC_KEY_oct2priv function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<EC_KEY>, Pointer<Uint8>, Size)>(ffi.Pointer<EC_KEY>, ffi.Pointer<ffi.Uint8>, ffi.Size)>(symbol: 'bssl_dart_EC_KEY_oct2priv')
int EC_KEY_oct2priv(
  1. Pointer<EC_KEY> key,
  2. Pointer<Uint8> in$,
  3. int len
)

EC_KEY_oct2priv decodes a big-endian, zero-padded integer from len bytes from in and sets key's private key to the result. It returns one on success and zero on error. The input must be padded to the size of key's group order.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(ffi.Pointer<EC_KEY>, ffi.Pointer<ffi.Uint8>, ffi.Size)
>(symbol: 'bssl_dart_EC_KEY_oct2priv')
external int EC_KEY_oct2priv(
  ffi.Pointer<EC_KEY> key,
  ffi.Pointer<ffi.Uint8> in$,
  int len,
);