| /src/crypto/external/apache2/openssl/dist/demos/signature/ |
| EVP_ED_Signature_demo.c | 86 static int demo_verify(EVP_PKEY *pub, 105 libctx, NULL, pub, NULL)) { 130 EVP_PKEY *priv = NULL, *pub = NULL; local 153 pub = EVP_PKEY_new_raw_public_key_ex(libctx, "ED25519", NULL, pubdata, pubdata_len); 154 if (pub == NULL) { 161 *pubout = pub; 175 EVP_PKEY *priv = NULL, *pub = NULL; local 182 if (!create_key(libctx, &priv, &pub)) { 192 if (!demo_verify(pub, hamlet, sizeof(hamlet), 202 EVP_PKEY_free(pub); [all...] |
| /src/external/bsd/wpa/dist/src/crypto/ |
| crypto_internal-modexp.c | 48 struct bignum *pub; local 56 pub = bignum_init(); 57 if (!pub || bignum_set_unsigned_bin(pub, pubkey, pubkey_len) < 0 || 58 bignum_cmp_d(pub, 1) <= 0) 72 bignum_exptmod(pub, q, p, tmp) < 0 || 84 bignum_deinit(pub);
|
| /src/crypto/external/apache2/openssl/dist/crypto/slh_dsa/ |
| slh_dsa_key.h | 33 * pub will be NULL initially. 37 uint8_t *pub; member in struct:slh_dsa_key_st
|
| /src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| crypto-pk.c | 144 krb5_data pub; local 155 ASN1_MALLOC_ENCODE(PkinitSuppPubInfo, pub.data, pub.length, 161 if (pub.length != size) 166 free(pub.data); 172 free(pub.data); 177 otherinfo.suppPubInfo = &pub; 183 free(pub.data);
|
| /src/crypto/external/apache2/openssl/dist/demos/keyexch/ |
| ecdh.c | 31 EVP_PKEY *pub; /* public key to send to other peer */ member in struct:peer_data_st 65 && (EVP_PKEY_fromdata(ctx, &peer->pub, EVP_PKEY_PUBLIC_KEY, 103 EVP_PKEY_free(peer->pub); 200 if (!generate_secret(&peer1, peer2.pub, libctx) 201 || !generate_secret(&peer2, peer1.pub, libctx)) {
|
| /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| dh-ltm.c | 86 mp_int pub, priv_key, g, p; local 115 mp_init_multi(&pub, &priv_key, &g, &p, NULL); 121 res = mp_exptmod(&g, &priv_key, &p, &pub); 127 dh->pub_key = mpz2BN(&pub); 128 mp_clear(&pub); 154 ltm_dh_compute_key(unsigned char *shared, const BIGNUM * pub, DH *dh) 164 BN2mpz(&peer_pub, pub);
|
| dh-tfm.c | 86 fp_int pub, priv_key, g, p; local 113 fp_init_multi(&pub, &priv_key, &g, &p, NULL); 119 res = fp_exptmod(&g, &priv_key, &p, &pub); 127 dh->pub_key = mpz2BN(&pub); 128 fp_zero(&pub); 154 tfm_dh_compute_key(unsigned char *shared, const BIGNUM * pub, DH *dh) 167 BN2mpz(&peer_pub, pub);
|
| /src/external/bsd/wpa/dist/hostapd/ |
| sae_pk_gen.c | 22 struct wpabuf *pub = NULL; local 72 pub = crypto_ec_key_get_subject_public_key(key); 73 if (!pub) { 94 data_len = os_strlen(argv[3]) + SAE_PK_M_LEN + wpabuf_len(pub); 106 os_memcpy(m + SAE_PK_M_LEN, wpabuf_head(pub), wpabuf_len(pub)); 187 wpabuf_free(pub);
|
| /src/crypto/external/apache2/openssl/dist/crypto/ct/ |
| ct_sct.c | 284 X509_PUBKEY *pub = NULL, *log_pkey = NULL; local 324 if (X509_PUBKEY_set(&pub, issuer_pkey) != 1) 326 if (SCT_CTX_set1_issuer_pubkey(sctx, pub) != 1) 358 X509_PUBKEY_free(pub);
|
| /src/crypto/external/apache2/openssl/dist/crypto/dh/ |
| dh_backend.c | 105 const BIGNUM *priv = NULL, *pub = NULL; local 110 DH_get0_key(dh, &pub, &priv); 115 if (pub != NULL 116 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PUB_KEY, pub))
|
| /src/crypto/external/apache2/openssl/dist/test/ |
| ffc_internal_test.c | 445 BIGNUM *pub = NULL; local 448 if (!TEST_ptr(pub = BN_new())) 455 if (!TEST_true(BN_set_word(pub, 1))) 457 BN_set_negative(pub, 1); 459 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) 463 if (!TEST_true(BN_set_word(pub, 0))) 466 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) 475 if (!TEST_true(BN_add_word(pub, 2))) 478 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) 481 if (!TEST_ptr(BN_copy(pub, params->p)) [all...] |
| /src/crypto/external/bsd/openssl/dist/apps/ |
| testdsa.h | 191 unsigned char *pub; member in struct:testdsa_st 205 st.pub = dsa##bits##_pub; \ 243 pub_key = BN_bin2bn(dsa_t.pub, dsa_t.pub_l, NULL);
|
| /src/crypto/external/bsd/openssl/dist/crypto/ct/ |
| ct_sct.c | 294 X509_PUBKEY *pub = NULL, *log_pkey = NULL; local 334 if (X509_PUBKEY_set(&pub, issuer_pkey) != 1) 336 if (SCT_CTX_set1_issuer_pubkey(sctx, pub) != 1) 369 X509_PUBKEY_free(pub);
|
| /src/crypto/external/bsd/openssl/dist/crypto/dh/ |
| dh_backend.c | 112 const BIGNUM *priv = NULL, *pub = NULL; local 117 DH_get0_key(dh, &pub, &priv); 122 if (pub != NULL 123 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PUB_KEY, pub))
|
| /src/crypto/external/bsd/openssl/dist/providers/implementations/signature/ |
| eddsa_sig.c | 430 unsigned char pub[32]; member in struct:__anon1629::__anon1630 438 s390x_flip_endian32(param.ed25519.pub, edkey->pubkey); 452 unsigned char pub[64]; member in struct:__anon1631::__anon1632 462 memcpy(param.ed448.pub, edkey->pubkey, 57); 463 s390x_flip_endian64(param.ed448.pub, param.ed448.pub);
|
| /src/crypto/external/bsd/openssl/dist/test/ |
| ffc_internal_test.c | 445 BIGNUM *pub = NULL; local 448 if (!TEST_ptr(pub = BN_new())) 455 if (!TEST_true(BN_set_word(pub, 1))) 457 BN_set_negative(pub, 1); 459 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) 463 if (!TEST_true(BN_set_word(pub, 0))) 466 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) 475 if (!TEST_true(BN_add_word(pub, 2))) 478 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) 481 if (!TEST_ptr(BN_copy(pub, params->p)) [all...] |
| /src/crypto/external/bsd/openssl.old/dist/apps/ |
| testdsa.h | 189 unsigned char *pub; member in struct:testdsa_st 203 st.pub = dsa##bits##_pub; \ 237 pub_key = BN_bin2bn(dsa_t.pub, dsa_t.pub_l, NULL);
|
| /src/crypto/external/bsd/openssl.old/dist/crypto/ct/ |
| ct_sct.c | 294 X509_PUBKEY *pub = NULL, *log_pkey = NULL; local 334 if (X509_PUBKEY_set(&pub, issuer_pkey) != 1) 336 if (SCT_CTX_set1_issuer_pubkey(sctx, pub) != 1) 369 X509_PUBKEY_free(pub);
|
| /src/crypto/external/bsd/openssh/dist/ |
| authfile.c | 265 /* try .pub suffix */ 266 if (asprintf(&pubfile, "%s.pub", filename) == -1) 290 struct sshkey *pub = NULL; local 297 if (asprintf(&file, "%s-cert.pub", filename) == -1) 302 sshkey_free(pub); 370 struct sshkey *pub = NULL; local 379 sshkey_free(pub); 380 pub = NULL; 395 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL) { 399 switch (r = sshkey_read(pub, &cp)) [all...] |
| /src/crypto/external/apache2/openssl/dist/apps/ |
| testdsa.h | 210 unsigned char *pub; member in struct:testdsa_st 224 st.pub = dsa##bits##_pub; \ 262 pub_key = BN_bin2bn(dsa_t.pub, dsa_t.pub_l, NULL);
|
| /src/tests/crypto/libcrypto/ecdh/ |
| ecdhtest.c | 177 BIO_puts(out, "\n pub 1="); 208 BIO_puts(out, "\n pub 2="); 390 EC_POINT *pub = NULL; local 401 pub = EC_POINT_new(grp); 402 if (!pub) 404 if (!EC_POINT_mul(grp, pub, priv, NULL, NULL, NULL)) 406 if (!EC_KEY_set_public_key(k, pub)) 412 if (pub) 413 EC_POINT_free(pub);
|
| /src/crypto/external/apache2/openssl/dist/fuzz/ |
| ml-dsa.c | 167 int pub = 0; local 179 pub = 1; 210 if (pub == 1)
|
| ml-kem.c | 147 int pub = 0; local 160 pub = 1; 178 if (pub == 1)
|
| /src/crypto/external/apache2/openssl/dist/providers/implementations/keymgmt/ |
| ml_dsa_kmgmt.c | 328 const uint8_t *pub, *priv, *seed; local 340 pub = ossl_ml_dsa_key_get_pub(key); 353 if (pub != NULL 355 && !OSSL_PARAM_set_octet_string(p, pub,
|
| slh_dsa_kmgmt.c | 182 const uint8_t *pub, *priv; local 203 pub = ossl_slh_dsa_key_get_pub(key); 204 if (pub != NULL) { 207 && !OSSL_PARAM_set_octet_string(p, pub,
|