Lines Matching refs:pwd
100 const unsigned char *pwd, size_t pwdlen) in pem_pbkdf1() argument
122 if ((ret = mbedtls_md_update(&md5_ctx, pwd, pwdlen)) != 0) { in pem_pbkdf1()
148 if ((ret = mbedtls_md_update(&md5_ctx, pwd, pwdlen)) != 0) { in pem_pbkdf1()
174 const unsigned char *pwd, size_t pwdlen) in pem_pbkdf1() argument
186 if ((status = psa_hash_update(&operation, pwd, pwdlen)) != PSA_SUCCESS) { in pem_pbkdf1()
225 if ((status = psa_hash_update(&operation, pwd, pwdlen)) != PSA_SUCCESS) { in pem_pbkdf1()
263 const unsigned char *pwd, size_t pwdlen) in pem_des_decrypt() argument
271 if ((ret = pem_pbkdf1(des_key, 8, des_iv, pwd, pwdlen)) != 0) { in pem_des_decrypt()
293 const unsigned char *pwd, size_t pwdlen) in pem_des3_decrypt() argument
301 if ((ret = pem_pbkdf1(des3_key, 24, des3_iv, pwd, pwdlen)) != 0) { in pem_des3_decrypt()
325 const unsigned char *pwd, size_t pwdlen) in pem_aes_decrypt() argument
333 if ((ret = pem_pbkdf1(aes_key, keylen, aes_iv, pwd, pwdlen)) != 0) { in pem_aes_decrypt()
354 const unsigned char *data, const unsigned char *pwd, in mbedtls_pem_read_buffer() argument
365 ((void) pwd); in mbedtls_pem_read_buffer()
512 if (pwd == NULL) { in mbedtls_pem_read_buffer()
522 ret = pem_des3_decrypt(pem_iv, buf, len, pwd, pwdlen); in mbedtls_pem_read_buffer()
524 ret = pem_des_decrypt(pem_iv, buf, len, pwd, pwdlen); in mbedtls_pem_read_buffer()
530 ret = pem_aes_decrypt(pem_iv, 16, buf, len, pwd, pwdlen); in mbedtls_pem_read_buffer()
532 ret = pem_aes_decrypt(pem_iv, 24, buf, len, pwd, pwdlen); in mbedtls_pem_read_buffer()
534 ret = pem_aes_decrypt(pem_iv, 32, buf, len, pwd, pwdlen); in mbedtls_pem_read_buffer()