Re-exports§
pub extern crate curve25519_dalek as curve25519;
pub extern crate ed25519_dalek as ed25519;
Structs§
- H256
- 256 bit hash type.
- H512
- 512 bit hash type.
- Keypair
- It represents an asymmetric private/public encryption key.
- Private
Key - 256 bit hash type.
- Public
Key - 256 bit hash type.
- Signature
- 512 bit hash type.
Constants§
- AES_
TAG_ LENGTH - The length Symbol Aes Tag in bytes.
- KEYPAIR_
LENGTH - The length of an
Keypair
in bytes. - KEY_
BYTES_ SIZE - The length of an key in bytes.
- KEY_
STR_ SIZE - The length of an key in str.
- NIS_
AES_ IV_ LENGTH - The length Nis1 Aes IV in bytes.
- NIS_
SALT_ LENGTH - The length Nis1 Salt in bytes.
- SIGNATURE_
LENGTH - The length of an
Signature
in bytes. - SYM_
AES_ IV_ LENGTH - The length Symbol Aes IV in bytes.
Traits§
- Block
Cipher - This trait defines an association of symbol or nis1 encrypt and decrypt message.
- KeyPair
Schema - This trait defines a schema: an association of symbol or nis1 keypair type.
Functions§
- derive_
shared_ secret - hex_
to_ vec - Decodes a hex string into raw bytes.
- is_hex
- random_
bytes