| 1 |
Features |
| 2 |
-------- |
| 3 |
|
| 4 |
This page lists the low-level primitives that PyCryptodome provides. |
| 5 |
|
| 6 |
You are expected to have a solid understanding of cryptography and security |
| 7 |
engineering to successfully use them. |
| 8 |
|
| 9 |
You must also be able to recognize that some primitives are obsolete (e.g. TDES) |
| 10 |
or even unsecure (RC4). They are provided only to enable backward compatibility |
| 11 |
where required by the applications. |
| 12 |
|
| 13 |
A list of useful resources in that area can be found on `Matthew Green's blog`_. |
| 14 |
|
| 15 |
* Symmetric ciphers: |
| 16 |
|
| 17 |
- AES |
| 18 |
- Single and Triple DES (legacy) |
| 19 |
- CAST-128 (legacy) |
| 20 |
- RC2 (legacy) |
| 21 |
|
| 22 |
* Traditional modes of operations for symmetric ciphers: |
| 23 |
|
| 24 |
- ECB |
| 25 |
- CBC |
| 26 |
- CFB |
| 27 |
- OFB |
| 28 |
- CTR |
| 29 |
- OpenPGP (a variant of CFB, RFC4880) |
| 30 |
|
| 31 |
* Authenticated Encryption: |
| 32 |
|
| 33 |
- CCM (AES only) |
| 34 |
- EAX |
| 35 |
- GCM (AES only) |
| 36 |
- SIV (AES only) |
| 37 |
- OCB (AES only) |
| 38 |
- ChaCha20-Poly1305 |
| 39 |
|
| 40 |
* Stream ciphers: |
| 41 |
|
| 42 |
- Salsa20 |
| 43 |
- ChaCha20 |
| 44 |
- RC4 (legacy) |
| 45 |
|
| 46 |
* Cryptographic hashes: |
| 47 |
|
| 48 |
- SHA-1 |
| 49 |
- SHA-2 hashes (224, 256, 384, 512, 512/224, 512/256) |
| 50 |
- SHA-3 hashes (224, 256, 384, 512) and XOFs (SHAKE128, SHAKE256) |
| 51 |
- Functions derived from SHA-3 (cSHAKE128, cSHAKE256, TupleHash128, TupleHash256) |
| 52 |
- KangarooTwelve, TurboSHAKE128, TurboSHAKE256 (XOF) |
| 53 |
- Keccak (original submission to SHA-3) |
| 54 |
- BLAKE2b and BLAKE2s |
| 55 |
- RIPE-MD160 (legacy) |
| 56 |
- MD5 (legacy) |
| 57 |
|
| 58 |
* Message Authentication Codes (MAC): |
| 59 |
|
| 60 |
- HMAC |
| 61 |
- CMAC |
| 62 |
- KMAC128 and KMAC256 |
| 63 |
- Poly1305 |
| 64 |
|
| 65 |
* Asymmetric key generation: |
| 66 |
|
| 67 |
- RSA |
| 68 |
- ECC (NIST P-curves; Ed25519, Ed448) |
| 69 |
- DSA |
| 70 |
- ElGamal (legacy) |
| 71 |
|
| 72 |
* Export and import format for asymmetric keys: |
| 73 |
|
| 74 |
- PEM (clear and encrypted) |
| 75 |
- PKCS#8 (clear and encrypted) |
| 76 |
- ASN.1 DER |
| 77 |
|
| 78 |
* Asymmetric ciphers: |
| 79 |
|
| 80 |
- PKCS#1 (RSA) |
| 81 |
|
| 82 |
- RSAES-PKCS1-v1_5 |
| 83 |
- RSAES-OAEP |
| 84 |
|
| 85 |
* Asymmetric digital signatures: |
| 86 |
|
| 87 |
- PKCS#1 (RSA) |
| 88 |
|
| 89 |
- RSASSA-PKCS1-v1_5 |
| 90 |
- RSASSA-PSS |
| 91 |
|
| 92 |
- (EC)DSA |
| 93 |
|
| 94 |
- Nonce-based (FIPS 186-3) |
| 95 |
- Deterministic (RFC6979) |
| 96 |
|
| 97 |
- EdDSA |
| 98 |
|
| 99 |
* Key derivation: |
| 100 |
|
| 101 |
- PBKDF2 |
| 102 |
- scrypt |
| 103 |
- HKDF |
| 104 |
- PBKDF1 (legacy) |
| 105 |
|
| 106 |
* Other cryptographic protocols: |
| 107 |
|
| 108 |
- Shamir Secret Sharing |
| 109 |
- Padding |
| 110 |
|
| 111 |
- PKCS#7 |
| 112 |
- ISO-7816 |
| 113 |
- X.923 |
| 114 |
|
| 115 |
.. _`Matthew Green's blog`: http://blog.cryptographyengineering.com/p/useful-cryptography-resources.html |