/external/dropbear/libtomcrypt/src/pk/ecc/ |
ecc_free.c | 33 mp_clear_multi(key->pubkey.x, key->pubkey.y, key->pubkey.z, key->k, NULL);
|
ecc_sign_hash.c | 41 ecc_key pubkey; local 74 if ((err = ecc_make_key_ex(prng, wprng, &pubkey, key->dp)) != CRYPT_OK) { 79 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; } 82 ecc_free(&pubkey); 85 if ((err = mp_invmod(pubkey.k, p, pubkey.k)) != CRYPT_OK) { goto error; } /* k = 1/k */ 89 if ((err = mp_mulmod(s, pubkey.k, p, s)) != CRYPT_OK) { goto error; } /* s = (e + xr)/k */ 90 ecc_free(&pubkey); 104 ecc_free(&pubkey); [all...] |
ecc_ansi_x963_import.c | 49 if (mp_init_multi(&key->pubkey.x, &key->pubkey.y, &key->pubkey.z, &key->k, NULL) != CRYPT_OK) { 60 if ((err = mp_read_unsigned_bin(key->pubkey.x, (unsigned char *)in+1, (inlen-1)>>1)) != CRYPT_OK) { 64 if ((err = mp_read_unsigned_bin(key->pubkey.y, (unsigned char *)in+1+((inlen-1)>>1), (inlen-1)>>1)) != CRYPT_OK) { 67 if ((err = mp_set(key->pubkey.z, 1)) != CRYPT_OK) { goto error; } 96 mp_clear_multi(key->pubkey.x, key->pubkey.y, key->pubkey.z, key->k, NULL);
|
ecc_import.c | 40 if ((err = mp_sqr(key->pubkey.y, t1)) != CRYPT_OK) { goto error; } 43 if ((err = mp_sqr(key->pubkey.x, t2)) != CRYPT_OK) { goto error; } 45 if ((err = mp_mul(key->pubkey.x, t2, t2)) != CRYPT_OK) { goto error; } 51 if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto error; } 52 if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto error; } 53 if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto error; } 105 if (mp_init_multi(&key->pubkey.x, &key->pubkey.y, &key->pubkey.z, &key->k, NULL) != CRYPT_OK) { 123 LTC_ASN1_INTEGER, 1UL, key->pubkey.x [all...] |
ecc_ansi_x963_export.c | 56 mp_to_unsigned_bin(key->pubkey.x, buf + (numlen - mp_unsigned_bin_size(key->pubkey.x))); 61 mp_to_unsigned_bin(key->pubkey.y, buf + (numlen - mp_unsigned_bin_size(key->pubkey.y)));
|
ecc_encrypt_key.c | 44 ecc_key pubkey; local 67 if ((err = ecc_make_key_ex(prng, wprng, &pubkey, key->dp)) != CRYPT_OK) { 84 ecc_free(&pubkey); 89 if ((err = ecc_export(pub_expt, &pubkeysize, PK_PUBLIC, &pubkey)) != CRYPT_OK) { 90 ecc_free(&pubkey); 96 if ((err = ecc_shared_secret(&pubkey, key, ecc_shared, &x)) != CRYPT_OK) { 97 ecc_free(&pubkey); 100 ecc_free(&pubkey);
|
ecc_export.c | 61 LTC_ASN1_INTEGER, 1UL, key->pubkey.x, 62 LTC_ASN1_INTEGER, 1UL, key->pubkey.y, 70 LTC_ASN1_INTEGER, 1UL, key->pubkey.x, 71 LTC_ASN1_INTEGER, 1UL, key->pubkey.y,
|
ecc_make_key.c | 85 if ((err = mp_init_multi(&key->pubkey.x, &key->pubkey.y, &key->pubkey.z, &key->k, &prime, NULL)) != CRYPT_OK) { 102 if ((err = ltc_mp.ecc_ptmul(key->k, base, &key->pubkey, prime, 1)) != CRYPT_OK) { goto errkey; } 109 mp_clear_multi(key->pubkey.x, key->pubkey.y, key->pubkey.z, key->k, NULL);
|
ecc_decrypt_key.c | 42 ecc_key pubkey; local 94 if ((err = ecc_import(decode[1].data, decode[1].size, &pubkey)) != CRYPT_OK) { 100 if ((err = ecc_shared_secret(key, &pubkey, ecc_shared, &x)) != CRYPT_OK) { 101 ecc_free(&pubkey); 104 ecc_free(&pubkey);
|
ecc_verify_hash.c | 119 if ((err = mp_copy(key->pubkey.x, mQ->x)) != CRYPT_OK) { goto error; } 120 if ((err = mp_copy(key->pubkey.y, mQ->y)) != CRYPT_OK) { goto error; } 121 if ((err = mp_copy(key->pubkey.z, mQ->z)) != CRYPT_OK) { goto error; }
|
ecc_shared_secret.c | 72 if ((err = ltc_mp.ecc_ptmul(private_key->k, &public_key->pubkey, result, prime, 1)) != CRYPT_OK) { goto done; }
|
/bootable/bootloader/legacy/libc/ |
crypto.c | 39 int is_signature_okay(void *digest, void *signature, void *pubkey) 41 return RSA_verify(pubkey, signature, SIGNATURE_SIZE, digest);
|
/external/openssl/crypto/asn1/ |
x_spki.c | 69 ASN1_SIMPLE(NETSCAPE_SPKAC, pubkey, X509_PUBKEY),
|
t_spki.c | 80 i=OBJ_obj2nid(spki->spkac->pubkey->algor->algorithm); 83 pkey = X509_PUBKEY_get(spki->spkac->pubkey);
|
x_req.c | 97 ASN1_SIMPLE(X509_REQ_INFO, pubkey, X509_PUBKEY),
|
/external/openssl/crypto/x509/ |
x509rset.c | 81 return(X509_PUBKEY_set(&x->req_info->pubkey,pkey));
|
x509spki.c | 66 return(X509_PUBKEY_set(&(x->spkac->pubkey),pkey)); 73 return(X509_PUBKEY_get(x->spkac->pubkey));
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
wps_attr_build.c | 26 struct wpabuf *pubkey; local 29 pubkey = dh_init(dh_groups_get(WPS_DH_GROUP), &wps->dh_privkey); 30 pubkey = wpabuf_zeropad(pubkey, 192); 31 if (pubkey == NULL) { 38 wpabuf_put_be16(msg, wpabuf_len(pubkey)); 39 wpabuf_put_buf(msg, pubkey); 43 wps->dh_pubkey_r = pubkey; 46 wps->dh_pubkey_e = pubkey;
|
wps_common.c | 66 struct wpabuf *pubkey, *dh_shared; local 77 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r; 78 if (pubkey == NULL) { 83 dh_shared = dh_derive_shared(pubkey, wps->dh_privkey,
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/netscape/ |
NetscapeCertRequest.java | 52 PublicKey pubkey ; field in class:NetscapeCertRequest 119 pubkey = KeyFactory.getInstance(keyAlg.getObjectId().getId(), "BC") 138 pubkey = pub_key; 142 //content_der.add(new SubjectPublicKeyInfo(sigAlg, new RSAPublicKeyStructure(pubkey.getModulus(), pubkey.getPublicExponent()).getDERObject())); 180 return pubkey; 185 pubkey = value; 202 sig.initVerify(pubkey); 258 baos.write(pubkey.getEncoded());
|
/external/wpa_supplicant_8/src/wps/ |
wps_attr_build.c | 29 struct wpabuf *pubkey; local 38 pubkey = wpabuf_dup(wps->wps->dh_pubkey); 43 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); 44 pubkey = wpabuf_zeropad(pubkey, 192); 46 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { 49 wpabuf_free(pubkey); 53 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH own Public Key", pubkey); 56 wpabuf_put_be16(msg, wpabuf_len(pubkey)); 57 wpabuf_put_buf(msg, pubkey); [all...] |
/bootable/bootloader/legacy/include/boot/ |
boot.h | 138 int is_signature_okay(void *digest, void *signature, void *pubkey);
|
/external/openssl/crypto/x509v3/ |
v3_skey.c | 124 pk = ctx->subject_req->req_info->pubkey->public_key;
|
/external/openssl/apps/ |
spkac.c | 87 int verify=0,noout=0,pubkey=0; local 156 else if (strcmp(*argv,"-pubkey") == 0) 157 pubkey=1; 177 BIO_printf(bio_err," -pubkey output public key\n"); 295 if(pubkey) PEM_write_bio_PUBKEY(out, pkey);
|
/external/openssl/crypto/ec/ |
ec_pmeth.c | 174 const EC_POINT *pubkey = NULL; local 189 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec); 197 ret = ECDH_compute_key(key, outlen, pubkey, ctx->pkey->pkey.ec, 0);
|