MCPcopy Create free account

hub / github.com/RustCrypto/KEMs / functions

Functions448 in github.com/RustCrypto/KEMs

Functionbyte_encode_sequential_values
()
module-lattice/tests/encode.rs:423
Functionbyte_encode_zero_values
()
module-lattice/tests/encode.rs:205
Functionciphertext_serialize
()
x-wing/src/lib.rs:455
Functioncodec
()
ml-kem/src/pke.rs:257
Functioncodec_test
()
ml-kem/src/pke.rs:239
Functioncompare_with_reference_keys
(variant: usize, ref_pub_key_pem: &str, ref_priv_key_pem: &str)
ml-kem/tests/pkcs8.rs:105
Methodcompress
(&mut self)
ml-kem/src/compress.rs:39
Functioncompress_KAT
()
ml-kem/src/compress.rs:153
Functioncompress_decompress_KATs
()
ml-kem/src/compress.rs:168
Functioncompress_decompress_properties
()
ml-kem/src/compress.rs:163
Functioncompression_decompression_inequality
Verify against inequality 4.7
ml-kem/src/compress.rs:110
Methodconcat_ct
(u: EncodedU<Self>, v: EncodedV<Self>)
ml-kem/src/param.rs:157
Methodconcat_dk
( dk: EncodedDecryptionKey<Self>, ek: EncodedEncryptionKey<Self>, h: B32, z: B
ml-kem/src/param.rs:214
Methodconcat_ek
(t_hat: EncodedNttVector<Self>, rho: B32)
ml-kem/src/param.rs:165
Functioncriterion_benchmark
(c: &mut Criterion)
ml-kem/benches/mlkem.rs:12
Methodct_eq
(&self, other: &Self)
module-lattice/src/algebra.rs:118
Methoddecapsulate
(&self, encapsulated_key: &Ciphertext)
dhkem/src/x25519_kem.rs:91
Methoddecapsulate
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
Methoddecode
(enc: &Array<u8, Self::EncodedSize>)
module-lattice/src/encoding.rs:162
Functiondecode_expected_hex
(opt: &Option<String>, field: &str)
ml-kem/tests/wycheproof.rs:84
Methoddecode_u12
(v: &EncodedNttVector<Self>)
ml-kem/src/param.rs:153
Methoddecompress
Equation 4.6: Decompress_d(x) = round((q / 2^d) x)
ml-kem/src/compress.rs:48
Functiondecompress_KAT
()
ml-kem/src/compress.rs:143
Functiondecompress_compress
()
ml-kem/src/compress.rs:174
Functiondecompression_compression_equality
()
ml-kem/src/compress.rs:133
Methoddefault
()
frodo-kem/src/lib.rs:527
Methoddefault
()
frodo-kem/src/hazmat/models.rs:81
Functionder_serialization_and_deserialization
(expected_encaps_len: u32)
ml-kem/tests/pkcs8.rs:22
Methodderef
(&self)
module-lattice/src/maybe_box.rs:47
Methodderef_mut
(&mut self)
module-lattice/src/maybe_box.rs:53
Methoddeserialize
(d: D)
hqc-kem/src/types.rs:421
Methoddeserialize
(d: D)
frodo-kem/src/lib.rs:842
Methoddrop
(&mut self)
x-wing/src/lib.rs:229
Methoddrop
(&mut self)
hqc-kem/src/types.rs:249
Methoddrop
(&mut self)
ml-kem/src/decapsulation_key.rs:147
Functionelem_addition
()
module-lattice/tests/algebra.rs:63
Functionelem_arithmetic_consistency
()
module-lattice/tests/algebra.rs:125
Functionelem_ct_eq
()
module-lattice/tests/algebra.rs:526
Functionelem_equality
()
module-lattice/tests/algebra.rs:374
Functionelem_multiplication
()
module-lattice/tests/algebra.rs:103
Functionelem_negation
()
module-lattice/tests/algebra.rs:48
Functionelem_subtraction
()
module-lattice/tests/algebra.rs:81
Functionelem_zeroize
()
module-lattice/tests/algebra.rs:467
Methodenabled_algorithms
()
frodo-kem/src/lib.rs:859
Methodencapsulate_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
Methodencapsulate_with_rng
(&self, rng: &mut R)
dhkem/src/x25519_kem.rs:151
Methodencapsulate_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
Methodencapsulation_key
(&self)
x-wing/src/lib.rs:223
Methodencapsulation_key
(&self)
dhkem/src/x25519_kem.rs:40
Methodencapsulation_key
(&self)
dhkem/src/ecdh_kem.rs:52
Methodencapsulation_key
Get the encapsulation (public) key corresponding to this decapsulation key.
hqc-kem/src/types.rs:137
Methodencode_u12
(p: &NttVector<Self::K>)
ml-kem/src/param.rs:149
Functionencoded_polynomial_size_d12
()
module-lattice/tests/encode.rs:382
Functionencoded_polynomial_size_d4
()
module-lattice/tests/encode.rs:372
Functionencoded_vector_size
()
module-lattice/tests/encode.rs:392
Methodeq
(&self, other: &Self)
hqc-kem/src/types.rs:205
Methodeq
(&self, other: &Self)
ml-kem/src/pke.rs:43
Methodeq
(&self, other: &Self)
ml-kem/src/decapsulation_key.rs:137
Methodeq
(&self, other: &Self)
ml-kem/src/encapsulation_key.rs:117
Methodexpand
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
Functionexpanded_key
()
ml-kem/src/lib.rs:332
Functionexpanded_key_test
()
ml-kem/src/lib.rs:320
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
x-wing/src/lib.rs:198
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
hqc-kem/src/types.rs:167
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
frodo-kem/src/lib.rs:534
Methodfrom
(sk: [u8; DECAPSULATION_KEY_SIZE])
x-wing/src/lib.rs:236
Methodfrom
(f: Array<Elem<F>, U256>)
module-lattice/src/algebra.rs:419
Methodfrom
(dk: DK)
dhkem/src/lib.rs:82
Methodfrom
(seed: Seed)
ml-kem/src/decapsulation_key.rs:163
Methodfrom
(secret_key: &DecryptionKey)
frodo-kem/src/lib.rs:304
Methodfrom
(value: &'a Ciphertext<P>)
frodo-kem/src/hazmat/models.rs:147
Methodfrom_bytes
Parse an decryption key from a byte array `(s_hat)`
ml-kem/src/pke.rs:111
Methodfrom_bytes
Convert a slice of bytes into a [`Ciphertext`] according to the specified [`Algorithm`].
frodo-kem/src/lib.rs:285
Methodfrom_encryption_key
(ek_pke: EncryptionKey<P>)
ml-kem/src/encapsulation_key.rs:53
Methodfrom_expanded
(enc: &ExpandedDecapsulationKey<P>)
ml-kem/src/decapsulation_key.rs:64
Methodfrom_expanded_bytes
(expanded: &ExpandedDecapsulationKey<P>)
ml-kem/src/decapsulation_key.rs:272
Methodfrom_sec1_point
(point: &sec1::Sec1Point<C>)
dhkem/src/lib.rs:112
Methodfrom_seed
(seed: Seed)
ml-kem/src/decapsulation_key.rs:51
Methodfrom_seed
(seed: Self::Seed)
frodo-kem/tests/rng.rs:30
Methodfrom_slice
Convert a slice of bytes into a ciphertext
frodo-kem/src/hazmat/models.rs:92
Methodfrom_str
(s: &str)
frodo-kem/src/lib.rs:610
Methodfrom_vec
(bytes: Vec<u8>)
hqc-kem/src/types.rs:105
Functiong
()
ml-kem/src/crypto.rs:132
Methodgenerate
Generate a new random decryption key according to the `K-PKE.KeyGen` procedure. Algorithm 12. K-PKE.KeyGen()
ml-kem/src/pke.rs:65
Methodgenerate_deterministic
allow dk_pke, ek_pke, following the spec
ml-kem/src/decapsulation_key.rs:119
Methodgenerate_key
Generate an HQC key pair.
hqc-kem/src/types.rs:273
Functiongenerate_key_deterministic
(seed: &[u8; 32])
hqc-kem/src/lib.rs:112
Methodgenerate_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
Methodgenerate_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
Functionh
()
ml-kem/src/crypto.rs:143
Methodinner_decapsulate
( &self, secret_key: &DecryptionKey, ciphertext: &Ciphertext, )
frodo-kem/src/lib.rs:1592
Methodinner_decryption_key_from_bytes
(&self, buf: &[u8])
frodo-kem/src/lib.rs:1049
Methodinner_encapsulate
( &self, encryption_key: &EncryptionKey, msg: &[u8], salt: &[u8], )
frodo-kem/src/lib.rs:1433
Methodinner_encapsulate_with_rng
( &self, encryption_key: &EncryptionKey, rng: &mut R, )
frodo-kem/src/lib.rs:1514
Methodinner_encryption_key_from_bytes
(&self, buf: &[u8])
frodo-kem/src/lib.rs:1103
Methodinner_encryption_key_from_decryption_key
( &self, secret_key: &DecryptionKey, )
frodo-kem/src/lib.rs:991
Methodinner_generate_keypair
( &self, rng: &mut R, )
frodo-kem/src/lib.rs:1355
Methodinner_params
(&self)
frodo-kem/src/lib.rs:919
Methodinto_inner
(self)
module-lattice/src/maybe_box.rs:32
Methodinto_inner
Consumes `self` and returns the wrapped value
dhkem/src/lib.rs:67
← previousnext →201–300 of 448, ranked by callers