decaps property

Pointer<NativeFunction<Int Function(Pointer<Uint8> shared_secret, Pointer<Uint8> ciphertext, Pointer<Uint8> secret_key)>> decaps
getter/setter pair

Decapsulation algorithm.

Caller is responsible for allocating sufficient memory for shared_secret, based on the length_* members in this object or the per-scheme compile-time macros OQS_KEM_*_length_*.

@paramout shared_secret The shared secret represented as a byte string. @paramin ciphertext The ciphertext (encapsulation) represented as a byte string. @paramin secret_key The secret key represented as a byte string. @return OQS_SUCCESS or OQS_ERROR

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    ffi.Int Function(
      ffi.Pointer<ffi.Uint8> shared_secret,
      ffi.Pointer<ffi.Uint8> ciphertext,
      ffi.Pointer<ffi.Uint8> secret_key,
    )
  >
>
decaps;