Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/openssl/crypto/objects/
H A Dobjects.txt480 id-pkix 1 : id-pe
481 id-pkix 2 : id-qt
482 id-pkix 3 : id-kp
483 id-pkix 4 : id-it
484 id-pkix 5 : id-pkip
485 id-pkix 6 : id-alg
486 id-pkix 7 : id-cmc
487 id-pkix 8 : id-on
488 id-pkix 9 : id-pda
491 id-pkix 14 : id-cp
[all …]
/openssl/util/
H A Dfind-doc-nits281 my $id = shift;
425 my $id = shift;
441 my $id = shift;
505 my $id = shift;
533 my $id = shift;
601 my $id = shift;
676 my $id = shift;
688 if ( $id =~ m@man1/@ ) {
756 wording($id, $contents);
780 err($id, "Bad =over $1")
[all …]
/openssl/crypto/ec/
H A Decx_backend.h10 #define ISX448(id) ((id) == EVP_PKEY_X448) argument
11 #define IS25519(id) ((id) == EVP_PKEY_X25519 || (id) == EVP_PKEY_ED25519) argument
12 #define KEYLENID(id) (IS25519(id) ? X25519_KEYLEN \ argument
13 : ((id) == EVP_PKEY_X448 ? X448_KEYLEN \
15 #define KEYNID2TYPE(id) \ argument
16 (IS25519(id) ? ((id) == EVP_PKEY_X25519 ? ECX_KEY_TYPE_X25519 \
18 : ((id) == EVP_PKEY_X448 ? ECX_KEY_TYPE_X448 \
H A Decx_backend.c156 int id, ecx_key_op_t op, in ossl_ecx_key_op() argument
172 if (id == EVP_PKEY_NONE) in ossl_ecx_key_op()
173 id = OBJ_obj2nid(palg->algorithm); in ossl_ecx_key_op()
174 else if (id != OBJ_obj2nid(palg->algorithm)) { in ossl_ecx_key_op()
180 if (p == NULL || id == EVP_PKEY_NONE || plen != KEYLENID(id)) { in ossl_ecx_key_op()
186 key = ossl_ecx_key_new(libctx, KEYNID2TYPE(id), 1, propq); in ossl_ecx_key_op()
202 if (id != EVP_PKEY_NONE) { in ossl_ecx_key_op()
203 if (RAND_priv_bytes_ex(libctx, privkey, KEYLENID(id), 0) <= 0) in ossl_ecx_key_op()
205 if (id == EVP_PKEY_X25519) { in ossl_ecx_key_op()
209 } else if (id == EVP_PKEY_X448) { in ossl_ecx_key_op()
[all …]
/openssl/providers/common/der/
H A DDIGESTS.asn111 id-sha1 OBJECT IDENTIFIER ::= { iso(1)
19 id-md2 OBJECT IDENTIFIER ::= {
22 id-md5 OBJECT IDENTIFIER ::= {
28 id-sha256 OBJECT IDENTIFIER ::= { hashAlgs 1 }
29 id-sha384 OBJECT IDENTIFIER ::= { hashAlgs 2 }
30 id-sha512 OBJECT IDENTIFIER ::= { hashAlgs 3 }
31 id-sha224 OBJECT IDENTIFIER ::= { hashAlgs 4 }
34 id-sha3-224 OBJECT IDENTIFIER ::= { hashAlgs 7 }
35 id-sha3-256 OBJECT IDENTIFIER ::= { hashAlgs 8 }
36 id-sha3-384 OBJECT IDENTIFIER ::= { hashAlgs 9 }
[all …]
H A DECX.asn112 id-edwards-curve-algs OBJECT IDENTIFIER ::= { 1 3 101 }
14 id-X25519 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 110 }
15 id-X448 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 111 }
16 id-Ed25519 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 112 }
17 id-Ed448 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 113 }
H A DDSA.asn114 id-dsa OBJECT IDENTIFIER ::= {
19 id-dsa-with-sha1 OBJECT IDENTIFIER ::= {
28 id-dsa-with-sha224 OBJECT IDENTIFIER ::= { sigAlgs 1 }
29 id-dsa-with-sha256 OBJECT IDENTIFIER ::= { sigAlgs 2 }
30 id-dsa-with-sha384 OBJECT IDENTIFIER ::= { sigAlgs 3 }
31 id-dsa-with-sha512 OBJECT IDENTIFIER ::= { sigAlgs 4 }
33 id-dsa-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 5 }
34 id-dsa-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 6 }
35 id-dsa-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 7 }
36 id-dsa-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 8 }
H A DRSA.asn131 -- When id-RSAES-OAEP is used in an AlgorithmIdentifier, the
34 id-RSAES-OAEP OBJECT IDENTIFIER ::= { pkcs-1 7 }
37 -- When id-pSpecified is used in an AlgorithmIdentifier, the
40 id-pSpecified OBJECT IDENTIFIER ::= { pkcs-1 9 }
43 -- When id-RSASSA-PSS is used in an AlgorithmIdentifier, the
46 id-RSASSA-PSS OBJECT IDENTIFIER ::= { pkcs-1 10 }
63 -- When id-mgf1 is used in an AlgorithmIdentifier, the parameters
66 id-mgf1 OBJECT IDENTIFIER ::= { pkcs-1 8 }
71 id-rsassa-pkcs1-v1_5-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 13 }
72 id-rsassa-pkcs1-v1_5-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 14 }
[all …]
/openssl/providers/fips/include/fips/
H A Dfipsindicator.h67 void ossl_FIPS_IND_set_settable(OSSL_FIPS_IND *ind, int id, int enable);
68 int ossl_FIPS_IND_get_settable(const OSSL_FIPS_IND *ind, int id);
69 int ossl_FIPS_IND_on_unapproved(OSSL_FIPS_IND *ind, int id, OSSL_LIB_CTX *libctx,
72 int ossl_FIPS_IND_set_ctx_param(OSSL_FIPS_IND *ind, int id,
109 # define OSSL_FIPS_IND_SET_CTX_PARAM(ctx, id, params, name) \ argument
110 ossl_FIPS_IND_set_ctx_param(&((ctx)->indicator), id, params, name)
120 # define OSSL_FIPS_IND_GET_PARAM(ctx, p, settable, id, name) \ argument
121 *settable = ossl_FIPS_IND_get_settable(&((ctx)->indicator), id); \
128 int ossl_fips_ind_ec_key_check(OSSL_FIPS_IND *ind, int id, OSSL_LIB_CTX *libctx,
134 int ossl_fips_ind_digest_sign_check(OSSL_FIPS_IND *ind, int id,
[all …]
/openssl/test/
H A Dciphername_test.c26 int id; member
370 static const char *get_std_name_by_id(int id) in get_std_name_by_id() argument
375 if (cipher_names[i].id == id) in get_std_name_by_id()
388 int i, id = 0, ret = 0; in test_cipher_name() local
435 id = SSL_CIPHER_get_id(c) & 0xFFFF; in test_cipher_name()
436 if ((id == 0xC102) || (id == 0xFF85) ||(id == 0xFF87)) in test_cipher_name()
440 q = get_std_name_by_id(id); in test_cipher_name()
443 q, id); in test_cipher_name()
449 q, p, id); in test_cipher_name()
457 q, r, id); in test_cipher_name()
H A Devp_pkey_dparams_test.c245 static int params_bio_test(int id) in params_bio_test() argument
251 int type = pkey_params[id].type; in params_bio_test()
253 ret = TEST_ptr(in = BIO_new_mem_buf(pkey_params[id].param_bin, in params_bio_test()
254 (int)pkey_params[id].param_bin_len)) in params_bio_test()
262 && TEST_mem_eq(pkey_params[id].param_bin, in params_bio_test()
263 (int)pkey_params[id].param_bin_len, in params_bio_test()
273 static int set_enc_pubkey_test(int id) in set_enc_pubkey_test() argument
278 int type = pkey_params[id].type; in set_enc_pubkey_test()
279 const struct pubkey *keys = pkey_params[id].keys; in set_enc_pubkey_test()
284 ret = TEST_ptr(in = BIO_new_mem_buf(pkey_params[id].param_bin, in set_enc_pubkey_test()
[all …]
H A Dnamemap_internal_test.c79 int id; in test_digestbyname() local
85 id = ossl_namemap_add_name(nm, 0, "SHA256"); in test_digestbyname()
86 if (!TEST_int_ne(id, 0)) in test_digestbyname()
88 if (!TEST_int_eq(ossl_namemap_add_name(nm, id, "foo"), id)) in test_digestbyname()
107 int id; in test_cipherbyname() local
113 id = ossl_namemap_add_name(nm, 0, "AES-128-CBC"); in test_cipherbyname()
114 if (!TEST_int_ne(id, 0)) in test_cipherbyname()
116 if (!TEST_int_eq(ossl_namemap_add_name(nm, id, "bar"), id)) in test_cipherbyname()
H A Devp_fetch_prov_test.c190 static int test_explicit_EVP_MD_fetch(const char *id) in test_explicit_EVP_MD_fetch() argument
200 md = EVP_MD_fetch(ctx, id, fetch_property); in test_explicit_EVP_MD_fetch()
236 char id[OSSL_MAX_NAME_SIZE] = { 0 }; in test_explicit_EVP_MD_fetch_by_X509_ALGOR() local
244 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 0), 0)) in test_explicit_EVP_MD_fetch_by_X509_ALGOR()
248 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 1), 0)) in test_explicit_EVP_MD_fetch_by_X509_ALGOR()
253 ret = test_explicit_EVP_MD_fetch(id); in test_explicit_EVP_MD_fetch_by_X509_ALGOR()
318 cipher = EVP_CIPHER_fetch(ctx, id, fetch_property); in test_explicit_EVP_CIPHER_fetch()
352 char id[OSSL_MAX_NAME_SIZE] = { 0 }; in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR() local
360 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 0), 0)) in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR()
364 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 1), 0)) in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR()
[all …]
H A Dbio_meth_test.c15 int i, ret = 0, id; in test_bio_meth() local
19 id = BIO_get_new_index(); in test_bio_meth()
20 if (!TEST_int_eq(id, BIO_TYPE_START + 1)) in test_bio_meth()
23 if (!TEST_ptr(meth1 = BIO_meth_new(id, "Method1")) in test_bio_meth()
37 for (i = id + 1; i <= BIO_TYPE_MASK; ++i) { in test_bio_meth()
46 || !TEST_ptr_eq(BIO_find_type(bio3, id), bio1)) in test_bio_meth()
/openssl/crypto/encode_decode/
H A Ddecoder_meth.c134 int id; in get_decoder_from_store() local
141 if ((id = methdata->id) == 0 && methdata->names != NULL) { in get_decoder_from_store()
152 if (id == 0) in get_decoder_from_store()
171 int id; in put_decoder_in_store() local
208 decoder->base.id = id; in ossl_decoder_from_algorithm()
309 if (id != 0) in construct_decoder()
363 if (id == 0 in inner_ossl_decoder_fetch()
376 methdata->id = id; in inner_ossl_decoder_fetch()
526 int id = *id_cache; in ossl_decoder_fast_is_a() local
528 if (id <= 0) in ossl_decoder_fast_is_a()
[all …]
H A Dencoder_meth.c134 int id; in get_encoder_from_store() local
141 if ((id = methdata->id) == 0 && methdata->names != NULL) { in get_encoder_from_store()
152 if (id == 0) in get_encoder_from_store()
171 int id; in put_encoder_in_store() local
208 encoder->base.id = id; in encoder_from_algorithm()
319 if (id != 0) in construct_encoder()
358 int unsupported, id; in inner_ossl_encoder_fetch() local
371 unsupported = id == 0; in inner_ossl_encoder_fetch()
373 if (id == 0 in inner_ossl_encoder_fetch()
386 methdata->id = id; in inner_ossl_encoder_fetch()
[all …]
/openssl/test/recipes/04-test_asn1_stable_parse_data/
H A Dasn1_stable_parse.cnf8 id-tc26 = min
9 id-tc27 = ::::::
10 id-tc28 = ,,,,,,
11 id-tc29 = :,:,:,
12 id-tc30 = n1:min
13 id-tc31 = n2:max
14 id-tc32 = n3:
15 id-tc33 = :0
/openssl/doc/man3/
H A DSSL_CTX_set_generate_session_id.pod13 typedef int (*GEN_SESSION_CB)(SSL *ssl, unsigned char *id,
29 SSL_has_matching_session_id() checks, whether a session with id B<id>
36 generates a session id. The session id is an arbitrary sequence of bytes.
37 The length of the session id is between 1 and 32 bytes. The session id is not
53 B<id> exceeding the given limit.
64 If an id conflict is not resolved, the handshake will fail.
77 can occur in that another thread generates the same session id.
91 same id is already in the cache, or 0 otherwise.
101 static int generate_session_id(SSL *ssl, unsigned char *id,
107 RAND_pseudo_bytes(id, *id_len);
[all …]
/openssl/providers/fips/
H A Dfipsindicator.c35 void ossl_FIPS_IND_set_settable(OSSL_FIPS_IND *ind, int id, int state) in ossl_FIPS_IND_set_settable() argument
37 if (!ossl_assert(id < OSSL_FIPS_IND_SETTABLE_MAX)) in ossl_FIPS_IND_set_settable()
42 ind->settable[id] = state; in ossl_FIPS_IND_set_settable()
45 int ossl_FIPS_IND_get_settable(const OSSL_FIPS_IND *ind, int id) in ossl_FIPS_IND_get_settable() argument
47 if (!ossl_assert(id < OSSL_FIPS_IND_SETTABLE_MAX)) in ossl_FIPS_IND_get_settable()
49 return ind->settable[id]; in ossl_FIPS_IND_get_settable()
58 int ossl_FIPS_IND_on_unapproved(OSSL_FIPS_IND *ind, int id, in ossl_FIPS_IND_on_unapproved() argument
71 if (ossl_FIPS_IND_get_settable(ind, id) == OSSL_FIPS_IND_STATE_TOLERANT in ossl_FIPS_IND_on_unapproved()
80 int ossl_FIPS_IND_set_ctx_param(OSSL_FIPS_IND *ind, int id, in ossl_FIPS_IND_set_ctx_param() argument
89 ossl_FIPS_IND_set_settable(ind, id, in); in ossl_FIPS_IND_set_ctx_param()
/openssl/crypto/x509/
H A Dx509_trust.c22 static int obj_trust(int id, X509 *x, int flags);
66 int X509_check_trust(X509 *x, int id, int flags) in X509_check_trust() argument
72 if (id == X509_TRUST_DEFAULT) in X509_check_trust()
75 idx = X509_TRUST_get_by_id(id); in X509_check_trust()
77 return default_trust(id, x, flags); in X509_check_trust()
98 int X509_TRUST_get_by_id(int id) in X509_TRUST_get_by_id() argument
103 if ((id >= X509_TRUST_MIN) && (id <= X509_TRUST_MAX)) in X509_TRUST_get_by_id()
104 return id - X509_TRUST_MIN; in X509_TRUST_get_by_id()
107 tmp.trust = id; in X509_TRUST_get_by_id()
138 idx = X509_TRUST_get_by_id(id); in X509_TRUST_add()
[all …]
H A Dpcy_data.c42 ASN1_OBJECT *id; in ossl_policy_data_new() local
47 id = OBJ_dup(cid); in ossl_policy_data_new()
48 if (id == NULL) in ossl_policy_data_new()
51 id = NULL; in ossl_policy_data_new()
54 ASN1_OBJECT_free(id); in ossl_policy_data_new()
60 ASN1_OBJECT_free(id); in ossl_policy_data_new()
68 if (id) in ossl_policy_data_new()
69 ret->valid_policy = id; in ossl_policy_data_new()
H A Dv3_sxnet.c62 SXNETID *id; variable
79 id = sk_SXNETID_value(sx->ids, i);
85 ASN1_STRING_print(out, id->user);
164 SXNETID *id = NULL; in SXNET_add_id_INTEGER() local
194 if ((id = SXNETID_new()) == NULL) { in SXNET_add_id_INTEGER()
203 if (!sk_SXNETID_push(sx->ids, id)) { in SXNET_add_id_INTEGER()
207 ASN1_INTEGER_free(id->zone); in SXNET_add_id_INTEGER()
208 id->zone = zone; in SXNET_add_id_INTEGER()
213 SXNETID_free(id); in SXNET_add_id_INTEGER()
251 SXNETID *id; in SXNET_get_id_INTEGER() local
[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
107 *p++ = OSSL_PARAM_construct_int(OSSL_KDF_PARAM_PKCS12_ID, &id); in PKCS12_key_gen_uni_ex()
[all …]
/openssl/crypto/store/
H A Dstore_meth.c138 int id; in get_loader_from_store() local
140 if ((id = methdata->scheme_id) == 0) { in get_loader_from_store()
162 int id; in put_loader_in_store() local
263 int id = ossl_namemap_add_name(namemap, 0, scheme); in construct_loader() local
266 if (id != 0) in construct_loader()
295 int unsupported, id; in inner_loader_fetch() local
309 unsupported = id == 0; in inner_loader_fetch()
311 if (id == 0 in inner_loader_fetch()
324 methdata->scheme_id = id; in inner_loader_fetch()
336 if (id == 0) in inner_loader_fetch()
[all …]
/openssl/providers/common/
H A Dsecuritycheck_fips.c36 int ossl_fips_ind_rsa_key_check(OSSL_FIPS_IND *ind, int id, in ossl_fips_ind_rsa_key_check() argument
43 if (!ossl_FIPS_IND_on_unapproved(ind, id, libctx, desc, "Key size", in ossl_fips_ind_rsa_key_check()
54 int ossl_fips_ind_ec_key_check(OSSL_FIPS_IND *ind, int id, in ossl_fips_ind_ec_key_check() argument
68 if (!ossl_FIPS_IND_on_unapproved(ind, id, libctx, desc, "EC Key", in ossl_fips_ind_ec_key_check()
81 int ossl_fips_ind_digest_exch_check(OSSL_FIPS_IND *ind, int id, in ossl_fips_ind_digest_exch_check() argument
89 if (!ossl_FIPS_IND_on_unapproved(ind, id, libctx, desc, "Digest", in ossl_fips_ind_digest_exch_check()
98 int ossl_fips_ind_digest_sign_check(OSSL_FIPS_IND *ind, int id, in ossl_fips_ind_digest_sign_check() argument
112 if (!ossl_FIPS_IND_on_unapproved(ind, id, libctx, desc, "Digest SHA1", in ossl_fips_ind_digest_sign_check()

Completed in 58 milliseconds

12345678910>>...12