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
↓ 1 callers
Function
base_mul_pclmul
(a: u64, b: u64)
hqc-kem/src/poly.rs:49
↓ 1 callers
Function
base_mul_soft
(a: u64, b: u64)
hqc-kem/src/poly.rs:63
↓ 1 callers
Function
bench_decapsulate
(group: &mut BenchmarkGroup<'_, M>)
frodo-kem/benches/frodo.rs:108
↓ 1 callers
Function
bench_encapsulate
(group: &mut BenchmarkGroup<'_, M>)
frodo-kem/benches/frodo.rs:51
↓ 1 callers
Function
bench_keygen
(group: &mut BenchmarkGroup<'_, M>)
frodo-kem/benches/frodo.rs:12
↓ 1 callers
Function
bitrev7
(x: usize)
ml-kem/src/algebra.rs:301
↓ 1 callers
Method
c1
(&self)
frodo-kem/src/hazmat/models.rs:102
↓ 1 callers
Method
c1_mut
Returns a mutable reference to the c1 component
frodo-kem/src/hazmat/models.rs:107
↓ 1 callers
Method
c2
(&self)
frodo-kem/src/hazmat/models.rs:114
↓ 1 callers
Method
c2_mut
Returns a mutable reference to the c2 component
frodo-kem/src/hazmat/models.rs:119
↓ 1 callers
Function
code_decode
Decode codeword: RM decode then RS decode.
hqc-kem/src/code.rs:14
↓ 1 callers
Function
code_encode
Encode message: RS encode then RM encode.
hqc-kem/src/code.rs:7
↓ 1 callers
Function
compute_elp
Berlekamp algorithm: compute error locator polynomial sigma. Constant-time implementation using mask-based updates. Returns degree of sigma.
hqc-kem/src/reed_solomon.rs:50
↓ 1 callers
Function
compute_error_values
constant-time mask operations indexed across multiple arrays
hqc-kem/src/reed_solomon.rs:130
↓ 1 callers
Function
compute_syndromes
indices used in arithmetic matching FIPS spec
hqc-kem/src/reed_solomon.rs:34
↓ 1 callers
Function
compute_z_poly
Compute z polynomial for error value computation.
hqc-kem/src/reed_solomon.rs:109
↓ 1 callers
Function
concat_slices
(slices: I, out: &mut [u8])
dhkem/src/expander.rs:144
↓ 1 callers
Method
ct_eq
(&self, other: &Self)
hqc-kem/src/types.rs:225
↓ 1 callers
Function
decaps
(dk_kem: &[u8], c_kem: &[u8], p: &HqcParameters)
hqc-kem/src/kem.rs:126
↓ 1 callers
Method
decapsulate
So we can use the names as in the RFC
x-wing/src/lib.rs:207
↓ 1 callers
Method
decode_message
Matrix decoding from a bit sequence See Algorithm 2 in the [spec](https://frodokem.org/files/FrodoKEM-specification-20210604.pdf).
frodo-kem/src/hazmat/traits.rs:648
↓ 1 callers
Function
decode_optional_hex
(opt: &Option<String>, field: &str)
ml-kem/tests/wycheproof.rs:77
↓ 1 callers
Method
ek_pke
Borrow the encryption key.
ml-kem/src/encapsulation_key.rs:62
↓ 1 callers
Function
encaps
( ek_kem: &[u8], p: &HqcParameters, rng: &mut (impl CryptoRng + ?Sized), )
hqc-kem/src/kem.rs:107
↓ 1 callers
Method
encapsulate
Encapsulate a message into a ciphertext. See Algorithm 13 in the [spec](https://frodokem.org/files/FrodoKEM-specification-20210604.pdf). Algorithm 8.
frodo-kem/src/hazmat/traits.rs:215
↓ 1 callers
Method
encapsulate_deterministic
( &self, randomness: &ArrayN<u8, ENCAPSULATION_RANDOMNESS_SIZE>, )
x-wing/src/lib.rs:108
↓ 1 callers
Method
encapsulate_deterministic
(&self, m: &B32)
ml-kem/src/encapsulation_key.rs:45
↓ 1 callers
Method
encapsulate_deterministic
(&self, m: &ArrayN<u8, 32>)
ml-kem/tests/encap-decap.rs:18
↓ 1 callers
Method
encapsulate_with_rng
(&self, rng: &mut R)
x-wing/src/lib.rs:134
↓ 1 callers
Method
encapsulate_with_rng
( &self, rng: &mut R, )
dhkem/src/ecdh_kem.rs:213
↓ 1 callers
Method
encode
(&self)
module-lattice/src/encoding.rs:158
↓ 1 callers
Function
encode_single
Encode a single byte into a 128-bit RM(1,7) codeword (two u64s).
hqc-kem/src/reed_muller.rs:19
↓ 1 callers
Method
encryption_key_from_decryption_key
(&self, secret_key: &DecryptionKey)
frodo-kem/src/lib.rs:942
↓ 1 callers
Function
expand_and_sum
Sum repeated codewords into 128 accumulators.
hqc-kem/src/reed_muller.rs:65
↓ 1 callers
Method
expand_labeled_hpke
Create a new expander which uses the prefixes that implement HPKE `LabeledExpand` as described in [RFC9810 §4]. # Errors Returns [`InvalidLength`] if
dhkem/src/expander.rs:124
↓ 1 callers
Method
expand_multi_info
Performs the [RFC5869] `HKDF-Expand` operation with `info` assembled from a slice-of-slices. This is equivalent to calling `expand` with the `info` a
dhkem/src/expander.rs:109
↓ 1 callers
Function
extract_and_expand
(shared_secret: &[u8], kem_context: &[u8])
dhkem/tests/hpke_p256_test.rs:45
↓ 1 callers
Function
fft
Evaluate polynomial at all 2^M field elements using additive FFT. `f` has `f_coeffs` coefficients. `w` receives 2^M evaluations.
hqc-kem/src/fft.rs:187
↓ 1 callers
Function
fft_retrieve_error_poly
Retrieve error polynomial from FFT evaluations. `error[i] = 1` if `w[alpha^(-i)] == 0`, i.e., alpha^(-i) is a root of sigma.
hqc-kem/src/fft.rs:241
↓ 1 callers
Function
find_peaks
Find the peak in the Hadamard transform (constant-time).
hqc-kem/src/reed_muller.rs:85
↓ 1 callers
Method
flatten
(polys: Array<EncodedPolynomial<Self>, K>)
module-lattice/src/encoding.rs:80
↓ 1 callers
Function
hadamard_transform
Hadamard transform using a flag to track which buffer has the result.
hqc-kem/src/reed_muller.rs:45
↓ 1 callers
Function
hash_i
I function: SHA3-512(data || 0x02). Returns 64 bytes.
hqc-kem/src/shake.rs:77
↓ 1 callers
Function
hash_j
J function: SHA3-256(data || 0x03). Returns 32 bytes.
hqc-kem/src/shake.rs:88
↓ 1 callers
Method
hpk
(&self)
frodo-kem/src/hazmat/models.rs:363
↓ 1 callers
Method
hpk_mut
Returns a mutable reference to the hash of the public key
frodo-kem/src/hazmat/models.rs:368
↓ 1 callers
Function
karatsuba
Recursive Karatsuba multiplication. Stack layout per level: [alh(size_l) | blh(size_l) | tmp1(2*size_l) | copies(2*size_l) | deeper...] Total local =
hqc-kem/src/poly.rs:166
↓ 1 callers
Function
karatsuba_add1
( alh: &mut [u64], blh: &mut [u64], a: &[u64], b: &[u64], size_l: usize, size_h: usize
hqc-kem/src/poly.rs:131
↓ 1 callers
Function
karatsuba_add2
(o: &mut [u64], tmp1: &mut [u64], tmp2: &[u64], size_l: usize, size_h: usize)
hqc-kem/src/poly.rs:150
↓ 1 callers
Function
keygen
(p: &HqcParameters, rng: &mut impl CryptoRng)
hqc-kem/src/kem.rs:57
↓ 1 callers
Function
kl_divergence
(p: &Distribution, q: &Distribution)
ml-kem/src/algebra.rs:521
↓ 1 callers
Method
matrix_b_mut
Returns a mutable reference to the matrix B
frodo-kem/src/hazmat/models.rs:248
↓ 1 callers
Method
matrix_s_mut
Returns a mutable reference to the matrix s
frodo-kem/src/hazmat/models.rs:355
↓ 1 callers
Method
mul_add_as_plus_e
Multiply by s on the right. Uses matrix A row-wise Inputs: s, e (N x N_BAR) Output: out = A*s + e (N x N_BAR)
frodo-kem/src/hazmat/traits.rs:441
↓ 1 callers
Method
mul_bs
Matrix multiply B on the lhs and S on the rhs
frodo-kem/src/hazmat/traits.rs:584
↓ 1 callers
Method
next
(&mut self)
ml-kem/src/algebra.rs:57
↓ 1 callers
Function
pke_decrypt
PKE decryption. Returns decrypted message bytes (k bytes).
hqc-kem/src/pke.rs:122
↓ 1 callers
Function
pke_keygen
PKE key generation from a PKE seed. Returns (ek_pke, dk_pke) where: - ek_pke = seed_pke_ek || s_bytes (pk_bytes total) - dk_pke = seed_pke_dk (SEED_B
hqc-kem/src/pke.rs:19
↓ 1 callers
Function
poly_mul
Multiplication in `R_q`, modulo X^256 + 1
ml-kem/src/algebra.rs:365
↓ 1 callers
Method
public_key_mut
Returns a mutable reference to the public key
frodo-kem/src/hazmat/models.rs:342
↓ 1 callers
Function
radix_big
Radix conversion for larger sizes.
hqc-kem/src/fft.rs:74
↓ 1 callers
Method
random_s
(&self)
frodo-kem/src/hazmat/models.rs:326
↓ 1 callers
Method
random_s_mut
Returns a mutable reference to the shared secret
frodo-kem/src/hazmat/models.rs:331
↓ 1 callers
Function
reduce
Reduce polynomial modulo X^n - 1.
hqc-kem/src/poly.rs:224
↓ 1 callers
Function
reed_muller_decode
Decode concatenated RM codewords into message bytes.
hqc-kem/src/reed_muller.rs:136
↓ 1 callers
Function
reed_muller_encode
Encode message bytes into concatenated RM codewords. Each byte of `msg` (length n1) is RM-encoded into `mult` repetitions of 128-bit codewords, produ
hqc-kem/src/reed_muller.rs:114
↓ 1 callers
Function
reed_solomon_decode
Decode RS codeword, correcting up to delta errors. Modifies `cdw` in place, then extracts message from positions [2*delta..n1-1].
hqc-kem/src/reed_solomon.rs:201
↓ 1 callers
Function
reed_solomon_encode
Encode message into RS codeword (systematic). Message bytes are placed at positions [n1-k..n1-1] (high end). Parity bytes at positions [0..n1-k-1] (l
hqc-kem/src/reed_solomon.rs:13
↓ 1 callers
Function
run_test
(test_vector: TestVector)
x-wing/src/lib.rs:437
↓ 1 callers
Method
salt
(&self)
frodo-kem/src/hazmat/models.rs:126
↓ 1 callers
Method
salt_mut
Returns a mutable reference to the salt
frodo-kem/src/hazmat/models.rs:131
↓ 1 callers
Method
seed_a_mut
Returns a mutable reference to the seed A
frodo-kem/src/hazmat/models.rs:236
↓ 1 callers
Method
sub
Matrix subtraction
frodo-kem/src/hazmat/traits.rs:612
↓ 1 callers
Method
to_bytes
(&self)
ml-kem/src/encapsulation_key.rs:91
↓ 1 callers
Method
try_fill_bytes
(&mut self, dst: &mut [u8])
ml-kem/tests/pkcs8.rs:132
↓ 1 callers
Function
vect_compare
Constant-time byte comparison. Returns 0 if equal, non-zero otherwise.
hqc-kem/src/poly.rs:24
↓ 1 callers
Function
verify_decap_group
(tg: &acvp::DecapTestGroup)
ml-kem/tests/encap-decap.rs:81
↓ 1 callers
Function
verify_encap_group
(tg: &acvp::EncapTestGroup)
ml-kem/tests/encap-decap.rs:57
Function
PRF
(s: &B32, b: u8)
ml-kem/src/crypto.rs:49
Function
acvp_encap_decap
()
ml-kem/tests/encap-decap.rs:39
Function
acvp_key_gen
()
ml-kem/tests/key-gen.rs:12
Method
add
(self, rhs: Elem<F>)
module-lattice/src/algebra.rs:147
Method
algorithm
(&self)
frodo-kem/src/hazmat/traits.rs:432
Method
as_ref
(&self)
frodo-kem/src/hazmat/models.rs:75
Function
bench_against_liboqs
(c: &mut Criterion)
frodo-kem/benches/frodo.rs:171
Function
bench_decaps
(c: &mut Criterion)
hqc-kem/benches/kem.rs:26
Function
bench_encaps
(c: &mut Criterion)
hqc-kem/benches/kem.rs:15
Function
bench_keygen
(c: &mut Criterion)
hqc-kem/benches/kem.rs:7
Function
byte_codec
()
module-lattice/tests/encode.rs:79
Function
byte_codec_12_mod
()
module-lattice/tests/encode.rs:126
Function
byte_codec_test
(decoded: &DecodedValue, encoded: &EncodedPolynomial<D>)
module-lattice/tests/encode.rs:50
Function
byte_decode
FIPS 203: Algorithm 5 `ByteDecode_d(F)` FIPS 204: Algorithm 18 `SimpleBitUnpack`
module-lattice/src/encoding.rs:115
Function
byte_encode
FIPS 203: Algorithm 4 `ByteEncode_d`. FIPS 204: Algorithm 16 `SimpleBitPack`.
module-lattice/src/encoding.rs:91
Function
byte_encode_alternating_bits
()
module-lattice/tests/encode.rs:409
Function
byte_encode_decode_d10_roundtrip
()
module-lattice/tests/encode.rs:162
Function
byte_encode_decode_d12_modular_reduction
()
module-lattice/tests/encode.rs:189
Function
byte_encode_decode_d12_roundtrip
()
module-lattice/tests/encode.rs:175
Function
byte_encode_decode_d1_roundtrip
()
module-lattice/tests/encode.rs:136
Function
byte_encode_decode_d4_roundtrip
()
module-lattice/tests/encode.rs:149
Function
byte_encode_max_values
()
module-lattice/tests/encode.rs:217
← previous
next →
101–200 of 448, ranked by callers