mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Merge pull request #376 from theupdateframework/fix_key_typos
DOC: Fixes PBKDF1 typo throughout modules
This commit is contained in:
commit
f50fa2a4fe
3 changed files with 9 additions and 9 deletions
|
|
@ -1204,7 +1204,7 @@ def encrypt_key(key_object, password):
|
|||
performs the actual cryptographic operation on 'key_object'. Whereas
|
||||
an encrypted PEM file uses the Triple Data Encryption Algorithm (3DES), the
|
||||
Cipher-block chaining (CBC) mode of operation, and the Password-Based Key
|
||||
Derivation Function 1 (PBKF1) + MD5 to strengthen 'password', encrypted
|
||||
Derivation Function 1 (PBKDF1) + MD5 to strengthen 'password', encrypted
|
||||
TUF keys use AES-256-CTR-Mode and passwords strengthened with
|
||||
PBKDF2-HMAC-SHA256 (100K iterations by default, but may be overriden in
|
||||
'tuf.conf.PBKDF2_ITERATIONS' by the user).
|
||||
|
|
@ -1298,7 +1298,7 @@ def decrypt_key(encrypted_key, passphrase):
|
|||
performs the actual cryptographic operation on 'key_object'. Whereas
|
||||
an encrypted PEM file uses the Triple Data Encryption Algorithm (3DES), the
|
||||
Cipher-block chaining (CBC) mode of operation, and the Password-Based Key
|
||||
Derivation Function 1 (PBKF1) + MD5 to strengthen 'password', encrypted
|
||||
Derivation Function 1 (PBKDF1) + MD5 to strengthen 'password', encrypted
|
||||
TUF keys use AES-256-CTR-Mode and passwords strengthened with
|
||||
PBKDF2-HMAC-SHA256 (100K iterations be default, but may be overriden in
|
||||
'tuf.conf.py' by the user).
|
||||
|
|
@ -1397,7 +1397,7 @@ def create_rsa_encrypted_pem(private_key, passphrase):
|
|||
Return a string in PEM format, where the private part of the RSA key is
|
||||
encrypted. The private part of the RSA key is encrypted by the Triple
|
||||
Data Encryption Algorithm (3DES) and Cipher-block chaining (CBC) for the
|
||||
mode of operation. Password-Based Key Derivation Function 1 (PBKF1) + MD5
|
||||
mode of operation. Password-Based Key Derivation Function 1 (PBKDF1) + MD5
|
||||
is used to strengthen 'passphrase'.
|
||||
|
||||
https://en.wikipedia.org/wiki/Triple_DES
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
PEM-encrypted RSA key files use the Triple Data Encryption Algorithm (3DES),
|
||||
and Cipher-block chaining (CBC) for the mode of operation. Password-Based Key
|
||||
Derivation Function 1 (PBKF1) + MD5.
|
||||
Derivation Function 1 (PBKDF1) + MD5.
|
||||
"""
|
||||
|
||||
# Help with Python 3 compatibility, where the print statement is a function, an
|
||||
|
|
@ -471,7 +471,7 @@ def create_rsa_encrypted_pem(private_key, passphrase):
|
|||
Return a string in PEM format, where the private part of the RSA key is
|
||||
encrypted. The private part of the RSA key is encrypted by the Triple
|
||||
Data Encryption Algorithm (3DES) and Cipher-block chaining (CBC) for the
|
||||
mode of operation. Password-Based Key Derivation Function 1 (PBKF1) + MD5
|
||||
mode of operation. Password-Based Key Derivation Function 1 (PBKDF1) + MD5
|
||||
is used to strengthen 'passphrase'.
|
||||
|
||||
TODO: Generate encrypted PEM (that matches PyCrypto's) once support is
|
||||
|
|
@ -681,7 +681,7 @@ def encrypt_key(key_object, password):
|
|||
|
||||
Whereas an encrypted PEM file uses the Triple Data Encryption Algorithm
|
||||
(3DES), the Cipher-block chaining (CBC) mode of operation, and the Password
|
||||
Based Key Derivation Function 1 (PBKF1) + MD5 to strengthen 'password',
|
||||
Based Key Derivation Function 1 (PBKDF1) + MD5 to strengthen 'password',
|
||||
encrypted TUF keys use AES-256-CTR-Mode and passwords strengthened with
|
||||
PBKDF2-HMAC-SHA256 (100K iterations by default, but may be overriden in
|
||||
'tuf.conf.PBKDF2_ITERATIONS' by the user).
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
PEM-encrypted RSA key files use the Triple Data Encryption Algorithm (3DES)
|
||||
and Cipher-block chaining (CBC) for the mode of operation. Password-Based Key
|
||||
Derivation Function 1 (PBKF1) + MD5.
|
||||
Derivation Function 1 (PBKDF1) + MD5.
|
||||
"""
|
||||
|
||||
# Help with Python 3 compatibility, where the print statement is a function, an
|
||||
|
|
@ -415,7 +415,7 @@ def create_rsa_encrypted_pem(private_key, passphrase):
|
|||
Return a string in PEM format, where the private part of the RSA key is
|
||||
encrypted. The private part of the RSA key is encrypted by the Triple
|
||||
Data Encryption Algorithm (3DES) and Cipher-block chaining (CBC) for the
|
||||
mode of operation. Password-Based Key Derivation Function 1 (PBKF1) + MD5
|
||||
mode of operation. Password-Based Key Derivation Function 1 (PBKDF1) + MD5
|
||||
is used to strengthen 'passphrase'.
|
||||
|
||||
https://en.wikipedia.org/wiki/Triple_DES
|
||||
|
|
@ -611,7 +611,7 @@ def encrypt_key(key_object, password):
|
|||
|
||||
Whereas an encrypted PEM file uses the Triple Data Encryption Algorithm
|
||||
(3DES), the Cipher-block chaining (CBC) mode of operation, and the Password
|
||||
Based Key Derivation Function 1 (PBKF1) + MD5 to strengthen 'password',
|
||||
Based Key Derivation Function 1 (PBKDF1) + MD5 to strengthen 'password',
|
||||
encrypted TUF keys use AES-256-CTR-Mode and passwords strengthened with
|
||||
PBKDF2-HMAC-SHA256 (100K iterations by default, but may be overriden in
|
||||
'tuf.conf.PBKDF2_ITERATIONS' by the user).
|
||||
|
|
|
|||
Loading…
Reference in a new issue