Home
last modified time | relevance | path

Searched refs:pwdlen (Results 1 – 9 of 9) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/library/
Dpkcs12.c77 const unsigned char *pwd, size_t pwdlen, in pkcs12_pbe_derive_key_iv() argument
86 if (pwdlen > PKCS12_MAX_PWDLEN) { in pkcs12_pbe_derive_key_iv()
98 for (i = 0; i < pwdlen; i++) { in pkcs12_pbe_derive_key_iv()
102 if ((ret = mbedtls_pkcs12_derivation(key, keylen, unipwd, pwdlen * 2 + 2, in pkcs12_pbe_derive_key_iv()
112 if ((ret = mbedtls_pkcs12_derivation(iv, ivlen, unipwd, pwdlen * 2 + 2, in pkcs12_pbe_derive_key_iv()
125 const unsigned char *pwd, size_t pwdlen,
134 const unsigned char *pwd, size_t pwdlen, in mbedtls_pkcs12_pbe() argument
145 pwd, pwdlen, data, len, output, SIZE_MAX, in mbedtls_pkcs12_pbe()
152 const unsigned char *pwd, size_t pwdlen, in mbedtls_pkcs12_pbe_ext() argument
166 if (pwd == NULL && pwdlen != 0) { in mbedtls_pkcs12_pbe_ext()
[all …]
Dpem.c77 const unsigned char *pwd, size_t pwdlen) in pem_pbkdf1() argument
99 if ((ret = mbedtls_md_update(&md5_ctx, pwd, pwdlen)) != 0) { in pem_pbkdf1()
125 if ((ret = mbedtls_md_update(&md5_ctx, pwd, pwdlen)) != 0) { in pem_pbkdf1()
155 const unsigned char *pwd, size_t pwdlen) in pem_des_decrypt() argument
163 if ((ret = pem_pbkdf1(des_key, 8, des_iv, pwd, pwdlen)) != 0) { in pem_des_decrypt()
185 const unsigned char *pwd, size_t pwdlen) in pem_des3_decrypt() argument
193 if ((ret = pem_pbkdf1(des3_key, 24, des3_iv, pwd, pwdlen)) != 0) { in pem_des3_decrypt()
217 const unsigned char *pwd, size_t pwdlen) in pem_aes_decrypt() argument
225 if ((ret = pem_pbkdf1(aes_key, keylen, aes_iv, pwd, pwdlen)) != 0) { in pem_aes_decrypt()
270 size_t pwdlen, size_t *use_len) in mbedtls_pem_read_buffer() argument
[all …]
Dpkcs5.c106 const unsigned char *pwd, size_t pwdlen,
114 const unsigned char *pwd, size_t pwdlen, in mbedtls_pkcs5_pbes2() argument
124 return mbedtls_pkcs5_pbes2_ext(pbe_params, mode, pwd, pwdlen, data, in mbedtls_pkcs5_pbes2()
130 const unsigned char *pwd, size_t pwdlen, in mbedtls_pkcs5_pbes2_ext() argument
219 if ((ret = mbedtls_pkcs5_pbkdf2_hmac_ext(md_type, pwd, pwdlen, salt.p, in mbedtls_pkcs5_pbes2_ext()
Dpkparse.c868 const unsigned char *pwd, size_t pwdlen, in mbedtls_pk_parse_key_pkcs8_encrypted_der() argument
885 if (pwdlen == 0) { in mbedtls_pk_parse_key_pkcs8_encrypted_der()
928 pwd, pwdlen, p, len, buf, len, &outlen)) != 0) { in mbedtls_pk_parse_key_pkcs8_encrypted_der()
941 if ((ret = mbedtls_pkcs5_pbes2_ext(&pbe_params, MBEDTLS_PKCS5_DECRYPT, pwd, pwdlen, in mbedtls_pk_parse_key_pkcs8_encrypted_der()
975 const unsigned char *pwd, size_t pwdlen, in mbedtls_pk_parse_key() argument
999 key, pwd, pwdlen, &len); in mbedtls_pk_parse_key()
1029 key, pwd, pwdlen, &len); in mbedtls_pk_parse_key()
1084 pwd, pwdlen, f_rng, p_rng)) != 0) { in mbedtls_pk_parse_key()
1096 ((void) pwdlen); in mbedtls_pk_parse_key()
1107 if (pwdlen != 0) { in mbedtls_pk_parse_key()
[all …]
Dpk_internal.h199 const unsigned char *pwd, size_t pwdlen,
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/
Dpkcs12.h92 const unsigned char *pwd, size_t pwdlen,
141 const unsigned char *pwd, size_t pwdlen,
178 const unsigned char *pwd, size_t pwdlen,
Dpkcs5.h85 const unsigned char *pwd, size_t pwdlen,
126 const unsigned char *pwd, size_t pwdlen,
Dpem.h95 size_t pwdlen, size_t *use_len);
Dpk.h1103 const unsigned char *pwd, size_t pwdlen,