We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe9c1af commit 08a18e2Copy full SHA for 08a18e2
src/pke.rs
@@ -64,7 +64,7 @@ impl<const L: usize> PkePublicKey<L> {
64
let (vec_bytes, seed) = bytes.split_at(Self::SERIALIZED_LEN - 32);
65
let vec = Matrix::from_bytes(vec_bytes, MODULUS_P_BITS);
66
Self {
67
- seed: seed.try_into().unwrap(),
+ seed: seed.try_into().expect("split_at(N-32).1 has len 32"),
68
vec,
69
}
70
0 commit comments