ts-crypto 0.4.0

Cryptography abstraction for my projects
Documentation
//! Cryptography abstraction for my projects.
//!

extern crate alloc;

pub mod any;
pub mod edwards;
pub mod elliptic;
pub mod rsa;

use pkcs8::AssociatedOid;

pub use any::{SigningKey, VerifyingKey};
pub use edwards::{EdwardsSigningKey, EdwardsVerifyingKey};
pub use elliptic::{EllipticSigningKey, EllipticVerifyingKey};
pub use rsa::{RsaSigningKey, RsaVerifyingKey};

pub use sha2::{Sha256, Sha384, Sha512};

/// Wrapper trait over common traits required for digest algorithms.
pub trait Digest:
    'static + digest::Digest + digest::DynDigest + Send + Sync + digest::FixedOutput + AssociatedOid
{
}
impl<D> Digest for D where
    D: 'static
        + digest::Digest
        + digest::DynDigest
        + Send
        + Sync
        + digest::FixedOutput
        + AssociatedOid
{
}