Searched refs:pub_key (Results 1 - 25 of 31) sorted by relevance

12

/external/vboot_reference/scripts/image_signing/
H A Dinsert_au_publickey.sh16 local pub_key="$2"
28 sudo cp "$pub_key" "$rootfs/$key_location/update-payload-key.pub.pem"
/external/boringssl/src/crypto/fipsmodule/ec/
H A Dec_key.c153 EC_POINT_free(r->pub_key);
178 if (src->pub_key && src->group) {
179 EC_POINT_free(dest->pub_key);
180 dest->pub_key = EC_POINT_dup(src->pub_key, src->group);
181 if (dest->pub_key == NULL) {
246 assert(key->pub_key == NULL);
275 return key->pub_key;
278 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) { argument
284 if (EC_GROUP_cmp(key->group, pub_key
419 EC_POINT *pub_key = NULL; local
[all...]
/external/boringssl/include/openssl/
H A Decdh.h82 // ECDH_compute_key calculates the shared key between |pub_key| and |priv_key|.
89 void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *priv_key,
H A Ddh.h98 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
183 // DH_check_pub_key checks the suitability of |pub_key| as a public key for the
187 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
253 BIGNUM *pub_key; // g^x mod p member in struct:dh_st
H A Ddsa.h104 // DSA_set0_key sets |dsa|'s public and private key to |pub_key| and |priv_key|,
108 // |priv_key| may be NULL, but |pub_key| must either be non-NULL or already
110 OPENSSL_EXPORT int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key);
398 BIGNUM *pub_key; // y public key member in struct:dsa_st
/external/boringssl/src/include/openssl/
H A Decdh.h82 // ECDH_compute_key calculates the shared key between |pub_key| and |priv_key|.
89 void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *priv_key,
H A Ddh.h98 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
183 // DH_check_pub_key checks the suitability of |pub_key| as a public key for the
187 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
253 BIGNUM *pub_key; // g^x mod p member in struct:dh_st
H A Ddsa.h104 // DSA_set0_key sets |dsa|'s public and private key to |pub_key| and |priv_key|,
108 // |priv_key| may be NULL, but |pub_key| must either be non-NULL or already
110 OPENSSL_EXPORT int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key);
398 BIGNUM *pub_key; // y public key member in struct:dsa_st
/external/boringssl/src/crypto/dh/
H A Ddh.c110 BN_clear_free(dh->pub_key);
120 *out_pub_key = dh->pub_key;
127 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) { argument
128 if (pub_key != NULL) {
129 BN_free(dh->pub_key);
130 dh->pub_key = pub_key;
296 BIGNUM *pub_key = NULL, *priv_key = NULL; local
318 if (dh->pub_key == NULL) {
319 pub_key
[all...]
H A Dcheck.c62 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *out_flags) { argument
73 // Check |pub_key| is greater than 1.
79 if (BN_cmp(pub_key, tmp) <= 0) {
83 // Check |pub_key| is less than |dh->p| - 1.
88 if (BN_cmp(pub_key, tmp) >= 0) {
93 // Check |pub_key|^|dh->q| is 1 mod |dh->p|. This is necessary for RFC 5114
96 if (!BN_mod_exp_mont(tmp, pub_key, dh->q, dh->p, ctx, NULL)) {
H A Ddh_test.cc158 BN_print_fp(stdout, a->pub_key);
167 BN_print_fp(stdout, b->pub_key);
171 int ret = DH_compute_key(key1.data(), b->pub_key, a.get());
184 ret = DH_compute_key(key2.data(), a->pub_key, b.get());
296 bssl::UniquePtr<BIGNUM> pub_key(
298 if (!dh || !pub_key || !DH_generate_key(dh.get())) {
303 if (!DH_check_pub_key(dh.get(), pub_key.get(), &flags)) {
312 if (DH_compute_key(result.data(), pub_key.get(), dh.get()) >= 0) {
/external/boringssl/src/crypto/evp/
H A Dp_dsa_asn1.c85 dsa->pub_key = BN_new();
86 if (dsa->pub_key == NULL) {
90 if (!BN_parse_asn1_unsigned(key, dsa->pub_key) ||
118 !BN_marshal_asn1(&key_bitstring, dsa->pub_key) ||
139 dsa->pub_key = BN_new();
140 if (dsa->priv_key == NULL || dsa->pub_key == NULL) {
154 !BN_mod_exp_mont_consttime(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p,
241 return BN_cmp(b->pkey.dsa->pub_key, a->pkey.dsa->pub_key) == 0;
H A Dprint.c223 const BIGNUM *priv_key, *pub_key; local
230 pub_key = NULL;
232 pub_key = x->pub_key;
246 update_buflen(pub_key, &buf_len);
262 !bn_print(bp, "pub: ", pub_key, m, off) ||
/external/boringssl/src/crypto/ecdh/
H A Decdh.c80 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument
107 if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv, ctx)) {
H A Decdh_test.cc86 bssl::UniquePtr<EC_POINT> pub_key(EC_POINT_new(group.get()));
87 ASSERT_TRUE(pub_key);
92 ASSERT_TRUE(EC_POINT_set_affine_coordinates_GFp(group.get(), pub_key.get(),
96 ASSERT_TRUE(EC_KEY_set_public_key(key.get(), pub_key.get()));
/external/boringssl/src/crypto/dsa/
H A Ddsa.c121 BN_clear_free(dsa->pub_key);
137 *out_pub_key = dsa->pub_key;
157 int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key) { argument
158 if (dsa->pub_key == NULL && pub_key == NULL) {
162 if (pub_key != NULL) {
163 BN_free(dsa->pub_key);
164 dsa->pub_key = pub_key;
473 BIGNUM *pub_key local
[all...]
H A Ddsa_asn1.c121 !parse_integer(&child, &ret->pub_key) ||
136 !marshal_integer(&child, dsa->pub_key) ||
200 !parse_integer(&child, &ret->pub_key) ||
220 !marshal_integer(&child, dsa->pub_key) ||
H A Ddsa_test.cc177 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), nullptr);
180 dsa->pub_key == nullptr || dsa->priv_key == nullptr) {
/external/boringssl/src/crypto/fipsmodule/ecdsa/
H A Decdsa_test.cc345 bssl::UniquePtr<EC_POINT> pub_key(EC_POINT_new(group.get()));
346 ASSERT_TRUE(pub_key);
351 group.get(), pub_key.get(), x.get(), y.get(), nullptr));
352 ASSERT_TRUE(EC_KEY_set_public_key(key.get(), pub_key.get()));
391 bssl::UniquePtr<EC_POINT> pub_key(EC_POINT_new(group.get()));
392 ASSERT_TRUE(pub_key);
396 group.get(), pub_key.get(), x.get(), y.get(), nullptr));
397 ASSERT_TRUE(EC_KEY_set_public_key(key.get(), pub_key.get()));
H A Decdsa.c221 const EC_POINT *pub_key = EC_KEY_get0_public_key(eckey); local
222 if (group == NULL || pub_key == NULL || sig == NULL) {
278 if (!ec_point_mul_scalar_public(group, point, &u1, pub_key, &u2, ctx)) {
/external/boringssl/src/crypto/ec_extra/
H A Dec_asn1.c131 ret->pub_key = EC_POINT_new(group);
132 if (ret->priv_key == NULL || ret->pub_key == NULL) {
153 !EC_POINT_oct2point(group, ret->pub_key, CBS_data(&public_key),
166 if (!EC_POINT_mul(group, ret->pub_key, ret->priv_key, NULL, NULL, NULL)) {
222 if (!(enc_flags & EC_PKEY_NO_PUBKEY) && key->pub_key != NULL) {
229 !EC_POINT_point2cbb(&public_key, key->group, key->pub_key,
509 if (ret->pub_key == NULL &&
510 (ret->pub_key = EC_POINT_new(ret->group)) == NULL) {
514 if (!EC_POINT_oct2point(ret->group, ret->pub_key, *inp, len, NULL)) {
533 buf_len = EC_POINT_point2oct(key->group, key->pub_key, ke
[all...]
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_openssl.c668 publen = BN_num_bytes(dh->pub_key);
677 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen));
694 const BIGNUM *priv_key = NULL, *pub_key = NULL;
715 DH_get0_key(dh, &pub_key, &priv_key);
716 publen = BN_num_bytes(pub_key);
725 BN_bn2bin(pub_key, wpabuf_put(pubkey, publen));
764 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL);
765 if (dh->pub_key == NULL)
778 BIGNUM *p = NULL, *g, *priv_key = NULL, *pub_key = NULL;
793 pub_key
818 BIGNUM *pub_key; local
[all...]
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_openssl.c668 publen = BN_num_bytes(dh->pub_key);
677 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen));
694 const BIGNUM *priv_key = NULL, *pub_key = NULL;
715 DH_get0_key(dh, &pub_key, &priv_key);
716 publen = BN_num_bytes(pub_key);
725 BN_bn2bin(pub_key, wpabuf_put(pubkey, publen));
764 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL);
765 if (dh->pub_key == NULL)
778 BIGNUM *p = NULL, *g, *priv_key = NULL, *pub_key = NULL;
793 pub_key
818 BIGNUM *pub_key; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_openssl.c668 publen = BN_num_bytes(dh->pub_key);
677 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen));
694 const BIGNUM *priv_key = NULL, *pub_key = NULL;
715 DH_get0_key(dh, &pub_key, &priv_key);
716 publen = BN_num_bytes(pub_key);
725 BN_bn2bin(pub_key, wpabuf_put(pubkey, publen));
764 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL);
765 if (dh->pub_key == NULL)
778 BIGNUM *p = NULL, *g, *priv_key = NULL, *pub_key = NULL;
793 pub_key
818 BIGNUM *pub_key; local
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/
H A DNetscapeCertRequest.java131 PublicKey pub_key) throws NoSuchAlgorithmException,
137 pubkey = pub_key;
128 NetscapeCertRequest( String challenge, AlgorithmIdentifier signing_alg, PublicKey pub_key) argument

Completed in 911 milliseconds

12