/openssl-master/providers/implementations/keymgmt/ |
A D | ecx_kmgmt.c | 157 if ((key1->privkey == NULL && key2->privkey != NULL) in ecx_match() 158 || (key1->privkey != NULL && key2->privkey == NULL) in ecx_match() 163 || CRYPTO_memcmp(key1->privkey, key2->privkey, in ecx_match() 584 privkey[0] &= 248; in ecx_gen() 590 privkey[0] &= 252; in ecx_gen() 834 if (privkey == NULL) { in MAKE_KEYMGMT_FUNCTIONS() 842 privkey[0] &= 248; in MAKE_KEYMGMT_FUNCTIONS() 843 privkey[31] &= 127; in MAKE_KEYMGMT_FUNCTIONS() 844 privkey[31] |= 64; in MAKE_KEYMGMT_FUNCTIONS() 888 privkey[0] &= 252; in s390x_ecx_keygen448() [all …]
|
/openssl-master/crypto/ec/ |
A D | ecx_backend.c | 129 && key->privkey != NULL) { in ossl_ecx_key_dup() 132 memcpy(ret->privkey, key->privkey, ret->keylen); in ossl_ecx_key_dup() 150 unsigned char *privkey, *pubkey; in ossl_ecx_key_op() local 186 privkey = ossl_ecx_key_allocate_privkey(key); in ossl_ecx_key_op() 187 if (privkey == NULL) { in ossl_ecx_key_op() 196 privkey[0] &= 248; in ossl_ecx_key_op() 197 privkey[X25519_KEYLEN - 1] &= 127; in ossl_ecx_key_op() 198 privkey[X25519_KEYLEN - 1] |= 64; in ossl_ecx_key_op() 200 privkey[0] &= 252; in ossl_ecx_key_op() 201 privkey[X448_KEYLEN - 1] |= 128; in ossl_ecx_key_op() [all …]
|
A D | ecx_meth.c | 112 oct.data = ecxkey->privkey; in ecx_priv_encode() 745 *privkey = ecxkey->privkey; in validate_ecx_derive() 935 if (privkey == NULL) { in s390x_pkey_ecx_keygen25519() 943 privkey[0] &= 248; in s390x_pkey_ecx_keygen25519() 944 privkey[31] &= 127; in s390x_pkey_ecx_keygen25519() 945 privkey[31] |= 64; in s390x_pkey_ecx_keygen25519() 978 if (privkey == NULL) { in s390x_pkey_ecx_keygen448() 986 privkey[0] &= 252; in s390x_pkey_ecx_keygen448() 987 privkey[55] |= 128; in s390x_pkey_ecx_keygen448() 1027 if (privkey == NULL) { in s390x_pkey_ecd_keygen25519() [all …]
|
A D | ecx_key.c | 71 OPENSSL_secure_clear_free(key->privkey, key->keylen); in ossl_ecx_key_free() 95 key->privkey = OPENSSL_secure_zalloc(key->keylen); in ossl_ecx_key_allocate_privkey() 97 return key->privkey; in ossl_ecx_key_allocate_privkey()
|
A D | ecp_s390x_nistp.c | 137 const BIGNUM *privkey; in ecdsa_s390x_nistp_sign_sig() local 141 privkey = EC_KEY_get0_private_key(eckey); in ecdsa_s390x_nistp_sign_sig() 142 if (group == NULL || privkey == NULL) { in ecdsa_s390x_nistp_sign_sig() 170 if (BN_bn2binpad(privkey, param + S390X_OFF_K(len), len) == -1) { in ecdsa_s390x_nistp_sign_sig()
|
/openssl-master/test/recipes/ |
A D | 20-test_pkeyutl.t | 74 my $privkey = shift; 80 my $sigfile = basename($privkey, '.pem') . '.sig'; 86 '-inkey', $privkey, 94 '-inkey', $privkey, 103 '-inkey', $privkey,
|
A D | 20-test_dgst.t | 24 my $privkey = shift; 30 my $sigfile = basename($privkey, '.pem') . '.sig'; 33 ok(run(app(['openssl', 'dgst', '-sign', $privkey, 38 ok(run(app(['openssl', 'dgst', '-prverify', $privkey,
|
/openssl-master/test/ |
A D | tls-provider.c | 44 unsigned char privkey[XOR_KEY_SIZE]; member 280 secret[i] = pxorctx->key->privkey[i] ^ pxorctx->peerkey->pubkey[i]; in xor_derive() 499 memcpy(tokey->privkey, fromkey->privkey, XOR_KEY_SIZE); in xor_dup() 648 key->pubkey[i] = key->privkey[i] ^ private_constant[i]; in xor_gen() 662 unsigned char privkey[XOR_KEY_SIZE]; in xor_import() local 664 void *pprivkey = privkey, *ppubkey = pubkey; in xor_import() 671 memset(privkey, 0, sizeof(privkey)); in xor_import() 678 sizeof(privkey), &priv_len)) in xor_import() 685 memcpy(key->privkey, privkey, priv_len); in xor_import() 707 key->privkey, in xor_export() [all …]
|
A D | cmsapitest.c | 20 static EVP_PKEY *privkey = NULL; variable 42 if (!TEST_true(CMS_decrypt(content, privkey, cert, NULL, outmsgbio, in test_encrypt_decrypt() 322 if (!TEST_true(PEM_read_bio_PrivateKey(privkeybio, &privkey, NULL, NULL))) { in setup_tests() 341 EVP_PKEY_free(privkey); in cleanup_tests()
|
A D | fatalerrtest.c | 17 static char *privkey = NULL; variable 33 &sctx, &cctx, cert, privkey))) in test_fatalerr() 95 || !TEST_ptr(privkey = test_get_argument(1))) in setup_tests()
|
A D | dtlstest.c | 20 static char *privkey = NULL; variable 67 &sctx, &cctx, cert, privkey))) in test_dtls_unprocessed() 175 &sctx, &cctx, cert, privkey))) in test_dtls_drop_records() 298 &sctx, &cctx, cert, privkey))) in test_cookie() 338 &sctx, &cctx, cert, privkey))) in test_dtls_duplicate_records() 405 &sctx, NULL, cert, privkey))) in test_just_finished() 455 || !TEST_ptr(privkey = test_get_argument(1))) in setup_tests()
|
A D | recordlentest.c | 16 static char *privkey = NULL; variable 109 &sctx, &cctx, cert, privkey))) in test_record_overflow() 196 || !TEST_ptr(privkey = test_get_argument(1))) in setup_tests()
|
A D | servername_test.c | 32 static char *privkey = NULL; variable 211 &sctx, &cctx, cert, privkey)) in server_setup_sni() 263 || !TEST_ptr(privkey = test_get_argument(1))) in setup_tests()
|
A D | sslcorrupttest.c | 180 static char *privkey = NULL; variable 202 &sctx, &cctx, cert, privkey))) in test_ssl_corrupt() 269 || !TEST_ptr(privkey = test_get_argument(1))) in setup_tests()
|
A D | threadstest.c | 39 static char *privkey; variable 492 || !TEST_ptr(shared_evp_pkey = load_pkey_pem(privkey, multi_libctx)) in test_multi_shared_pkey_common() 680 privkey = test_mk_file_path(datadir, "rsakey.pem"); in setup_tests() 681 if (!TEST_ptr(privkey)) in setup_tests() 706 OPENSSL_free(privkey); in cleanup_tests()
|
A D | sslapitest.c | 84 static char *privkey = NULL; variable 968 privkey))) in execute_test_large_message() 1518 privkey))) in execute_cleanse_plaintext() 4644 privkey))) in test_key_exchange() 4819 privkey))) in test_negotiated_group() 7165 privkey))) in test_info_callback() 8416 privkey))) in test_multiblock_write() 9247 thiskey = privkey; in test_dh_auto() 9580 if (privkey == NULL) in setup_tests() 9766 OPENSSL_free(privkey); in setup_tests() [all …]
|
/openssl-master/crypto/dsa/ |
A D | dsa_backend.c | 129 ASN1_INTEGER *privkey = NULL; in ossl_dsa_key_from_pkcs8() local 140 if ((privkey = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) in ossl_dsa_key_from_pkcs8() 142 if (privkey->type == V_ASN1_NEG_INTEGER || ptype != V_ASN1_SEQUENCE) in ossl_dsa_key_from_pkcs8() 152 || !ASN1_INTEGER_to_BN(privkey, dsa_privkey)) { in ossl_dsa_key_from_pkcs8() 186 ASN1_STRING_clear_free(privkey); in ossl_dsa_key_from_pkcs8()
|
/openssl-master/providers/implementations/exchange/ |
A D | ecx_exch.c | 125 || ecxctx->key->privkey == NULL in ecx_derive() 151 ecxctx->key->privkey) == 0) { in ecx_derive() 157 if (ossl_x25519(secret, ecxctx->key->privkey, in ecx_derive() 167 ecxctx->key->privkey) == 0) { in ecx_derive() 173 if (ossl_x448(secret, ecxctx->key->privkey, in ecx_derive()
|
/openssl-master/crypto/ec/curve448/ |
A D | ed448.h | 44 const uint8_t privkey [EDDSA_448_PRIVATE_BYTES], 67 const uint8_t privkey[EDDSA_448_PRIVATE_BYTES], 93 const uint8_t privkey[EDDSA_448_PRIVATE_BYTES],
|
A D | eddsa.c | 114 const uint8_t privkey[EDDSA_448_PRIVATE_BYTES], in ossl_c448_ed448_derive_public_key() 124 privkey, in ossl_c448_ed448_derive_public_key() 161 const uint8_t privkey[EDDSA_448_PRIVATE_BYTES], in ossl_c448_ed448_sign() 185 if (!oneshot_hash(ctx, expanded, sizeof(expanded), privkey, in ossl_c448_ed448_sign() 270 const uint8_t privkey[EDDSA_448_PRIVATE_BYTES], in ossl_c448_ed448_sign_prehash() 275 return ossl_c448_ed448_sign(ctx, signature, privkey, pubkey, hash, 64, 1, in ossl_c448_ed448_sign_prehash()
|
/openssl-master/fuzz/ |
A D | server.c | 521 RSA *privkey; in FuzzerTestOneInput() local 552 privkey = d2i_RSAPrivateKey(NULL, &bufp, sizeof(kRSAPrivateKeyDER)); in FuzzerTestOneInput() 553 OPENSSL_assert(privkey != NULL); in FuzzerTestOneInput() 555 EVP_PKEY_assign_RSA(pkey, privkey); in FuzzerTestOneInput()
|
/openssl-master/crypto/dh/ |
A D | dh_backend.c | 192 ASN1_INTEGER *privkey = NULL; in ossl_dh_key_from_pkcs8() local 202 if ((privkey = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) in ossl_dh_key_from_pkcs8() 223 || !ASN1_INTEGER_to_BN(privkey, privkey_bn)) { in ossl_dh_key_from_pkcs8() 242 ASN1_STRING_clear_free(privkey); in ossl_dh_key_from_pkcs8()
|
/openssl-master/apps/ |
A D | x509.c | 261 EVP_PKEY *privkey = NULL, *CAkey = NULL, *pubkey = NULL; in x509_main() local 631 if (privkey == NULL) in x509_main() 757 if ((pubkey != NULL || privkey != NULL || req != NULL) in x509_main() 759 privkey != NULL ? privkey : in x509_main() 814 if (privkey != NULL && !cert_matches_key(x, privkey)) in x509_main() 832 if (!X509V3_set_issuer_pkey(&ext_ctx, privkey)) in x509_main() 853 if (privkey == NULL) { in x509_main() 871 if (!do_X509_REQ_sign(rq, privkey, digest, sigopts)) in x509_main() 887 } else if (privkey != NULL) { in x509_main() 888 if (!do_X509_sign(x, privkey, digest, sigopts, &ext_ctx)) in x509_main() [all …]
|
/openssl-master/doc/HOWTO/ |
A D | certificates.txt | 32 Private keys are generated with 'openssl genrsa -out privkey.pem' if 34 'openssl dsaparam -out dsaparam.pem 2048; openssl gendsa -out privkey.pem dsaparam.pem'. 39 The rest of this text assumes you have a private key in the file privkey.pem. 55 openssl req -new -key privkey.pem -out cert.csr 82 openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095
|
/openssl-master/providers/implementations/signature/ |
A D | eddsa_sig.c | 171 if (ossl_ed25519_sign(sigret, tbs, tbslen, edkey->pubkey, edkey->privkey, in ed25519_digest_sign() 203 edkey->privkey, NULL, 0, edkey->propq) == 0) { in ed448_digest_sign() 363 memcpy(param.ed25519.priv, edkey->privkey, sizeof(param.ed25519.priv)); in s390x_ed25519_digestsign() 388 memcpy(param.ed448.priv + 64 - 57, edkey->privkey, 57); in s390x_ed448_digestsign()
|