Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 76) sorted by relevance

1234

/openssl/test/recipes/30-test_evp_data/
H A Devpkdf_pbkdf2.txt21 Ctrl.iter = iter:1
30 Ctrl.iter = iter:1
39 Ctrl.iter = iter:1
48 Ctrl.iter = iter:2
57 Ctrl.iter = iter:2
66 Ctrl.iter = iter:2
75 Ctrl.iter = iter:4096
188 Ctrl.iter = iter:1
197 Ctrl.iter = iter:1
206 Ctrl.iter = iter:1
[all …]
H A Devpkdf_pbkdf1.txt20 Ctrl.iter = iter:1
28 Ctrl.iter = iter:1
36 Ctrl.iter = iter:1
44 Ctrl.iter = iter:2
52 Ctrl.iter = iter:2
60 Ctrl.iter = iter:2
68 Ctrl.iter = iter:4096
76 Ctrl.iter = iter:4096
118 Ctrl.iter = iter:1
126 Ctrl.iter = iter:1
[all …]
H A Devppbe_pbkdf2.txt19 iter = 1
26 iter = 1
33 iter = 1
40 iter = 2
47 iter = 2
54 iter = 2
154 iter = 1
161 iter = 1
168 iter = 1
175 iter = 1
[all …]
H A Devpkdf_argon2.txt5 Ctrl.iter = iter:3
15 Ctrl.iter = iter:3
26 Ctrl.iter = iter:3
36 Ctrl.iter = iter:3
51 Ctrl.iter = iter:3
70 Ctrl.iter = iter:3
78 Ctrl.iter = iter:3
97 Ctrl.iter = iter:3
155 # Expected fail on condition violation: iter >= 1
157 Ctrl.iter = iter:0
H A Devppbe_pkcs12.txt18 iter = 1
26 iter = 1
34 iter = 1
42 iter = 1000
50 iter = 1000
58 iter = 1000
/openssl/crypto/asn1/
H A Dp5_pbe.c21 ASN1_SIMPLE(PBEPARAM, iter, ASN1_INTEGER)
28 int PKCS5_pbe_set0_algor_ex(X509_ALGOR *algor, int alg, int iter,
42 if (iter <= 0)
43 iter = PKCS5_DEFAULT_ITER;
44 if (!ASN1_INTEGER_set(pbe->iter, iter)) {
82 int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter, in PKCS5_pbe_set0_algor() argument
85 return PKCS5_pbe_set0_algor_ex(algor, alg, iter, salt, saltlen, NULL); in PKCS5_pbe_set0_algor()
90 X509_ALGOR *PKCS5_pbe_set_ex(int alg, int iter, in PKCS5_pbe_set_ex() argument
101 if (PKCS5_pbe_set0_algor_ex(ret, alg, iter, salt, saltlen, ctx)) in PKCS5_pbe_set_ex()
108 X509_ALGOR *PKCS5_pbe_set(int alg, int iter, in PKCS5_pbe_set() argument
[all …]
H A Dp5_pbev2.c31 ASN1_SIMPLE(PBKDF2PARAM, iter, ASN1_INTEGER),
51 X509_ALGOR *PKCS5_pbe2_set_iv_ex(const EVP_CIPHER *cipher, int iter,
166 X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter, in PKCS5_pbe2_set_iv() argument
170 return PKCS5_pbe2_set_iv_ex(cipher, iter, salt, saltlen, aiv, prf_nid, in PKCS5_pbe2_set_iv()
174 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, in PKCS5_pbe2_set() argument
177 return PKCS5_pbe2_set_iv_ex(cipher, iter, salt, saltlen, NULL, -1, in PKCS5_pbe2_set()
182 X509_ALGOR *PKCS5_pbkdf2_set_ex(int iter, unsigned char *salt, int saltlen, in PKCS5_pbkdf2_set_ex() argument
221 if (iter <= 0) in PKCS5_pbkdf2_set_ex()
222 iter = PKCS5_DEFAULT_ITER; in PKCS5_pbkdf2_set_ex()
224 if (!ASN1_INTEGER_set(kdf->iter, iter)) { in PKCS5_pbkdf2_set_ex()
[all …]
/openssl/crypto/pkcs12/
H A Dp12_key.c20 int saltlen, int id, int iter, int n, in PKCS12_key_gen_asc_ex() argument
35 ret = PKCS12_key_gen_uni_ex(unipass, uniplen, salt, saltlen, id, iter, in PKCS12_key_gen_asc_ex()
42 int saltlen, int id, int iter, int n, in PKCS12_key_gen_asc() argument
45 return PKCS12_key_gen_asc_ex(pass, passlen, salt, saltlen, id, iter, n, in PKCS12_key_gen_asc()
50 int saltlen, int id, int iter, int n, in PKCS12_key_gen_utf8_ex() argument
65 ret = PKCS12_key_gen_uni_ex(unipass, uniplen, salt, saltlen, id, iter, in PKCS12_key_gen_utf8_ex()
72 int saltlen, int id, int iter, int n, in PKCS12_key_gen_utf8() argument
75 return PKCS12_key_gen_utf8_ex(pass, passlen, salt, saltlen, id, iter, n, in PKCS12_key_gen_utf8()
80 int saltlen, int id, int iter, int n, in PKCS12_key_gen_uni_ex() argument
108 *p++ = OSSL_PARAM_construct_int(OSSL_KDF_PARAM_ITER, &iter); in PKCS12_key_gen_uni_ex()
[all …]
H A Dp12_mutl.c47 *piter = p12->mac->iter; in PKCS12_get0_mac()
170 int saltlen, iter; in pkcs12_gen_mac() local
189 if (p12->mac->iter == NULL) in pkcs12_gen_mac()
190 iter = 1; in pkcs12_gen_mac()
192 iter = ASN1_INTEGER_get(p12->mac->iter); in pkcs12_gen_mac()
355 if (!iter) in PKCS12_set_mac()
356 iter = PKCS12_DEFAULT_ITER; in PKCS12_set_mac()
396 if (iter > 1) { in pkcs12_setup_mac()
401 if (!ASN1_INTEGER_set(p12->mac->iter, iter)) { in pkcs12_setup_mac()
460 if (iter == 0) in PKCS12_set_pbmac1_pbkdf2()
[all …]
H A Dp12_crpt.c29 int saltlen, iter, ret; in PKCS12_PBE_keyivgen_ex() local
45 if (pbe->iter == NULL) in PKCS12_PBE_keyivgen_ex()
46 iter = 1; in PKCS12_PBE_keyivgen_ex()
48 iter = ASN1_INTEGER_get(pbe->iter); in PKCS12_PBE_keyivgen_ex()
52 iter, EVP_CIPHER_get_key_length(cipher), in PKCS12_PBE_keyivgen_ex()
61 iter, EVP_CIPHER_get_iv_length(cipher), in PKCS12_PBE_keyivgen_ex()
H A Dp12_crt.c37 int iter, int mac_iter, int keytype, in PKCS12_create_ex2() argument
57 if (!iter) in PKCS12_create_ex2()
58 iter = PKCS12_DEFAULT_ITER; in PKCS12_create_ex2()
111 if (bags && !PKCS12_add_safe_ex(&safes, bags, nid_cert, iter, pass, in PKCS12_create_ex2()
119 bag = PKCS12_add_key_ex(&bags, pkey, keytype, iter, nid_key, pass, in PKCS12_create_ex2()
180 iter, mac_iter, keytype, ctx, propq, in PKCS12_create_ex()
189 iter, mac_iter, keytype, NULL, NULL); in PKCS12_create()
276 EVP_PKEY *key, int key_usage, int iter, in PKCS12_add_key() argument
279 return PKCS12_add_key_ex(pbags, key, key_usage, iter, nid_key, pass, in PKCS12_add_key()
302 int nid_safe, int iter, const char *pass, in PKCS12_add_safe_ex() argument
[all …]
H A Dp12_p8e.c18 unsigned char *salt, int saltlen, int iter, in PKCS8_encrypt_ex() argument
30 pbe = PKCS5_pbe2_set_iv_ex(cipher, iter, salt, saltlen, NULL, -1, in PKCS8_encrypt_ex()
40 pbe = PKCS5_pbe2_set_iv_ex(cipher, iter, salt, saltlen, NULL, in PKCS8_encrypt_ex()
44 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, libctx); in PKCS8_encrypt_ex()
62 unsigned char *salt, int saltlen, int iter, in PKCS8_encrypt() argument
65 return PKCS8_encrypt_ex(pbe_nid, cipher, pass, passlen, salt, saltlen, iter, in PKCS8_encrypt()
H A Dp12_add.c95 unsigned char *salt, int saltlen, int iter, in PKCS12_pack_p7encdata_ex() argument
120 pbe = PKCS5_pbe2_set_iv_ex(pbe_ciph, iter, salt, saltlen, NULL, -1, ctx); in PKCS12_pack_p7encdata_ex()
122 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, ctx); in PKCS12_pack_p7encdata_ex()
149 unsigned char *salt, int saltlen, int iter, in PKCS12_pack_p7encdata() argument
153 iter, bags, NULL, NULL); in PKCS12_pack_p7encdata()
/openssl/providers/implementations/kdfs/
H A Dpbkdf2.c56 uint64_t iter; member
139 dest->iter = src->iter; in kdf_pbkdf2_dup()
160 ctx->iter = PKCS5_DEFAULT_ITER; in kdf_pbkdf2_init()
181 static int pbkdf2_lower_bound_check_passed(int saltlen, uint64_t iter, in pbkdf2_lower_bound_check_passed() argument
197 if (iter < KDF_PBKDF2_MIN_ITERATIONS) { in pbkdf2_lower_bound_check_passed()
249 ctx->salt, ctx->salt_len, ctx->iter, in kdf_pbkdf2_derive()
259 uint64_t iter, min_iter; in kdf_pbkdf2_set_ctx_params() local
301 if (!OSSL_PARAM_get_uint64(p, &iter)) in kdf_pbkdf2_set_ctx_params()
304 if (iter < min_iter) { in kdf_pbkdf2_set_ctx_params()
308 ctx->iter = iter; in kdf_pbkdf2_set_ctx_params()
[all …]
H A Dpbkdf1.c43 uint64_t iter; member
53 uint64_t iter, const EVP_MD *md_type, in kdf_pbkdf1_do_derive() argument
80 for (i = 1; i < iter; i++) { in kdf_pbkdf1_do_derive()
151 dest->iter = src->iter; in kdf_pbkdf1_dup()
198 ctx->iter, md, key, keylen); in kdf_pbkdf1_derive()
219 if (!OSSL_PARAM_get_uint64(p, &ctx->iter)) in kdf_pbkdf1_set_ctx_params()
H A Dpkcs12kdf.c43 uint64_t iter; member
51 int id, uint64_t iter, const EVP_MD *md_type, in pkcs12kdf_derive() argument
99 for (iter_cnt = 1; iter_cnt < iter; iter_cnt++) { in pkcs12kdf_derive()
191 dest->iter = src->iter; in kdf_pkcs12_dup()
239 ctx->id, ctx->iter, md, key, keylen); in kdf_pkcs12_derive()
267 if (!OSSL_PARAM_get_uint64(p, &ctx->iter)) in kdf_pkcs12_set_ctx_params()
/openssl/crypto/evp/
H A Dp5_crpt2.c23 const unsigned char *salt, int saltlen, int iter, in ossl_pkcs5_pbkdf2_hmac_ex() argument
56 *p++ = OSSL_PARAM_construct_int(OSSL_KDF_PARAM_ITER, &iter); in ossl_pkcs5_pbkdf2_hmac_ex()
74 BIO_printf(trc_out, "Iteration count %d\n", iter); in ossl_pkcs5_pbkdf2_hmac_ex()
84 int saltlen, int iter, const EVP_MD *digest, int keylen, in PKCS5_PBKDF2_HMAC() argument
87 return ossl_pkcs5_pbkdf2_hmac_ex(pass, passlen, salt, saltlen, iter, digest, in PKCS5_PBKDF2_HMAC()
93 const unsigned char *salt, int saltlen, int iter, in PKCS5_PBKDF2_HMAC_SHA1() argument
100 r = ossl_pkcs5_pbkdf2_hmac_ex(pass, passlen, salt, saltlen, iter, in PKCS5_PBKDF2_HMAC_SHA1()
186 int saltlen, iter, t; in PKCS5_v2_PBKDF2_keyivgen_ex() local
253 iter = ASN1_INTEGER_get(kdf->iter); in PKCS5_v2_PBKDF2_keyivgen_ex()
254 if (!ossl_pkcs5_pbkdf2_hmac_ex(pass, passlen, salt, saltlen, iter, prfmd, in PKCS5_v2_PBKDF2_keyivgen_ex()
H A Dp5_crpt.c35 int saltlen, iter; in PKCS5_PBE_keyivgen_ex() local
68 if (pbe->iter == NULL) in PKCS5_PBE_keyivgen_ex()
69 iter = 1; in PKCS5_PBE_keyivgen_ex()
71 iter = ASN1_INTEGER_get(pbe->iter); in PKCS5_PBE_keyivgen_ex()
93 *p++ = OSSL_PARAM_construct_int(OSSL_KDF_PARAM_ITER, &iter); in PKCS5_PBE_keyivgen_ex()
/openssl/include/openssl/
H A Dpkcs12.h.in238 int saltlen, int id, int iter, int n,
241 int saltlen, int id, int iter, int n,
245 int saltlen, int id, int iter, int n,
248 int saltlen, int id, int iter, int n,
252 int saltlen, int id, int iter, int n,
255 int saltlen, int id, int iter, int n,
270 unsigned char *salt, int saltlen, int iter,
298 int iter, int mac_iter, int keytype);
301 int iter, int mac_iter, int keytype,
305 int iter, int mac_iter, int keytype,
[all …]
/openssl/test/
H A Dpkcs12_format_test.c369 OBJ_nid2sn(enc->nid), enc->iter); in test_single_key()
407 enc.iter = enc_default.iter; in test_single_key_enc_alg()
418 enc.iter = enc_default.iter; in test_single_key_enc_pass()
429 enc.iter = iters[z]; in test_single_key_enc_iter()
469 OBJ_nid2sn(mac->nid), mac->iter); in test_single_cert_mac()
504 mac.iter = mac_default.iter; in test_single_cert_mac_alg()
515 mac.iter = mac_default.iter; in test_single_cert_mac_pass()
526 mac.iter = iters[z]; in test_single_cert_mac_iter()
630 OBJ_nid2sn(enc->nid), enc->iter); in test_single_secret()
668 enc.iter = enc_default.iter; in test_single_secret_enc_alg()
/openssl/doc/man3/
H A DPKCS12_key_gen_utf8_ex.pod14 int saltlen, int id, int iter, int n,
17 int saltlen, int id, int iter, int n,
21 int saltlen, int id, int iter, int n,
24 int saltlen, int id, int iter, int n,
28 int saltlen, int id, int iter, int n,
31 int saltlen, int id, int iter, int n,
39 I<saltlen>, an iteration count I<iter> and a digest algorithm I<md_type>.
88 I<iter> is the iteration count and its value should be greater than or
90 I<iter> less than 1 is treated as a single iteration.
106 Increasing the I<iter> parameter slows down the algorithm which makes it
H A DPKCS5_PBE_keyivgen.pod50 int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
52 int PKCS5_pbe_set0_algor_ex(X509_ALGOR *algor, int alg, int iter,
56 X509_ALGOR *PKCS5_pbe_set(int alg, int iter,
58 X509_ALGOR *PKCS5_pbe_set_ex(int alg, int iter,
62 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
64 X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,
67 X509_ALGOR *PKCS5_pbe2_set_iv_ex(const EVP_CIPHER *cipher, int iter,
76 X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen,
78 X509_ALGOR *PKCS5_pbkdf2_set_ex(int iter, unsigned char *salt, int saltlen,
107 I<iter> is the iteration count and its value should be greater than or
[all …]
H A DPKCS12_gen_mac.pod17 unsigned char *salt, int saltlen, int iter,
20 unsigned char *salt, int saltlen, int iter,
23 int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt,
49 I<iter> is the iteration count and I<md_type> is the message digest function to
53 I<salt>, and I<iter> count from the PKCS12 object.
59 If I<iter> is 1 then an iteration count will be omitted from the PKCS#12
H A DPKCS5_PBKDF2_HMAC.pod12 const unsigned char *salt, int saltlen, int iter,
17 const unsigned char *salt, int saltlen, int iter,
34 B<iter> is the iteration count and its value should be greater than or
36 B<iter> value less than 1 is invalid; such values will result in failure
51 Increasing the B<iter> parameter slows down the algorithm which makes it
/openssl/ssl/quic/
H A Dquic_sf_list.c181 int ossl_sframe_list_peek(const SFRAME_LIST *fl, void **iter, in ossl_sframe_list_peek() argument
185 STREAM_FRAME *sf = *iter; in ossl_sframe_list_peek()
202 *iter = NULL; in ossl_sframe_list_peek()
214 *iter = sf; in ossl_sframe_list_peek()
256 void *iter = NULL; in ossl_sframe_list_lock_head() local
261 ret = ossl_sframe_list_peek(fl, &iter, range, data, fin); in ossl_sframe_list_lock_head()

Completed in 50 milliseconds

1234