Module hacl::prelude

source ·
Expand description

Prelude for hacl-rust.

Include this to get access to all the commonly used public functions of hacl-rust.

Re-exports§

  • pub use crate::aead;
  • pub use crate::aead::decrypt as aead_decrypt;
  • pub use crate::aead::decrypt_combined as aead_decrypt_combined;
  • pub use crate::aead::encrypt as aead_encrypt;
  • pub use crate::aead::encrypt_combined as aead_encrypt_combined;
  • pub use crate::aead::Aead;
  • pub use crate::aead::Algorithm as AeadMode;
  • pub use crate::aead::Error as AeadError;
  • pub use crate::digest;
  • pub use crate::digest::digest_size;
  • pub use crate::digest::hash;
  • pub use crate::digest::Algorithm as DigestAlgorithm;
  • pub use crate::digest::Digest;
  • pub use crate::digest::Error as DigestError;
  • pub use crate::ecdh;
  • pub use crate::ecdh::derive as ecdh_derive;
  • pub use crate::ecdh::derive_base as ecdh_derive_base;
  • pub use crate::ecdh::Error as EcdhError;
  • pub use crate::ecdh::Mode as EcdhMode;
  • pub use crate::ed25519;
  • pub use crate::ed25519::eddsa_sign as ed25519_sign;
  • pub use crate::ed25519::eddsa_verify as ed25519_verify;
  • pub use crate::ed25519::sk2pk as ed25519_sk2pk;
  • pub use crate::ed25519::Error as Ed25519Error;
  • pub use crate::ed25519::Point as Ed25519Point;
  • pub use crate::ed25519::Scalar as Ed25519Scalar;
  • pub use crate::ed25519::Signature as Ed25519Signature;
  • pub use crate::hkdf;
  • pub use crate::hkdf::expand as hkdf_expand;
  • pub use crate::hkdf::extract as hkdf_extract;
  • pub use crate::hkdf::hkdf;
  • pub use crate::hmac;
  • pub use crate::hmac::hmac;
  • pub use crate::hmac::tag_size;
  • pub use crate::hmac::Algorithm as HmacAlgorithm;
  • pub use crate::p256;
  • pub use crate::p256::ecdh as p256;
  • pub use crate::p256::ecdh_base as p256_base;
  • pub use crate::p256::ecdsa_sign as p256_sign;
  • pub use crate::p256::ecdsa_verify as p256_verify;
  • pub use crate::p256::validate_pk as p256_validate_pk;
  • pub use crate::p256::validate_sk as p256_validate_sk;
  • pub use crate::p256::Error as P256Error;
  • pub use crate::p256::Nonce as P256Nonce;
  • pub use crate::p256::Scalar as P256Scalar;
  • pub use crate::p256::Signature as EcdsaSignature;
  • pub use crate::rsa_pss;
  • pub use crate::rsa_pss::sign as rsa_pss_sign;
  • pub use crate::rsa_pss::verify as rsa_pss_verify;
  • pub use crate::rsa_pss::KeySize as RsaPssKeySize;
  • pub use crate::rsa_pss::PrivateKey as RsaPssPrivateKey;
  • pub use crate::rsa_pss::PublicKey as RsaPssPublicKey;
  • pub use crate::signature;
  • pub use crate::signature::sign;
  • pub use crate::signature::verify;
  • pub use crate::signature::Error as SignatureError;
  • pub use crate::signature::Mode as SignatureMode;
  • pub use crate::x25519;
  • pub use crate::x25519::dh as x25519;
  • pub use crate::x25519::dh_base as x25519_base;
  • pub use crate::x25519::Error as X25519Error;
  • pub use crate::x25519::Point as X25519Point;
  • pub use crate::x25519::Scalar as X25519Scalar;
  • pub use crate::aead::key_gen as aead_key_gen;
  • pub use crate::aead::nonce_gen as aead_nonce_gen;
  • pub use crate::ecdh::key_gen as ecdh_key_gen;
  • pub use crate::ed25519::key_gen as ed25519_key_gen;
  • pub use crate::p256::random_nonce as p256_ecdsa_random_nonce;
  • pub use crate::rand_util::random_array;
  • pub use crate::rand_util::random_vec;
  • pub use crate::signature::key_gen as signature_key_gen;
  • pub use crate::x25519::key_gen as x25519_key_gen;