Crate core_crypto

Crate core_crypto 

Source

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.
PrivateKey
256 bit hash type.
PublicKey
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§

BlockCipher
This trait defines an association of symbol or nis1 encrypt and decrypt message.
KeyPairSchema
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

Type Aliases§

AesKey
SharedSecret