@@ -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 ) */
8484int 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() */
9191int 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 ) */
9898int 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