mirror of
https://github.com/saymrwulf/anza-cryptography-source.git
synced 2026-09-04 20:24:04 +00:00
Add strict SPKI validation and tests for PKCS#8 public keys. Introduce OID and ALGORITHM_ID constants and refactor SPKI parsing into verification_key_bytes_from_spki which verifies the algorithm OID, parameters, and key byte length/format, returning appropriate pkcs8::spki::Error values. Update TryFrom/EncodePublicKey/DecodePublicKey implementations to use the new helper and to propagate/mapping errors correctly. Add two tests (behind the pkcs8 feature) to assert rejection of SPKI docs with the wrong algorithm OID and with malformed key bytes. |
||
|---|---|---|
| .. | ||
| backend | ||
| ed_sigs | ||
| edwards | ||
| lizard | ||
| ristretto | ||
| scalar | ||
| backend.rs | ||
| constants.rs | ||
| diagnostics.rs | ||
| ed_sigs.rs | ||
| edwards.rs | ||
| field.rs | ||
| lib.rs | ||
| lizard.rs | ||
| macros.rs | ||
| montgomery.rs | ||
| ristretto.rs | ||
| scalar.rs | ||
| short_weierstrass.rs | ||
| traits.rs | ||
| window.rs | ||