/external/dropbear/libtomcrypt/src/pk/ecc/ |
D | ecc_import.c | 40 …if ((err = mp_sqr(key->pubkey.y, t1)) != CRYPT_OK) { goto … in is_point() 43 …if ((err = mp_sqr(key->pubkey.x, t2)) != CRYPT_OK) { goto … in is_point() 45 …if ((err = mp_mul(key->pubkey.x, t2, t2)) != CRYPT_OK) { goto … in is_point() 51 …if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto … in is_point() 52 …if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto … in is_point() 53 …if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto … in is_point() 105 if (mp_init_multi(&key->pubkey.x, &key->pubkey.y, &key->pubkey.z, &key->k, NULL) != CRYPT_OK) { in ecc_import_ex() 123 LTC_ASN1_INTEGER, 1UL, key->pubkey.x, in ecc_import_ex() 124 LTC_ASN1_INTEGER, 1UL, key->pubkey.y, in ecc_import_ex() 135 LTC_ASN1_INTEGER, 1UL, key->pubkey.x, in ecc_import_ex() [all …]
|
D | ecc_sign_hash.c | 41 ecc_key pubkey; in ecc_sign_hash() local 74 if ((err = ecc_make_key_ex(prng, wprng, &pubkey, key->dp)) != CRYPT_OK) { in ecc_sign_hash() 79 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; } in ecc_sign_hash() 82 ecc_free(&pubkey); in ecc_sign_hash() 85 … if ((err = mp_invmod(pubkey.k, p, pubkey.k)) != CRYPT_OK) { goto error; } /* k = 1/k */ in ecc_sign_hash() 89 …if ((err = mp_mulmod(s, pubkey.k, p, s)) != CRYPT_OK) { goto error; } /* s = (e + x… in ecc_sign_hash() 90 ecc_free(&pubkey); in ecc_sign_hash() 104 ecc_free(&pubkey); in ecc_sign_hash()
|
D | ecc_ansi_x963_import.c | 49 if (mp_init_multi(&key->pubkey.x, &key->pubkey.y, &key->pubkey.z, &key->k, NULL) != CRYPT_OK) { in ecc_ansi_x963_import_ex() 60 …if ((err = mp_read_unsigned_bin(key->pubkey.x, (unsigned char *)in+1, (inlen-1)>>1)) != CRYPT_OK) { in ecc_ansi_x963_import_ex() 64 …if ((err = mp_read_unsigned_bin(key->pubkey.y, (unsigned char *)in+1+((inlen-1)>>1), (inlen-1)>>1)… in ecc_ansi_x963_import_ex() 67 if ((err = mp_set(key->pubkey.z, 1)) != CRYPT_OK) { goto error; } in ecc_ansi_x963_import_ex() 96 mp_clear_multi(key->pubkey.x, key->pubkey.y, key->pubkey.z, key->k, NULL); in ecc_ansi_x963_import_ex()
|
D | ecc_encrypt_key.c | 44 ecc_key pubkey; in ecc_encrypt_key() local 67 if ((err = ecc_make_key_ex(prng, wprng, &pubkey, key->dp)) != CRYPT_OK) { in ecc_encrypt_key() 84 ecc_free(&pubkey); in ecc_encrypt_key() 89 if ((err = ecc_export(pub_expt, &pubkeysize, PK_PUBLIC, &pubkey)) != CRYPT_OK) { in ecc_encrypt_key() 90 ecc_free(&pubkey); in ecc_encrypt_key() 96 if ((err = ecc_shared_secret(&pubkey, key, ecc_shared, &x)) != CRYPT_OK) { in ecc_encrypt_key() 97 ecc_free(&pubkey); in ecc_encrypt_key() 100 ecc_free(&pubkey); in ecc_encrypt_key()
|
D | ecc_make_key.c | 85 …if ((err = mp_init_multi(&key->pubkey.x, &key->pubkey.y, &key->pubkey.z, &key->k, &prime, NULL)) !… in ecc_make_key_ex() 102 …if ((err = ltc_mp.ecc_ptmul(key->k, base, &key->pubkey, prime, 1)) != CRYPT_OK) { got… in ecc_make_key_ex() 109 mp_clear_multi(key->pubkey.x, key->pubkey.y, key->pubkey.z, key->k, NULL); in ecc_make_key_ex()
|
D | ecc_ansi_x963_export.c | 56 mp_to_unsigned_bin(key->pubkey.x, buf + (numlen - mp_unsigned_bin_size(key->pubkey.x))); in ecc_ansi_x963_export() 61 mp_to_unsigned_bin(key->pubkey.y, buf + (numlen - mp_unsigned_bin_size(key->pubkey.y))); in ecc_ansi_x963_export()
|
D | ecc_export.c | 61 LTC_ASN1_INTEGER, 1UL, key->pubkey.x, in ecc_export() 62 LTC_ASN1_INTEGER, 1UL, key->pubkey.y, in ecc_export() 70 LTC_ASN1_INTEGER, 1UL, key->pubkey.x, in ecc_export() 71 LTC_ASN1_INTEGER, 1UL, key->pubkey.y, in ecc_export()
|
D | ecc_free.c | 33 mp_clear_multi(key->pubkey.x, key->pubkey.y, key->pubkey.z, key->k, NULL); in ecc_free()
|
D | ecc_decrypt_key.c | 42 ecc_key pubkey; in ecc_decrypt_key() local 94 if ((err = ecc_import(decode[1].data, decode[1].size, &pubkey)) != CRYPT_OK) { in ecc_decrypt_key() 100 if ((err = ecc_shared_secret(key, &pubkey, ecc_shared, &x)) != CRYPT_OK) { in ecc_decrypt_key() 101 ecc_free(&pubkey); in ecc_decrypt_key() 104 ecc_free(&pubkey); in ecc_decrypt_key()
|
D | ecc_verify_hash.c | 119 …if ((err = mp_copy(key->pubkey.x, mQ->x)) != CRYPT_OK) … in ecc_verify_hash() 120 …if ((err = mp_copy(key->pubkey.y, mQ->y)) != CRYPT_OK) … in ecc_verify_hash() 121 …if ((err = mp_copy(key->pubkey.z, mQ->z)) != CRYPT_OK) … in ecc_verify_hash()
|
D | ecc_shared_secret.c | 72 …if ((err = ltc_mp.ecc_ptmul(private_key->k, &public_key->pubkey, result, prime, 1)) != CRYPT_OK) … in ecc_shared_secret()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_build.c | 23 struct wpabuf *pubkey; in wps_build_public_key() local 39 pubkey = wpabuf_dup(wps->wps->dh_pubkey); in wps_build_public_key() 55 pubkey = wpabuf_dup(wps->wps->ap_nfc_dh_pubkey); in wps_build_public_key() 56 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key() 61 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key() 62 pubkey = wpabuf_zeropad(pubkey, 192); in wps_build_public_key() 64 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key() 67 wpabuf_free(pubkey); in wps_build_public_key() 71 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH own Public Key", pubkey); in wps_build_public_key() 74 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key() [all …]
|
D | wps_common.c | 61 struct wpabuf *pubkey, *dh_shared; in wps_derive_keys() local 72 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r; in wps_derive_keys() 73 if (pubkey == NULL) { in wps_derive_keys() 79 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH peer Public Key", pubkey); in wps_derive_keys() 80 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys() 355 const struct wpabuf *pubkey, in wps_build_nfc_pw_token() argument 365 wps_build_oob_dev_pw(data, dev_pw_id, pubkey, in wps_build_nfc_pw_token() 566 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey, in wps_nfc_token_build() argument 571 if (pubkey == NULL || dev_pw == NULL) in wps_nfc_token_build() 574 ret = wps_build_nfc_pw_token(id, pubkey, dev_pw); in wps_nfc_token_build() [all …]
|
D | wps.h | 816 const struct wpabuf *pubkey, 818 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey, 820 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey,
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/ |
D | NetscapeCertRequest.java | 53 PublicKey pubkey ; field in NetscapeCertRequest 120 pubkey = KeyFactory.getInstance(keyAlg.getObjectId().getId(), "BC") in NetscapeCertRequest() 139 pubkey = pub_key; in NetscapeCertRequest() 188 return pubkey; in getPublicKey() 193 pubkey = value; in setPublicKey() 210 sig.initVerify(pubkey); in verify() 266 baos.write(pubkey.getEncoded()); in getKeySpec()
|
/external/dropbear/libtomcrypt/notes/ |
D | tech0006.txt | 67 pubkey.x INTEGER, -- The X co-ordinate of the public key point 68 pubkey.y INTEGER, -- The Y co-ordinate of the public key point 75 pubkey.x INTEGER, -- The X co-ordinate of the public key point 76 pubkey.y INTEGER, -- The Y co-ordinate of the public key point 85 pubkey OCTET STRING , -- Encapsulation of a random ECCPublicKey
|
/external/openssl/crypto/asn1/ |
D | t_spki.c | 80 i=OBJ_obj2nid(spki->spkac->pubkey->algor->algorithm); in NETSCAPE_SPKI_print() 83 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in NETSCAPE_SPKI_print()
|
D | x_spki.c | 69 ASN1_SIMPLE(NETSCAPE_SPKAC, pubkey, X509_PUBKEY),
|
D | x_req.c | 97 ASN1_SIMPLE(X509_REQ_INFO, pubkey, X509_PUBKEY),
|
D | x_pubkey.c | 77 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; in pubkey_cb() local 78 EVP_PKEY_free(pubkey->pkey); in pubkey_cb()
|
/external/openssl/crypto/x509/ |
D | x509spki.c | 66 return(X509_PUBKEY_set(&(x->spkac->pubkey),pkey)); in NETSCAPE_SPKI_set_pubkey() 73 return(X509_PUBKEY_get(x->spkac->pubkey)); in NETSCAPE_SPKI_get_pubkey()
|
D | x509rset.c | 81 return(X509_PUBKEY_set(&x->req_info->pubkey,pkey)); in X509_REQ_set_pubkey()
|
/external/openssl/apps/ |
D | spkac.c | 87 int verify=0,noout=0,pubkey=0; in MAIN() local 157 pubkey=1; in MAIN() 295 if(pubkey) PEM_write_bio_PUBKEY(out, pkey); in MAIN()
|
/external/openssl/crypto/ec/ |
D | ec_pmeth.c | 174 const EC_POINT *pubkey = NULL; in pkey_ec_derive() local 189 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec); in pkey_ec_derive() 197 ret = ECDH_compute_key(key, outlen, pubkey, ctx->pkey->pkey.ec, 0); in pkey_ec_derive()
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 466 struct wpabuf *pubkey = NULL, *privkey = NULL; in dh5_init() local 488 pubkey = wpabuf_alloc(publen); in dh5_init() 489 if (pubkey == NULL) in dh5_init() 496 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen)); in dh5_init() 500 *publ = pubkey; in dh5_init() 504 wpabuf_free(pubkey); in dh5_init()
|