crypto_x25519_dirty_small function

  1. @Native<Void Function(Pointer<Uint8>, Pointer<Uint8>)>(ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>)>()
void crypto_x25519_dirty_small(
  1. Pointer<Uint8> pk,
  2. Pointer<Uint8> sk
)

"Dirty" versions of x25519_public_key(). Use with crypto_elligator_rev(). Leaks 3 bits of the private key.

Implementation

@ffi.Native<ffi.Void Function(ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>)>()
external void crypto_x25519_dirty_small(
  ffi.Pointer<ffi.Uint8> pk,
  ffi.Pointer<ffi.Uint8> sk,
);