Home
last modified time | relevance | path

Searched refs:public_key (Results 1 – 25 of 25) sorted by relevance

/external/vboot_reference/tests/
Dvboot_common2_tests.c43 static void VerifyDataTest(const VbPublicKey *public_key, in VerifyDataTest() argument
54 rsa = PublicKeyToRSA(public_key); in VerifyDataTest()
79 static void VerifyDigestTest(const VbPublicKey *public_key, in VerifyDigestTest() argument
88 rsa = PublicKeyToRSA(public_key); in VerifyDigestTest()
90 (int)public_key->algorithm); in VerifyDigestTest()
118 static void VerifyKernelPreambleTest(const VbPublicKey *public_key, in VerifyKernelPreambleTest() argument
129 rsa = PublicKeyToRSA(public_key); in VerifyKernelPreambleTest()
218 VbPublicKey *public_key = NULL; in test_algorithm() local
230 public_key = PublicKeyReadKeyb(filename, key_algorithm, 1); in test_algorithm()
231 if (!public_key) { in test_algorithm()
[all …]
Dvboot_common3_tests.c30 static void KeyBlockVerifyTest(const VbPublicKey *public_key, in KeyBlockVerifyTest() argument
47 TEST_EQ(KeyBlockVerify(hdr, hsize, public_key, 0), 0, in KeyBlockVerifyTest()
109 TEST_NEQ(KeyBlockVerify(h, hsize, public_key, 0), 0, in KeyBlockVerifyTest()
115 TEST_NEQ(KeyBlockVerify(h, hsize, public_key, 0), 0, in KeyBlockVerifyTest()
120 TEST_NEQ(KeyBlockVerify(h, hsize, public_key, 0), 0, in KeyBlockVerifyTest()
125 TEST_NEQ(KeyBlockVerify(h, hsize, public_key, 1), 0, in KeyBlockVerifyTest()
166 static void VerifyFirmwarePreambleTest(const VbPublicKey *public_key, in VerifyFirmwarePreambleTest() argument
178 rsa = PublicKeyToRSA(public_key); in VerifyFirmwarePreambleTest()
Dvb20_common3_tests.c32 static void test_verify_keyblock(const VbPublicKey *public_key, in test_verify_keyblock() argument
47 TEST_SUCC(vb2_unpack_key(&key, (uint8_t *)public_key, in test_verify_keyblock()
48 public_key->key_offset + public_key->key_size), in test_verify_keyblock()
172 static void test_verify_fw_preamble(const VbPublicKey *public_key, in test_verify_fw_preamble() argument
189 TEST_SUCC(vb2_unpack_key(&rsa, (uint8_t *)public_key, in test_verify_fw_preamble()
190 public_key->key_offset + public_key->key_size), in test_verify_fw_preamble()
/external/boringssl/src/crypto/x509/
Dx_pubkey.c84 ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING)
150 if (key->public_key == NULL) goto error; in X509_PUBKEY_get()
358 if (pub->public_key->data) in X509_PUBKEY_set0_param()
359 OPENSSL_free(pub->public_key->data); in X509_PUBKEY_set0_param()
360 pub->public_key->data = penc; in X509_PUBKEY_set0_param()
361 pub->public_key->length = penclen; in X509_PUBKEY_set0_param()
363 pub->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); in X509_PUBKEY_set0_param()
364 pub->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT; in X509_PUBKEY_set0_param()
378 *pk = pub->public_key->data; in X509_PUBKEY_get0_param()
379 *ppklen = pub->public_key->length; in X509_PUBKEY_get0_param()
Dt_x509.c279 if (!EVP_Digest(x->cert_info->key->public_key->data, in X509_ocspid_print()
280 x->cert_info->key->public_key->length, in X509_ocspid_print()
Dx509_cmp.c315 return x->cert_info->key->public_key; in X509_get0_pubkey_bitstr()
/external/boringssl/src/crypto/evp/
Dp_dsa_asn1.c78 ASN1_INTEGER *public_key = NULL; in dsa_pub_decode() local
108 public_key = d2i_ASN1_INTEGER(NULL, &p, pklen); in dsa_pub_decode()
109 if (public_key == NULL) { in dsa_pub_decode()
114 dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL); in dsa_pub_decode()
120 ASN1_INTEGER_free(public_key); in dsa_pub_decode()
125 ASN1_INTEGER_free(public_key); in dsa_pub_decode()
Dp_ec_asn1.c392 const EC_POINT *public_key; in do_EC_KEY_print() local
409 public_key = EC_KEY_get0_public_key(x); in do_EC_KEY_print()
410 if (public_key != NULL) { in do_EC_KEY_print()
412 group, public_key, EC_KEY_get_conv_form(x), NULL, 0, ctx); in do_EC_KEY_print()
423 EC_POINT_point2oct(group, public_key, EC_KEY_get_conv_form(x), in do_EC_KEY_print()
/external/openssh/
Dkexecdhs.c68 const EC_POINT *public_key; in input_kex_ecdh_init() local
178 public_key = EC_KEY_get0_public_key(server_key); in input_kex_ecdh_init()
182 (r = sshpkt_put_ec(ssh, public_key, group)) != 0 || in input_kex_ecdh_init()
Dkexecdhc.c60 const EC_POINT *public_key; in kexecdh_client() local
72 public_key = EC_KEY_get0_public_key(client_key); in kexecdh_client()
75 (r = sshpkt_put_ec(ssh, public_key, group)) != 0 || in kexecdh_client()
DPROTOCOL.certkeys108 string public_key
Dpkcs11.h965 ck_object_handle_t *public_key,
Dssh-keygen.0492 key: public_key
496 sha1: public_key
/external/boringssl/src/crypto/x509v3/
Dv3_skey.c127 pk = ctx->subject_req->req_info->pubkey->public_key; in s2i_skey_id()
128 else pk = ctx->subject_cert->cert_info->key->public_key; in s2i_skey_id()
/external/smali/baksmali/src/main/java/org/jf/baksmali/
Dbaksmali.java96 Integer public_key = Integer.decode(attr.getValue("id")); in disassembleDexFile() local
104 options.resourceIds.put(public_key, public_val); in disassembleDexFile()
/external/wpa_supplicant_8/src/tls/
Dx509v3.h58 u8 *public_key; member
Dx509v3.c56 os_free(cert->public_key); in x509_certificate_free()
276 os_free(cert->public_key); in x509_parse_public_key()
277 cert->public_key = os_malloc(hdr.length - 1); in x509_parse_public_key()
278 if (cert->public_key == NULL) { in x509_parse_public_key()
283 os_memcpy(cert->public_key, pos + 1, hdr.length - 1); in x509_parse_public_key()
286 cert->public_key, cert->public_key_len); in x509_parse_public_key()
1602 pk = crypto_public_key_import(issuer->public_key, in x509_certificate_check_signature()
Dtlsv1_common.c193 *pk = crypto_public_key_import(cert->public_key, cert->public_key_len); in tls_parse_cert()
/external/wpa_supplicant_8/src/wps/
Dwps_attr_parse.h71 const u8 *public_key; member
Dwps_validate.c612 static int wps_validate_public_key(const u8 *public_key, size_t len, in wps_validate_public_key() argument
615 if (public_key == NULL) { in wps_validate_public_key()
1306 wps_validate_public_key(attr.public_key, attr.public_key_len, 1) || in wps_validate_m1()
1362 wps_validate_public_key(attr.public_key, attr.public_key_len, 1) || in wps_validate_m2()
Dwps_attr_parse.c499 attr->public_key = pos; in wps_set_attr()
Dwps_enrollee.c981 if (wps_process_pubkey(wps, attr->public_key, attr->public_key_len) || in wps_process_m2()
Dwps_registrar.c2565 wps_process_pubkey(wps, attr->public_key, attr->public_key_len) || in wps_process_m1()
2613 addr[0] = attr->public_key; in wps_process_m1()
/external/boringssl/src/ssl/
Ds3_clnt.c2262 uint8_t *public_key = NULL, *derp, *der_sig = NULL; in ssl3_send_channel_id() local
2306 public_key = OPENSSL_malloc(public_key_len); in ssl3_send_channel_id()
2307 if (!public_key) { in ssl3_send_channel_id()
2312 derp = public_key; in ssl3_send_channel_id()
2352 memcpy(d, public_key + 1, 64); in ssl3_send_channel_id()
2370 OPENSSL_free(public_key); in ssl3_send_channel_id()
/external/boringssl/src/include/openssl/
Dx509.h125 ASN1_BIT_STRING *public_key; member