zerotier_crypto/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//! ZeroTier-compatible cryptography library.

#![warn(future_incompatible, missing_docs, warnings)]

mod address;
mod identity;
mod identity_type;
mod public_key;
mod secret_key;

pub use address::{
    Address, AddressError, FromSliceAddressError, FromStrAddressError, ADDRESS_LENGTH,
};

pub use identity::{
    FromStrIdentityError, Identity, IdentityError, /*FromSliceIdentityError,*/
    IDENTITY_LENGTH,
};

pub use public_key::{
    FromSlicePublicKeyError, FromStrPublicKeyError, PublicKey, PublicKeyError, PUBLIC_KEY_LENGTH,
};

pub use secret_key::{
    FromSliceSecretKeyError, FromStrSecretKeyError, SecretKey, SECRET_KEY_LENGTH,
};

pub use identity_type::{
    FromSliceIdentityTypeError, FromStrIdentityTypeError, IdentityType, IdentityTypeError,
    IDENTITY_TYPE_LENGTH,
};