Home
last modified time | relevance | path

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

1234

/openssl-master/crypto/ec/
A Decx_backend.c32 ossl_x25519_public_from_private(key->pubkey, key->privkey); in ossl_ecx_public_from_private()
35 if (!ossl_ed25519_public_from_private(key->libctx, key->pubkey, in ossl_ecx_public_from_private()
42 ossl_x448_public_from_private(key->pubkey, key->privkey); in ossl_ecx_public_from_private()
45 if (!ossl_ed448_public_from_private(key->libctx, key->pubkey, in ossl_ecx_public_from_private()
60 unsigned char *pubkey; in ossl_ecx_key_fromdata() local
79 pubkey = ecx->pubkey; in ossl_ecx_key_fromdata()
82 (void **)&pubkey, in ossl_ecx_key_fromdata()
126 memcpy(ret->pubkey, key->pubkey, sizeof(ret->pubkey)); in ossl_ecx_key_dup()
150 unsigned char *privkey, *pubkey; in ossl_ecx_key_op() local
181 pubkey = key->pubkey; in ossl_ecx_key_op()
[all …]
A Decx_meth.c83 return CRYPTO_memcmp(akey->pubkey, bkey->pubkey, KEYLEN(a)) == 0; in ecx_pub_cmp()
334 memcpy(pub, key->pubkey, *len); in ecx_get_pub_key()
746 *pubkey = peerkey->pubkey; in validate_ecx_derive()
754 const unsigned char *privkey, *pubkey; in pkey_ecx_derive25519() local
767 const unsigned char *privkey, *pubkey; in pkey_ecx_derive448() local
932 pubkey = key->pubkey; in s390x_pkey_ecx_keygen25519()
975 pubkey = key->pubkey; in s390x_pkey_ecx_keygen448()
1024 pubkey = key->pubkey; in s390x_pkey_ecd_keygen25519()
1048 if (s390x_ed25519_mul(x_dst, pubkey, in s390x_pkey_ecd_keygen25519()
1090 pubkey = key->pubkey; in s390x_pkey_ecd_keygen448()
[all …]
/openssl-master/crypto/x509/
A Dx_pubkey.c87 X509_PUBKEY *pubkey; in x509_pubkey_ex_free() local
94 OPENSSL_free(pubkey); in x509_pubkey_ex_free()
136 X509_PUBKEY *pubkey; in x509_pubkey_ex_d2i_ex() local
162 pubkey->pkey = NULL; in x509_pubkey_ex_d2i_ex()
175 if ((ret = x509_pubkey_decode(&pubkey->pkey, pubkey)) == -1) { in x509_pubkey_ex_d2i_ex()
274 pubkey = NULL; in IMPLEMENT_EXTERN_ASN1()
276 return pubkey; in IMPLEMENT_EXTERN_ASN1()
285 X509_PUBKEY *pubkey = OPENSSL_zalloc(sizeof(*pubkey)); in X509_PUBKEY_dup() local
287 if (pubkey == NULL in X509_PUBKEY_dup()
305 if (x509_pubkey_decode(&pubkey->pkey, pubkey) <= 0) { in X509_PUBKEY_dup()
[all …]
A Dx509_r2x.c25 EVP_PKEY *pubkey = NULL; in X509_REQ_to_X509() local
56 pubkey = X509_REQ_get0_pubkey(r); in X509_REQ_to_X509()
57 if (pubkey == NULL || !X509_set_pubkey(ret, pubkey)) in X509_REQ_to_X509()
A Dv3_skid.c55 ASN1_OCTET_STRING *ossl_x509_pubkey_hash(X509_PUBKEY *pubkey) in ossl_x509_pubkey_hash() argument
66 if (pubkey == NULL) { in ossl_x509_pubkey_hash()
70 if (!ossl_x509_PUBKEY_get0_libctx(&libctx, &propq, pubkey)) in ossl_x509_pubkey_hash()
79 X509_PUBKEY_get0_param(NULL, &pk, &pklen, NULL, pubkey); in ossl_x509_pubkey_hash()
109 ctx->subject_req->req_info.pubkey : in s2i_skey_id()
A Dx_req.c71 if (old->req_info.pubkey != NULL) { in req_cb()
72 EVP_PKEY *pkey = X509_PUBKEY_get0(old->req_info.pubkey); in req_cb()
80 if (!X509_PUBKEY_set(&ret->req_info.pubkey, pkey)) { in req_cb()
112 ASN1_SIMPLE(X509_REQ_INFO, pubkey, X509_PUBKEY),
A Dv3_akid.c173 X509_PUBKEY *pubkey = NULL; in v2i_AUTHORITY_KEYID() local
175 if (X509_PUBKEY_set(&pubkey, ctx->issuer_pkey)) in v2i_AUTHORITY_KEYID()
176 ikeyid = ossl_x509_pubkey_hash(pubkey); in v2i_AUTHORITY_KEYID()
177 X509_PUBKEY_free(pubkey); in v2i_AUTHORITY_KEYID()
/openssl-master/providers/implementations/keymgmt/
A Decx_kmgmt.c172 || CRYPTO_memcmp(key1->pubkey, key2->pubkey, in ecx_match()
385 void *buf = ecxkey->pubkey; in ecx_set_params()
820 unsigned char *privkey = NULL, *pubkey; in MAKE_KEYMGMT_FUNCTIONS() local
831 pubkey = key->pubkey; in MAKE_KEYMGMT_FUNCTIONS()
866 unsigned char *privkey = NULL, *pubkey; in s390x_ecx_keygen448() local
877 pubkey = key->pubkey; in s390x_ecx_keygen448()
915 unsigned char *privkey = NULL, *pubkey; in s390x_ecd_keygen25519() local
929 pubkey = key->pubkey; in s390x_ecd_keygen25519()
952 if (s390x_ed25519_mul(x_dst, pubkey, in s390x_ecd_keygen25519()
996 pubkey = key->pubkey; in s390x_ecd_keygen448()
[all …]
/openssl-master/crypto/cms/
A Dcms_dh.c20 X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) in dh_cms_set_peerkey() argument
45 plen = ASN1_STRING_length(pubkey); in dh_cms_set_peerkey()
46 p = ASN1_STRING_get0_data(pubkey); in dh_cms_set_peerkey()
170 ASN1_BIT_STRING *pubkey; in dh_cms_decrypt() local
175 if (alg == NULL || pubkey == NULL) in dh_cms_decrypt()
177 if (!dh_cms_set_peerkey(pctx, alg, pubkey)) { in dh_cms_decrypt()
198 ASN1_BIT_STRING *pubkey; in dh_cms_encrypt() local
213 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &talg, &pubkey, in dh_cms_encrypt()
236 ASN1_STRING_set0(pubkey, penc, penclen); in dh_cms_encrypt()
237 pubkey->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); in dh_cms_encrypt()
[all …]
A Dcms_ec.c107 plen = ASN1_STRING_length(pubkey); in ecdh_cms_set_peerkey()
108 p = ASN1_STRING_get0_data(pubkey); in ecdh_cms_set_peerkey()
228 ASN1_BIT_STRING *pubkey; in ecdh_cms_decrypt() local
230 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &alg, &pubkey, in ecdh_cms_decrypt()
233 if (alg == NULL || pubkey == NULL) in ecdh_cms_decrypt()
235 if (!ecdh_cms_set_peerkey(pctx, alg, pubkey)) { in ecdh_cms_decrypt()
256 ASN1_BIT_STRING *pubkey; in ecdh_cms_encrypt() local
270 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &talg, &pubkey, in ecdh_cms_encrypt()
279 ASN1_STRING_set0(pubkey, penc, penclen); in ecdh_cms_encrypt()
280 pubkey->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); in ecdh_cms_encrypt()
[all …]
/openssl-master/crypto/ec/curve448/
A Ded448.h43 uint8_t pubkey [EDDSA_448_PUBLIC_BYTES],
68 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES],
94 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES],
123 pubkey[EDDSA_448_PUBLIC_BYTES],
150 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES],
A Deddsa.c113 uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], in ossl_c448_ed448_derive_public_key()
148 ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa(pubkey, p); in ossl_c448_ed448_derive_public_key()
162 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], in ossl_c448_ed448_sign()
238 || !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES) in ossl_c448_ed448_sign()
271 const uint8_t pubkey[EDDSA_448_PUBLIC_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()
283 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], in ossl_c448_ed448_verify()
318 ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio(pk_point, pubkey); in ossl_c448_ed448_verify()
337 || !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES) in ossl_c448_ed448_verify()
367 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], in ossl_c448_ed448_verify_prehash()
[all …]
/openssl-master/test/
A Dtls-provider.c45 unsigned char pubkey[XOR_KEY_SIZE]; member
366 memcpy(ct, ourkey->pubkey, XOR_KEY_SIZE); in xor_encapsulate()
414 memcpy(peerkey->pubkey, ct, XOR_KEY_SIZE); in xor_decapsulate()
491 memcpy(tokey->pubkey, fromkey->pubkey, XOR_KEY_SIZE); in xor_dup()
532 memcpy(p->data, key->pubkey, XOR_KEY_SIZE); in xor_get_params()
560 memcpy(key->pubkey, p->data, XOR_KEY_SIZE); in xor_set_params()
663 unsigned char pubkey[XOR_KEY_SIZE]; in xor_import() local
664 void *pprivkey = privkey, *ppubkey = pubkey; in xor_import()
672 memset(pubkey, 0, sizeof(pubkey)); in xor_import()
689 memcpy(key->pubkey, pubkey, pub_len); in xor_import()
[all …]
A Dalgorithmid_test.c23 static int test_spki_aid(X509_PUBKEY *pubkey, const char *filename) in test_spki_aid() argument
43 if (!TEST_true(X509_PUBKEY_get0_param(NULL, NULL, NULL, &alg, pubkey)) in test_spki_aid()
44 || !TEST_ptr(pkey = X509_PUBKEY_get0(pubkey))) in test_spki_aid()
105 X509_PUBKEY *pubkey = X509_get_X509_PUBKEY(cert); in test_x509_spki_aid() local
107 return test_spki_aid(pubkey, filename); in test_x509_spki_aid()
190 X509_PUBKEY *pubkey = NULL; in test_spki_file() local
200 if ((pubkey = PEM_read_bio_X509_PUBKEY(b, NULL, NULL, NULL)) == NULL) { in test_spki_file()
207 ret = test_spki_aid(pubkey, pubkey_filename); in test_spki_file()
210 X509_PUBKEY_free(pubkey); in test_spki_file()
A Denginetest.c361 X509_PUBKEY *pubkey, *duppubkey = NULL; in test_x509_dup_w_engine() local
376 if (!TEST_ptr(pubkey = X509_get_X509_PUBKEY(cert)) in test_x509_dup_w_engine()
377 || !TEST_ptr(duppubkey = X509_PUBKEY_dup(pubkey)) in test_x509_dup_w_engine()
378 || !TEST_ptr_ne(duppubkey, pubkey) in test_x509_dup_w_engine()
379 || !TEST_ptr_ne(X509_PUBKEY_get0(duppubkey), X509_PUBKEY_get0(pubkey))) in test_x509_dup_w_engine()
410 if (!TEST_ptr(pubkey = X509_get_X509_PUBKEY(cert)) in test_x509_dup_w_engine()
411 || !TEST_ptr(duppubkey = X509_PUBKEY_dup(pubkey)) in test_x509_dup_w_engine()
412 || !TEST_ptr_ne(duppubkey, pubkey) in test_x509_dup_w_engine()
413 || !TEST_ptr_ne(X509_PUBKEY_get0(duppubkey), X509_PUBKEY_get0(pubkey))) in test_x509_dup_w_engine()
/openssl-master/providers/implementations/encode_decode/
A Dencode_key2blob.c88 unsigned char *pubkey = NULL; in key2blob_encode() local
90 pubkey_len = i2o_ECPublicKey(key, &pubkey); in key2blob_encode()
91 if (pubkey_len > 0 && pubkey != NULL) in key2blob_encode()
92 ok = write_blob(vctx, cout, pubkey, pubkey_len); in key2blob_encode()
93 OPENSSL_free(pubkey); in key2blob_encode()
/openssl-master/crypto/dh/
A Ddh_key.c376 BIGNUM *pubkey = NULL; in ossl_dh_buf2key() local
380 if ((pubkey = BN_bin2bn(buf, len, NULL)) == NULL) in ossl_dh_buf2key()
391 if (BN_is_zero(pubkey) || p_size != len) { in ossl_dh_buf2key()
395 if (DH_set0_key(dh, pubkey, NULL) != 1) in ossl_dh_buf2key()
400 BN_free(pubkey); in ossl_dh_buf2key()
407 const BIGNUM *pubkey; in ossl_dh_key2buf() local
413 DH_get0_key(dh, &pubkey, NULL); in ossl_dh_key2buf()
414 if (p == NULL || pubkey == NULL in ossl_dh_key2buf()
416 || BN_num_bytes(pubkey) == 0) { in ossl_dh_key2buf()
436 if (BN_bn2binpad(pubkey, pbuf, p_size) < 0) { in ossl_dh_key2buf()
/openssl-master/apps/lib/
A Dengine_loader.c119 EVP_PKEY *pkey = NULL, *pubkey = NULL; in engine_load() local
131 pubkey = in engine_load()
140 if (pubkey != NULL) in engine_load()
141 info = OSSL_STORE_INFO_new_PUBKEY(pubkey); in engine_load()
146 EVP_PKEY_free(pubkey); in engine_load()
/openssl-master/crypto/ct/
A Dct_sct_ctx.c253 int SCT_CTX_set1_issuer_pubkey(SCT_CTX *sctx, X509_PUBKEY *pubkey) in SCT_CTX_set1_issuer_pubkey() argument
255 return ct_public_key_hash(sctx, pubkey, &sctx->ihash, &sctx->ihashlen); in SCT_CTX_set1_issuer_pubkey()
258 int SCT_CTX_set1_pubkey(SCT_CTX *sctx, X509_PUBKEY *pubkey) in SCT_CTX_set1_pubkey() argument
260 EVP_PKEY *pkey = X509_PUBKEY_get(pubkey); in SCT_CTX_set1_pubkey()
265 if (!ct_public_key_hash(sctx, pubkey, &sctx->pkeyhash, &sctx->pkeyhashlen)) { in SCT_CTX_set1_pubkey()
/openssl-master/test/recipes/
A D20-test_pkeyutl.t75 my $pubkey = shift;
112 '-inkey', $pubkey, '-pubin',
120 '-inkey', $pubkey, '-pubin',
A D25-test_x509.t71 my $pubkey = "ca-pubkey.pem"; # the corresponding issuer public key
76 ok(run(app(["openssl", "pkey", "-in", $pkey, "-pubout", "-out", $pubkey]))
77 && run(app(["openssl", "x509", "-new", "-force_pubkey", $pubkey,
A D20-test_dgst.t25 my $pubkey = shift;
43 ok(run(app(['openssl', 'dgst', '-verify', $pubkey,
48 ok(!run(app(['openssl', 'dgst', '-verify', $pubkey,
/openssl-master/providers/implementations/exchange/
A Decx_exch.c150 if (s390x_x25519_mul(secret, ecxctx->peerkey->pubkey, in ecx_derive()
158 ecxctx->peerkey->pubkey) == 0) { in ecx_derive()
166 if (s390x_x448_mul(secret, ecxctx->peerkey->pubkey, in ecx_derive()
174 ecxctx->peerkey->pubkey) == 0) { in ecx_derive()
/openssl-master/providers/implementations/signature/
A Deddsa_sig.c171 if (ossl_ed25519_sign(sigret, tbs, tbslen, edkey->pubkey, edkey->privkey, in ed25519_digest_sign()
202 if (ossl_ed448_sign(peddsactx->libctx, sigret, tbs, tbslen, edkey->pubkey, in ed448_digest_sign()
226 return ossl_ed25519_verify(tbs, tbslen, sig, edkey->pubkey, in ed25519_digest_verify()
245 return ossl_ed448_verify(peddsactx->libctx, tbs, tbslen, sig, edkey->pubkey, in ed448_digest_verify()
417 s390x_flip_endian32(param.ed25519.pub, edkey->pubkey); in s390x_ed25519_digestverify()
441 memcpy(param.ed448.pub, edkey->pubkey, 57); in s390x_ed448_digestverify()
/openssl-master/crypto/asn1/
A Dt_spki.c28 X509_PUBKEY_get0_param(&spkioid, NULL, NULL, NULL, spki->spkac->pubkey); in NETSCAPE_SPKI_print()
32 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in NETSCAPE_SPKI_print()

Completed in 37 milliseconds

1234