Expand description
Deoxys-II-256-128 MRAE primitives implementation.
Structs§
- DeoxysII
- Deoxys-II-256-128 state.
Constants§
- KEY_
SIZE - Size of the Deoxys-II-256-128 key in bytes.
- NONCE_
SIZE - Size of the nonce in bytes.
- TAG_
SIZE - Size of the authentication tag in bytes.
Traits§
- Opener
- An abstract Deoxys-II-256-128 box opener.
Functions§
- box_
open - Unboxes (“opens”) the provided additional data and ciphertext via
Deoxys-II-256-128 using a symmetric key derived from the provided
X25519 public and private keys.
The nonce should be
NONCE_SIZE
bytes long and both it and the additional data must match the value passed tobox_seal
. - box_
seal - Boxes (“seals”) the provided additional data and plaintext via
Deoxys-II-256-128 using a symmetric key derived from the provided
X25519 public and private keys.
The nonce should be
NONCE_SIZE
bytes long and unique for all time for a given public and private key tuple. - generate_
key_ pair - Generates a public/private key pair suitable for use with
derive_symmetric_key
,box_seal
, andbox_open
.