Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/KEMs
/ functions
Functions
448 in github.com/RustCrypto/KEMs
⨍
Functions
448
◇
Types & classes
113
Function
byte_encode_sequential_values
()
module-lattice/tests/encode.rs:423
Function
byte_encode_zero_values
()
module-lattice/tests/encode.rs:205
Function
ciphertext_serialize
()
x-wing/src/lib.rs:455
Function
codec
()
ml-kem/src/pke.rs:257
Function
codec_test
()
ml-kem/src/pke.rs:239
Function
compare_with_reference_keys
(variant: usize, ref_pub_key_pem: &str, ref_priv_key_pem: &str)
ml-kem/tests/pkcs8.rs:105
Method
compress
(&mut self)
ml-kem/src/compress.rs:39
Function
compress_KAT
()
ml-kem/src/compress.rs:153
Function
compress_decompress_KATs
()
ml-kem/src/compress.rs:168
Function
compress_decompress_properties
()
ml-kem/src/compress.rs:163
Function
compression_decompression_inequality
Verify against inequality 4.7
ml-kem/src/compress.rs:110
Method
concat_ct
(u: EncodedU<Self>, v: EncodedV<Self>)
ml-kem/src/param.rs:157
Method
concat_dk
( dk: EncodedDecryptionKey<Self>, ek: EncodedEncryptionKey<Self>, h: B32, z: B
ml-kem/src/param.rs:214
Method
concat_ek
(t_hat: EncodedNttVector<Self>, rho: B32)
ml-kem/src/param.rs:165
Function
criterion_benchmark
(c: &mut Criterion)
ml-kem/benches/mlkem.rs:12
Method
ct_eq
(&self, other: &Self)
module-lattice/src/algebra.rs:118
Method
decapsulate
(&self, encapsulated_key: &Ciphertext)
dhkem/src/x25519_kem.rs:91
Method
decapsulate
Decapsulate the ciphertext into a shared secret. See Algorithm 14 in the [spec](https://frodokem.org/files/FrodoKEM-specification-20210604.pdf). Algo
frodo-kem/src/hazmat/traits.rs:305
Method
decode
(enc: &Array<u8, Self::EncodedSize>)
module-lattice/src/encoding.rs:162
Function
decode_expected_hex
(opt: &Option<String>, field: &str)
ml-kem/tests/wycheproof.rs:84
Method
decode_u12
(v: &EncodedNttVector<Self>)
ml-kem/src/param.rs:153
Method
decompress
Equation 4.6: Decompress_d(x) = round((q / 2^d) x)
ml-kem/src/compress.rs:48
Function
decompress_KAT
()
ml-kem/src/compress.rs:143
Function
decompress_compress
()
ml-kem/src/compress.rs:174
Function
decompression_compression_equality
()
ml-kem/src/compress.rs:133
Method
default
()
frodo-kem/src/lib.rs:527
Method
default
()
frodo-kem/src/hazmat/models.rs:81
Function
der_serialization_and_deserialization
(expected_encaps_len: u32)
ml-kem/tests/pkcs8.rs:22
Method
deref
(&self)
module-lattice/src/maybe_box.rs:47
Method
deref_mut
(&mut self)
module-lattice/src/maybe_box.rs:53
Method
deserialize
(d: D)
hqc-kem/src/types.rs:421
Method
deserialize
(d: D)
frodo-kem/src/lib.rs:842
Method
drop
(&mut self)
x-wing/src/lib.rs:229
Method
drop
(&mut self)
hqc-kem/src/types.rs:249
Method
drop
(&mut self)
ml-kem/src/decapsulation_key.rs:147
Function
elem_addition
()
module-lattice/tests/algebra.rs:63
Function
elem_arithmetic_consistency
()
module-lattice/tests/algebra.rs:125
Function
elem_ct_eq
()
module-lattice/tests/algebra.rs:526
Function
elem_equality
()
module-lattice/tests/algebra.rs:374
Function
elem_multiplication
()
module-lattice/tests/algebra.rs:103
Function
elem_negation
()
module-lattice/tests/algebra.rs:48
Function
elem_subtraction
()
module-lattice/tests/algebra.rs:81
Function
elem_zeroize
()
module-lattice/tests/algebra.rs:467
Method
enabled_algorithms
()
frodo-kem/src/lib.rs:859
Method
encapsulate_deterministic
Encapsulate deterministically from a message and salt. `m` must be exactly the message size for this security level (16 bytes for HQC-128, 24 for HQC
hqc-kem/src/types.rs:344
Method
encapsulate_with_rng
(&self, rng: &mut R)
dhkem/src/x25519_kem.rs:151
Method
encapsulate_with_rng
Encapsulate a random message into a ciphertext. See Algorithm 13 in the [spec](https://frodokem.org/files/FrodoKEM-specification-20210604.pdf). Algor
frodo-kem/src/hazmat/traits.rs:198
Method
encapsulation_key
(&self)
x-wing/src/lib.rs:223
Method
encapsulation_key
(&self)
dhkem/src/x25519_kem.rs:40
Method
encapsulation_key
(&self)
dhkem/src/ecdh_kem.rs:52
Method
encapsulation_key
Get the encapsulation (public) key corresponding to this decapsulation key.
hqc-kem/src/types.rs:137
Method
encode_u12
(p: &NttVector<Self::K>)
ml-kem/src/param.rs:149
Function
encoded_polynomial_size_d12
()
module-lattice/tests/encode.rs:382
Function
encoded_polynomial_size_d4
()
module-lattice/tests/encode.rs:372
Function
encoded_vector_size
()
module-lattice/tests/encode.rs:392
Method
eq
(&self, other: &Self)
hqc-kem/src/types.rs:205
Method
eq
(&self, other: &Self)
ml-kem/src/pke.rs:43
Method
eq
(&self, other: &Self)
ml-kem/src/decapsulation_key.rs:137
Method
eq
(&self, other: &Self)
ml-kem/src/encapsulation_key.rs:117
Method
expand
Perform the [RFC5869] `HKDF-Expand` operation, generating uniformly random output key material that fills `okm` in its entirety. If you don’t have an
dhkem/src/expander.rs:96
Function
expanded_key
()
ml-kem/src/lib.rs:332
Function
expanded_key_test
()
ml-kem/src/lib.rs:320
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
x-wing/src/lib.rs:198
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
hqc-kem/src/types.rs:167
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
frodo-kem/src/lib.rs:534
Method
from
(sk: [u8; DECAPSULATION_KEY_SIZE])
x-wing/src/lib.rs:236
Method
from
(f: Array<Elem<F>, U256>)
module-lattice/src/algebra.rs:419
Method
from
(dk: DK)
dhkem/src/lib.rs:82
Method
from
(seed: Seed)
ml-kem/src/decapsulation_key.rs:163
Method
from
(secret_key: &DecryptionKey)
frodo-kem/src/lib.rs:304
Method
from
(value: &'a Ciphertext<P>)
frodo-kem/src/hazmat/models.rs:147
Method
from_bytes
Parse an decryption key from a byte array `(s_hat)`
ml-kem/src/pke.rs:111
Method
from_bytes
Convert a slice of bytes into a [`Ciphertext`] according to the specified [`Algorithm`].
frodo-kem/src/lib.rs:285
Method
from_encryption_key
(ek_pke: EncryptionKey<P>)
ml-kem/src/encapsulation_key.rs:53
Method
from_expanded
(enc: &ExpandedDecapsulationKey<P>)
ml-kem/src/decapsulation_key.rs:64
Method
from_expanded_bytes
(expanded: &ExpandedDecapsulationKey<P>)
ml-kem/src/decapsulation_key.rs:272
Method
from_sec1_point
(point: &sec1::Sec1Point<C>)
dhkem/src/lib.rs:112
Method
from_seed
(seed: Seed)
ml-kem/src/decapsulation_key.rs:51
Method
from_seed
(seed: Self::Seed)
frodo-kem/tests/rng.rs:30
Method
from_slice
Convert a slice of bytes into a ciphertext
frodo-kem/src/hazmat/models.rs:92
Method
from_str
(s: &str)
frodo-kem/src/lib.rs:610
Method
from_vec
(bytes: Vec<u8>)
hqc-kem/src/types.rs:105
Function
g
()
ml-kem/src/crypto.rs:132
Method
generate
Generate a new random decryption key according to the `K-PKE.KeyGen` procedure. Algorithm 12. K-PKE.KeyGen()
ml-kem/src/pke.rs:65
Method
generate_deterministic
allow dk_pke, ek_pke, following the spec
ml-kem/src/decapsulation_key.rs:119
Method
generate_key
Generate an HQC key pair.
hqc-kem/src/types.rs:273
Function
generate_key_deterministic
(seed: &[u8; 32])
hqc-kem/src/lib.rs:112
Method
generate_key_deterministic
Generate an HQC key pair deterministically from a 32-byte seed. The seed is expanded via SHAKE256 to derive the PKE key pair and sigma. Identical see
hqc-kem/src/types.rs:298
Method
generate_keypair
Generate a keypair See Algorithm 12 in [spec](https://frodokem.org/files/FrodoKEM-specification-20210604.pdf). Algorithm 8.1 in [iso](https://frodoke
frodo-kem/src/hazmat/traits.rs:119
Function
h
()
ml-kem/src/crypto.rs:143
Method
inner_decapsulate
( &self, secret_key: &DecryptionKey, ciphertext: &Ciphertext, )
frodo-kem/src/lib.rs:1592
Method
inner_decryption_key_from_bytes
(&self, buf: &[u8])
frodo-kem/src/lib.rs:1049
Method
inner_encapsulate
( &self, encryption_key: &EncryptionKey, msg: &[u8], salt: &[u8], )
frodo-kem/src/lib.rs:1433
Method
inner_encapsulate_with_rng
( &self, encryption_key: &EncryptionKey, rng: &mut R, )
frodo-kem/src/lib.rs:1514
Method
inner_encryption_key_from_bytes
(&self, buf: &[u8])
frodo-kem/src/lib.rs:1103
Method
inner_encryption_key_from_decryption_key
( &self, secret_key: &DecryptionKey, )
frodo-kem/src/lib.rs:991
Method
inner_generate_keypair
( &self, rng: &mut R, )
frodo-kem/src/lib.rs:1355
Method
inner_params
(&self)
frodo-kem/src/lib.rs:919
Method
into_inner
(self)
module-lattice/src/maybe_box.rs:32
Method
into_inner
Consumes `self` and returns the wrapped value
dhkem/src/lib.rs:67
← previous
next →
201–300 of 448, ranked by callers