HomeSort by relevance Sort by last modified time
    Searched defs:pubkey (Results 1 - 25 of 33) sorted by null

1 2

  /external/boringssl/src/crypto/x509/
x_pubkey.c 76 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; local
77 EVP_PKEY_free(pubkey->pkey);
  /external/conscrypt/src/main/java/org/conscrypt/
ChainStrengthAnalyzer.java 69 Object pubkey = cert.getPublicKey(); local
70 if (pubkey instanceof RSAPublicKey) {
71 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength();
76 } else if (pubkey instanceof ECPublicKey) {
78 ((ECPublicKey) pubkey).getParams().getCurve().getField().getFieldSize();
83 } else if (pubkey instanceof DSAPublicKey) {
84 int pLength = ((DSAPublicKey) pubkey).getParams().getP().bitLength();
85 int qLength = ((DSAPublicKey) pubkey).getParams().getQ().bitLength();
93 throw new CertificateException("Rejecting unknown key class " + pubkey.getClass().getName());
  /external/boringssl/src/crypto/evp/
p_ec.c 155 const EC_POINT *pubkey = NULL; local
171 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
178 ret = ECDH_compute_key(key, outlen, pubkey, eckey, 0);
  /external/libchrome/crypto/
rsa_private_key_unittest.cc 367 std::vector<uint8_t> pubkey; local
369 ASSERT_TRUE(key_pair->ExportPublicKey(&pubkey));
377 ASSERT_EQ(pubkey, pubkey_copy);
  /external/vboot_reference/futility/
cmd_vbutil_key.c 73 VbPublicKey *pubkey; local
81 pubkey = PublicKeyReadKeyb(infile, algorithm, version);
82 if (pubkey) {
83 if (0 != PublicKeyWrite(outfile, pubkey)) {
87 free(pubkey);
108 VbPublicKey *pubkey; local
116 pubkey = PublicKeyRead(infile);
117 if (pubkey) {
119 printf("Algorithm: %" PRIu64 " %s\n", pubkey->algorithm,
120 (pubkey->algorithm < kNumAlgorithms
    [all...]
cmd_create.c 80 VbPublicKey *pubkey = 0; local
136 pubkey = PublicKeyAlloc(keyb_size, vb1_algorithm, opt_version);
137 if (!pubkey)
139 memcpy(GetPublicKeyData(pubkey), keyb_data, keyb_size);
143 if (0 != PublicKeyWrite(outfile, pubkey)) {
153 free(pubkey);
162 struct vb2_public_key *pubkey = 0; local
216 if (vb2_public_key_alloc(&pubkey, sig_alg)) {
231 pubkey_buf = vb2_public_key_packed_data(pubkey);
235 if (vb2_unpack_key_data(pubkey, pubkey_buf, keyb_size))
    [all...]
cmd_show.c 47 static void show_key(VbPublicKey *pubkey, const char *sp)
49 printf("%sAlgorithm: %" PRIu64 " %s\n", sp, pubkey->algorithm,
50 (pubkey->algorithm < kNumAlgorithms ?
51 algo_strings[pubkey->algorithm] : "(invalid)"));
52 printf("%sKey Version: %" PRIu64 "\n", sp, pubkey->key_version);
54 PrintPubKeySha1Sum(pubkey);
94 VbPublicKey *pubkey = (VbPublicKey *)state->my_area->buf; local
96 if (!PublicKeyLooksOkay(pubkey, state->my_area->len)) {
102 show_key(pubkey, " ");
131 VbPublicKey *pubkey; local
    [all...]
vb1_helper.c 721 VbPublicKey *pubkey = (VbPublicKey *)buf; local
747 if (PublicKeyLooksOkay(pubkey, len))
  /system/security/keystore-engine/
eng_keystore.cpp 119 uint8_t *pubkey = NULL; local
121 int32_t ret = service->get_pubkey(String16(key_id), &pubkey, &pubkeyLen);
124 free(pubkey);
128 free(pubkey);
132 const unsigned char* tmp = reinterpret_cast<const unsigned char*>(pubkey);
134 free(pubkey);
136 ALOGW("Cannot convert pubkey");
android_engine.cpp 413 uint8_t *pubkey = NULL; local
415 int32_t ret = service->get_pubkey(String16(key_id), &pubkey, &pubkey_len);
424 const uint8_t *inp = pubkey;
426 free(pubkey);
428 ALOGW("Cannot convert pubkey");
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/
NetscapeCertRequest.java 53 PublicKey pubkey ; field in class:NetscapeCertRequest
118 pubkey = KeyFactory.getInstance(keyAlg.getAlgorithm().getId(), "BC")
137 pubkey = pub_key;
141 //content_der.add(new SubjectPublicKeyInfo(sigAlg, new RSAPublicKeyStructure(pubkey.getModulus(), pubkey.getPublicExponent()).getDERObject()));
186 return pubkey;
191 pubkey = value;
208 sig.initVerify(pubkey);
264 baos.write(pubkey.getEncoded());
  /external/conscrypt/src/main/java/org/conscrypt/ct/
CTLogStoreImpl.java 203 PublicKey pubkey; local
205 pubkey = OpenSSLKey.fromPublicKeyPemInputStream(new StringBufferInputStream(
215 return new CTLogInfo(pubkey, description, url);
  /external/vboot_reference/utility/
dumpRSAPublicKey.c 140 RSA* pubkey = NULL; local
175 if (!(pubkey = EVP_PKEY_get1_RSA(key))) {
180 /* Read the pubkey in .PEM format. */
181 if (!(pubkey = PEM_read_RSA_PUBKEY(fp, NULL, NULL, NULL))) {
187 if (check(pubkey)) {
188 output(pubkey);
193 RSA_free(pubkey);
  /external/curl/lib/vtls/
cyassl.c 496 curl_asn1Element *pubkey; local
514 pubkey = &x509_parsed.subjectPublicKeyInfo;
515 if(!pubkey->header || pubkey->end <= pubkey->header) {
522 (const unsigned char *)pubkey->header,
523 (size_t)(pubkey->end - pubkey->header));
mbedtls.c 514 unsigned char pubkey[PUB_DER_MAX_BYTES]; local
538 size = mbedtls_pk_write_pubkey_der(&p->pk, pubkey, PUB_DER_MAX_BYTES);
550 &pubkey[PUB_DER_MAX_BYTES - size], size);
polarssl.c 477 unsigned char pubkey[PUB_DER_MAX_BYTES]; local
504 size = pk_write_pubkey_der(&p->pk, pubkey, PUB_DER_MAX_BYTES);
516 &pubkey[PUB_DER_MAX_BYTES - size], size);
nss.c 964 SECKEYPublicKey *pubkey = CERT_ExtractPublicKey(cert); local
965 if(pubkey) {
967 SECItem *cert_der = PK11_DEREncodePublicKey(pubkey);
974 SECKEY_DestroyPublicKey(pubkey);
    [all...]
openssl.c 2391 EVP_PKEY *pubkey=NULL; local
    [all...]
  /external/wpa_supplicant_8/src/wps/
wps_attr_build.c 23 struct wpabuf *pubkey; local
39 pubkey = wpabuf_dup(wps->wps->dh_pubkey);
62 pubkey = wpabuf_dup(wps->wps->ap_nfc_dh_pubkey);
63 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey);
68 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey);
69 pubkey = wpabuf_zeropad(pubkey, 192);
71 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) {
74 wpabuf_free(pubkey);
78 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH own Public Key", pubkey);
    [all...]
wps_common.c 64 struct wpabuf *pubkey, *dh_shared; local
75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r;
76 if (pubkey == NULL) {
82 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH peer Public Key", pubkey);
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey);
410 const struct wpabuf *pubkey,
419 if (wps_build_oob_dev_pw(data, dev_pw_id, pubkey,
621 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey,
626 if (pubkey == NULL || dev_pw == NULL)
629 ret = wps_build_nfc_pw_token(id, pubkey, dev_pw)
    [all...]
  /system/extras/verity/
KeystoreSigner.java 100 PublicKey pubkey = Utils.loadDERPublicKey(der); local
101 BootKey k = new BootKey(pubkey);
  /external/ipsec-tools/src/racoon/
eaytest.c 137 char *pubkey = local
156 printf ("%s", pubkey);
172 printf("Verification with correct pubkey: ");
173 if (rsa_verify_with_pubkey (&src, sig, pubkey) != 0) {
182 printf("Verification with wrong pubkey: ");
  /external/wpa_supplicant_8/src/crypto/
crypto_openssl.c 606 struct wpabuf *pubkey = NULL, *privkey = NULL; local
628 pubkey = wpabuf_alloc(publen);
629 if (pubkey == NULL)
636 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen));
640 *publ = pubkey;
644 wpabuf_clear_free(pubkey);
  /system/keymaster/
android_keymaster_test.cpp 1199 string pubkey; local
1300 string pubkey; local
    [all...]
  /external/curl/src/
tool_cfgable.h 118 char *pubkey; member in struct:OperationConfig

Completed in 2010 milliseconds

1 2