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§
Sourcetype E: Curve
type E: Curve
Elliptic curve provided by generic_ec
, for use in ECDH
Sourcetype Mac: OutputSizeUser
type Mac: OutputSizeUser
MAC provided by digest