Some renaming to be logical.

This commit is contained in:
Adam Ierymenko 2022-04-28 14:03:48 -04:00
parent b1f67b13f9
commit 6d232f817c
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
4 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,6 @@
* https://www.zerotier.com/
*/
pub mod c25519;
pub mod hash;
pub mod hex;
pub mod kbkdf;
@ -16,6 +15,7 @@ pub mod random;
pub mod salsa;
pub mod secret;
pub mod varint;
pub mod x25519;
pub use aes_gmac_siv;
pub use rand_core;

View file

@ -8,10 +8,10 @@
use std::io::Write;
use zerotier_core_crypto::c25519::{C25519KeyPair, C25519_PUBLIC_KEY_SIZE};
use zerotier_core_crypto::hash::{hmac_sha512, SHA512};
use zerotier_core_crypto::p384::{P384KeyPair, P384PublicKey, P384_PUBLIC_KEY_SIZE};
use zerotier_core_crypto::secret::Secret;
use zerotier_core_crypto::x25519::{C25519KeyPair, C25519_PUBLIC_KEY_SIZE};
pub const ALGORITHM_C25519: u8 = 0x01;
pub const ALGORITHM_ECC_NIST_P384: u8 = 0x02;

View file

@ -19,12 +19,12 @@ use lazy_static::lazy_static;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use zerotier_core_crypto::c25519::*;
use zerotier_core_crypto::hash::*;
use zerotier_core_crypto::hex;
use zerotier_core_crypto::p384::*;
use zerotier_core_crypto::salsa::Salsa;
use zerotier_core_crypto::secret::Secret;
use zerotier_core_crypto::x25519::*;
use crate::error::{InvalidFormatError, InvalidParameterError};
use crate::util::buffer::Buffer;