Trait Suite

Source
pub trait Suite {
    type E: Curve;
    type Mac: OutputSizeUser;
    type Enc;
    type Dec;
}
Expand description

A suite of cryptographic protocols to use for ECIES

Thanks for UC-security, any secure protocols can work together.

This crate has several suites ready-made, such as curve25519xsalsa20hmac and curve25519aes128_cbchmac.

Required Associated Types§

Source

type E: Curve

Elliptic curve provided by generic_ec, for use in ECDH

Source

type Mac: OutputSizeUser

MAC provided by digest

Source

type Enc

Encryption provided by cipher, for use for symmetric encryption

Source

type Dec

Decryption corresponding to Enc. For stream cipher will usually be the same as Enc

Implementors§