pub struct RustCrypto;Expand description
Use this together with yTLS by providing this struct into the client or server contextes.
Implementations§
Source§impl RustCrypto
impl RustCrypto
Trait Implementations§
Source§impl Clone for RustCrypto
impl Clone for RustCrypto
Source§fn clone(&self) -> RustCrypto
fn clone(&self) -> RustCrypto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CryptoConfig for RustCrypto
impl CryptoConfig for RustCrypto
type PrkError = InvalidPrkLength
type Hasher = Sha256Hasher
type X25519 = X25519
Source§fn ecdhe_x25519<R: CryptoRng>(rng: &mut R) -> Self::X25519
fn ecdhe_x25519<R: CryptoRng>(rng: &mut R) -> Self::X25519
Provide the concrete ECDHE providing the X25519
Source§fn hasher_sha256() -> Self::Hasher
fn hasher_sha256() -> Self::Hasher
Provide the concrete hasher containing SHA256 hasher
Source§fn sign_p256_init(key: &[u8]) -> Option<impl CryptoSignerP256Processor>
fn sign_p256_init(key: &[u8]) -> Option<impl CryptoSignerP256Processor>
ECDSA secp256p1 Signature processor
Source§fn aead_chaha20poly1305(key: &[u8; 32]) -> impl CryptoChaCha20Poly1305Processor
fn aead_chaha20poly1305(key: &[u8; 32]) -> impl CryptoChaCha20Poly1305Processor
AEAD ChaCha20Poly1305 with Key and Nonce / IV
Source§fn hkdf_sha256_from_prk(
prk: &[u8],
) -> Result<impl CryptoSha256HkdfGenProcessor, Self::PrkError>
fn hkdf_sha256_from_prk( prk: &[u8], ) -> Result<impl CryptoSha256HkdfGenProcessor, Self::PrkError>
Hkdf256 Sha256 from strong pre-existing prk
Source§fn hkdf_sha256_init() -> impl CryptoSha256HkdfExtractProcessor
fn hkdf_sha256_init() -> impl CryptoSha256HkdfExtractProcessor
Provide the configured Hkdf Sha256 impl
Source§fn hmac_sha384_init_with_key(key: &[u8; 48]) -> impl CryptoSha384HmacProcessor
fn hmac_sha384_init_with_key(key: &[u8; 48]) -> impl CryptoSha384HmacProcessor
Provide the configured Hmac Sha384 impl
Source§fn hmac_sha256_init_with_key(key: &[u8; 32]) -> impl CryptoSha256HmacProcessor
fn hmac_sha256_init_with_key(key: &[u8; 32]) -> impl CryptoSha256HmacProcessor
Provide the configured Hmac Sha256 impl
Source§fn sha256_init() -> impl CryptoSha256TranscriptProcessor
fn sha256_init() -> impl CryptoSha256TranscriptProcessor
Provide the configured SHA256 Hasher impl
Source§fn sha384_init() -> impl CryptoSha384TranscriptProcessor
fn sha384_init() -> impl CryptoSha384TranscriptProcessor
Provide the configured SHA384 Hasher impl
Source§fn x25519_init<R: CryptoRng>(
&mut self,
rng: &mut R,
) -> impl CryptoX25519Processor
fn x25519_init<R: CryptoRng>( &mut self, rng: &mut R, ) -> impl CryptoX25519Processor
Provide the configured Ephemeral X25519 impl
impl Copy for RustCrypto
Auto Trait Implementations§
impl Freeze for RustCrypto
impl RefUnwindSafe for RustCrypto
impl Send for RustCrypto
impl Sync for RustCrypto
impl Unpin for RustCrypto
impl UnwindSafe for RustCrypto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more