/openssl/crypto/objects/ |
H A D | objects.txt | 480 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 D | find-doc-nits | 281 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 D | ecx_backend.h | 10 #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 D | ecx_backend.c | 156 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 D | DIGESTS.asn1 | 11 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 D | ECX.asn1 | 12 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 D | DSA.asn1 | 14 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 D | RSA.asn1 | 31 -- 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 D | fipsindicator.h | 67 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 D | ciphername_test.c | 26 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 D | evp_pkey_dparams_test.c | 245 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 D | namemap_internal_test.c | 79 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 D | evp_fetch_prov_test.c | 190 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 …]
|
/openssl/crypto/encode_decode/ |
H A D | decoder_meth.c | 134 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 D | encoder_meth.c | 134 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 D | asn1_stable_parse.cnf | 8 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 D | SSL_CTX_set_generate_session_id.pod | 13 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 D | fipsindicator.c | 35 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 D | x509_trust.c | 22 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 D | pcy_data.c | 42 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 D | v3_sxnet.c | 62 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 D | p12_key.c | 20 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 D | store_meth.c | 138 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 D | securitycheck_fips.c | 36 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()
|
/openssl/test/recipes/30-test_evp_data/ |
H A D | evpkdf_x942.txt | 19 Ctrl.cekalg = cekalg:id-aes128-wrap 25 Ctrl.cekalg = cekalg:id-aes256-wrap 34 Ctrl.cekalg = cekalg:id-aes256-wrap 41 Ctrl.cekalg = cekalg:id-aes256-wrap 49 Ctrl.cekalg = cekalg:id-aes256-wrap 57 Ctrl.cekalg = cekalg:id-aes256-wrap 64 Ctrl.cekalg = cekalg:id-aes256-wrap 71 Ctrl.cekalg = cekalg:id-aes256-wrap 85 Ctrl.cekalg = cekalg:id-aes128-wrap 97 Ctrl.cekalg = cekalg:id-aes128-wrap [all …]
|