NtruKem (ntrukem v0.1.0)

Summary

Functions

decapsulate(privkey, ciphertext)

@spec decapsulate(binary(), binary()) :: {:ok, sharekey :: binary()} | :error

derive_keypair(seed)

@spec derive_keypair(binary()) ::
  {:ok, pubkey :: binary(), privkey :: binary()} | {:error, atom()}

encapsulate(_)

@spec encapsulate(binary()) ::
  {:ok, ciphertext :: binary(), sharedkey :: binary()} | :error

generate_keypair()

@spec generate_keypair() ::
  {:ok, pubkey :: binary(), privkey :: binary()} | {:error, atom()}

load_nifs()