Skip to content

Commit 312247f

Browse files
committed
better comments for PKCS#5
1 parent da4f854 commit 312247f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/headers/tomcrypt_pkcs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ int pkcs_1_pss_decode(const unsigned char *msghash, unsigned long msghashlen,
8080
/* ===> PKCS #5 -- Password Based Cryptography <=== */
8181
#ifdef LTC_PKCS_5
8282

83-
/* Algorithm #1 (old) */
83+
/* Algorithm #1 (PBKDF1) */
8484
int pkcs_5_alg1(const unsigned char *password, unsigned long password_len,
8585
const unsigned char *salt,
8686
int iteration_count, int hash_idx,
8787
unsigned char *out, unsigned long *outlen);
8888

89-
/* Algorithm #1 - OpenSSL-compatible variant for arbitrarily-long keys.
89+
/* Algorithm #1 (PBKDF1) - OpenSSL-compatible variant for arbitrarily-long keys.
9090
Compatible with EVP_BytesToKey() */
9191
int pkcs_5_alg1_openssl(const unsigned char *password,
9292
unsigned long password_len,
9393
const unsigned char *salt,
9494
int iteration_count, int hash_idx,
9595
unsigned char *out, unsigned long *outlen);
9696

97-
/* Algorithm #2 (new) */
97+
/* Algorithm #2 (PBKDF2) */
9898
int pkcs_5_alg2(const unsigned char *password, unsigned long password_len,
9999
const unsigned char *salt, unsigned long salt_len,
100100
int iteration_count, int hash_idx,

0 commit comments

Comments
 (0)