summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/cng/asymmetric.rs
AgeCommit message (Collapse)Author
2023-03-14openpgp: Immediately create ProtectedMPIs for secrets.Justus Winter
- Avoid creating an MPI first, as this may leak the secrets.
2023-03-01openpgp: Fix crash in the CNG backend.Justus Winter
2022-05-05openpgp: Fix ECDH parameter selection on generation and import.Justus Winter
- Select an appropriate hash algorithm for the ECDH KDF and an appropriate cipher for the ECDH KEK depending on the curve. Harmonize that for import and generation. - Fixes #841.
2021-11-18openpgp: Use a WASM-friendly SystemTime::now wrapper.Justus Winter
- Fixes #769.
2021-10-05openpgp: Fix crash in the CNG backend.Justus Winter
2021-09-30openpgp: Use new padding methods in the CNG backend.Justus Winter
2021-09-29openpgp: Pad the DSA public key to the size of the modulus.Justus Winter
- Works around a crash in the CNG bindings. - See https://github.com/emgre/win-crypto-ng/issues/39.
2021-09-29openpgp: Use new padding methods in the CNG backend.Justus Winter
- This makes the code more succinct and also more robust (consider for example that `field_sz - r.value().len()` may underflow.
2021-09-29openpgp: Use the new padding methods in the CNG backend.Justus Winter
2021-09-15openpgp: Avoid creating unused borrows.Justus Winter
2021-09-08openpgp: Don't assume that we only use Ed25519 for EdDSA.Justus Winter
2020-12-04openpgp: Make Key::verify more low-level.Justus Winter
- Key::encrypt returns mpi::Ciphertext, not a PKESK packet. Similarly, change Key::verify to take a mpi::Signature instead of a Signature packet.
2020-10-06openpgp: Use padding instead of alignment in one more placeIgor Matuszewski
2020-10-06openpgp: Pad RSA ciphertext and ECC scalars for CNGIgor Matuszewski
We strip leading zeroes in our MPIs but CNG expects full-length values so make sure to add those back when interfacing with CNG.
2020-08-13openpgp: Implement ECDH and RSA encryptionIgor Matuszewski
2020-08-13openpgp: Implement DSA signatures using Windows CNGIgor Matuszewski
2020-08-13openpgp: Implement ed25519 signatures with ed25519-dalekIgor Matuszewski
2020-08-13openpgp: Implement RSA and ECDSA signatures via Windows CNG APIIgor Matuszewski
2020-08-13openpgp: Implement asymmetric key gen/import using Windows CNG APIIgor Matuszewski
2020-08-13openpgp: Add stubs for other crypto impls using Windows CNG APIIgor Matuszewski