Home
last modified time | relevance | path

Searched refs:pwd (Results 1 – 13 of 13) sorted by relevance

/mbedtls-3.5.0/library/
Dpem.c100 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()
[all …]
Dpkcs12.c95 const unsigned char *pwd, size_t pwdlen, in pkcs12_pbe_derive_key_iv() argument
117 unipwd[i * 2 + 1] = pwd[i]; in pkcs12_pbe_derive_key_iv()
142 const unsigned char *pwd, size_t pwdlen, in mbedtls_pkcs12_pbe() argument
153 if (pwd == NULL && pwdlen != 0) { in mbedtls_pkcs12_pbe()
164 if ((ret = pkcs12_pbe_derive_key_iv(pbe_params, md_type, pwd, pwdlen, in mbedtls_pkcs12_pbe()
344 const unsigned char *pwd, size_t pwdlen, in mbedtls_pkcs12_derivation() argument
366 if (pwd == NULL && pwdlen != 0) { in mbedtls_pkcs12_derivation()
374 use_password = (pwd && pwdlen != 0); in mbedtls_pkcs12_derivation()
392 pkcs12_fill_buffer(pwd_block, v, pwd, pwdlen); in mbedtls_pkcs12_derivation()
Dpkparse.c112 const char *path, const char *pwd, in mbedtls_pk_parse_keyfile() argument
123 if (pwd == NULL) { in mbedtls_pk_parse_keyfile()
127 (const unsigned char *) pwd, strlen(pwd), f_rng, p_rng); in mbedtls_pk_parse_keyfile()
1112 const unsigned char *pwd, size_t pwdlen, in pk_parse_key_pkcs8_encrypted_der() argument
1171 pwd, pwdlen, p, len, buf)) != 0) { in pk_parse_key_pkcs8_encrypted_der()
1184 if ((ret = mbedtls_pkcs5_pbes2(&pbe_params, MBEDTLS_PKCS5_DECRYPT, pwd, pwdlen, in pk_parse_key_pkcs8_encrypted_der()
1197 ((void) pwd); in pk_parse_key_pkcs8_encrypted_der()
1213 const unsigned char *pwd, size_t pwdlen, in mbedtls_pk_parse_key() argument
1238 key, pwd, pwdlen, &len); in mbedtls_pk_parse_key()
1268 key, pwd, pwdlen, &len); in mbedtls_pk_parse_key()
[all …]
Dpkcs5.c122 const unsigned char *pwd, size_t pwdlen, in mbedtls_pkcs5_pbes2() argument
197 if ((ret = mbedtls_pkcs5_pbkdf2_hmac_ext(md_type, pwd, pwdlen, salt.p, in mbedtls_pkcs5_pbes2()
Dssl_tls.c1958 mbedtls_svc_key_id_t pwd) in mbedtls_ssl_set_hs_ecjpake_password_common() argument
2000 status = psa_pake_set_password_key(&ssl->handshake->psa_pake_ctx, pwd); in mbedtls_ssl_set_hs_ecjpake_password_common()
2048 mbedtls_svc_key_id_t pwd) in mbedtls_ssl_set_hs_ecjpake_password_opaque() argument
2056 if (mbedtls_svc_key_id_is_null(pwd)) { in mbedtls_ssl_set_hs_ecjpake_password_opaque()
2060 status = mbedtls_ssl_set_hs_ecjpake_password_common(ssl, pwd); in mbedtls_ssl_set_hs_ecjpake_password_opaque()
/mbedtls-3.5.0/tests/suites/
Dtest_suite_pem.data24 mbedtls_pem_read_buffer:"^":"$":"^\nProc-Type\: 4,ENCRYPTED\nDEK-Info\: DES-EDE3-CBC,00$":"pwd":MBE…
28 mbedtls_pem_read_buffer:"^":"$":"^\nProc-Type\: 4,ENCRYPTED\nDEK-Info\: DES-CBC,00$":"pwd":MBEDTLS_…
32 mbedtls_pem_read_buffer:"^":"$":"^\nProc-Type\: 4,ENCRYPTED\nDEK-Info\: AES-,00$":"pwd":MBEDTLS_ERR…
36 …EK-Info\: DES-CBC,AA94892A169FA426\n\nMAAA\n-----END EC PRIVATE KEY-----":"pwd":MBEDTLS_ERR_DES_IN…
40 …fo\: DES-EDE3-CBC,AA94892A169FA426\n\nMAAA\n-----END EC PRIVATE KEY-----":"pwd":MBEDTLS_ERR_DES_IN…
44 …C,AA94892A169FA426AA94892A169FA426\n\nMAAA\n-----END EC PRIVATE KEY-----":"pwd":MBEDTLS_ERR_AES_IN…
Dtest_suite_pkparse.function19 char *pwd = password;
24 if (strcmp(pwd, "NULL") == 0) {
25 pwd = NULL;
28 res = mbedtls_pk_parse_keyfile(&ctx, key_file, pwd,
Dtest_suite_pem.function39 char *pwd, int res, data_t *out)
44 size_t pwd_len = strlen(pwd);
50 (unsigned char *) pwd, pwd_len, &use_len);
/mbedtls-3.5.0/include/mbedtls/
Dpkcs12.h75 const unsigned char *pwd, size_t pwdlen,
109 const unsigned char *pwd, size_t pwdlen,
Dpkcs5.h67 const unsigned char *pwd, size_t pwdlen,
Dpem.h106 const unsigned char *pwd,
Dpk.h832 const unsigned char *pwd, size_t pwdlen,
Dssl.h3932 mbedtls_svc_key_id_t pwd);