dcrypt 3.0.0

Rust APIs for classical, post-quantum, and hybrid cryptographic primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# KEM errors

`dcrypt_kem::error` converts implementation failures into the shared
`dcrypt_api::Error` surface. Callers should expect errors for failed randomness,
invalid lengths, malformed encodings, invalid curve points, inconsistent keys,
and other rejected inputs.

Do not build a decryption or validity oracle from detailed diagnostics. Treat
all failures involving untrusted keys or ciphertexts as a rejected operation,
log only non-sensitive context, and never retry with weakened validation.

Randomness failures are propagated from the caller-owned `CryptoRng`; dcrypt
does not silently substitute another entropy source.