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

1 2 3

  /external/boringssl/src/crypto/evp/
algorithm.c 71 EVP_PKEY *pkey; local
75 pkey = EVP_PKEY_CTX_get0_pkey(ctx->pctx);
76 if (!digest || !pkey) {
81 if (pkey->ameth->digest_sign_algorithm) {
82 switch (pkey->ameth->digest_sign_algorithm(ctx, algor)) {
98 pkey->ameth->pkey_id)) {
103 if (pkey->ameth->pkey_flags & ASN1_PKEY_SIGPARAM_NULL) {
115 EVP_PKEY *pkey) {
129 if (ameth == NULL || ameth->pkey_id != pkey->ameth->pkey_id) {
136 if (!pkey->ameth || !pkey->ameth->digest_verify_init_from_algorithm)
    [all...]
evp_extra_test.cc 447 ScopedEVP_PKEY pkey(EVP_PKEY_new());
448 if (!pkey || !EVP_PKEY_set1_RSA(pkey.get(), rsa.get())) {
451 return pkey;
455 ScopedEVP_PKEY pkey = LoadExampleRSAKey(); local
457 if (!pkey ||
458 !EVP_DigestSignInit(md_ctx.get(), NULL, EVP_sha256(), NULL, pkey.get()) ||
468 if (sig_len != (size_t)EVP_PKEY_size(pkey.get())) {
483 pkey.get()) ||
493 ScopedEVP_PKEY pkey = LoadExampleRSAKey() local
550 ScopedEVP_PKEY pkey = LoadExampleRSAKey(); local
641 ScopedEVP_PKEY pkey; local
663 ScopedEVP_PKEY pkey; local
    [all...]
  /external/boringssl/src/crypto/obj/
obj_xref.c 106 nid_triple key, *pkey; local
111 pkey = &key;
113 triple = bsearch(&pkey, sigoid_srt_xref,
  /external/boringssl/src/crypto/x509/
a_sign.c 69 ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey,
74 if (!EVP_DigestSignInit(&ctx, NULL, type, NULL, pkey))
87 EVP_PKEY *pkey; local
91 pkey = EVP_PKEY_CTX_get0_pkey(ctx->pctx);
104 outll=outl=EVP_PKEY_size(pkey);
x_pubkey.c 77 EVP_PKEY_free(pubkey->pkey);
89 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
97 if (pkey->ameth)
99 if (pkey->ameth->pub_encode)
101 if (!pkey->ameth->pub_encode(pk, pkey))
130 /* g_pubkey_lock is used to protect the initialisation of the |pkey| member of
143 if (key->pkey != NULL)
146 return EVP_PKEY_up_ref(key->pkey);
178 /* Check to see if another thread set key->pkey first *
239 EVP_PKEY *pkey; local
278 EVP_PKEY *pkey; local
316 EVP_PKEY *pkey; local
    [all...]
t_req.c 83 EVP_PKEY *pkey; local
126 pkey = X509_REQ_get_pubkey(x);
127 if (pkey == NULL) {
131 EVP_PKEY_print_public(bio, pkey, 16, NULL);
132 EVP_PKEY_free(pkey);
  /external/iproute2/ip/
iplink_ipoib.c 25 "Usage: ... ipoib [pkey PKEY] [mode {datagram | connected}]"
28 "PKEY := 0x8001-0xffff\n"
47 __u16 pkey, mode, umcast; local
50 if (matches(*argv, "pkey") == 0) {
52 if (get_u16(&pkey, *argv, 0))
53 invarg("pkey is invalid", *argv);
54 addattr_l(n, 1024, IFLA_IPOIB_PKEY, &pkey, 2);
94 fprintf(f, "pkey %#.4x ", rta_getattr_u16(tb[IFLA_IPOIB_PKEY]));
  /external/vboot_reference/firmware/lib21/
packed_key.c 49 const struct vb2_packed_key *pkey = local
56 if (pkey->c.magic != VB2_MAGIC_PACKED_KEY)
64 rv = vb2_verify_common_member(pkey, &min_offset,
65 pkey->key_offset, pkey->key_size);
74 if (pkey->c.struct_version_major != VB2_PACKED_KEY_VERSION_MAJOR)
78 key->hash_alg = pkey->hash_alg;
82 key->sig_alg = pkey->sig_alg;
89 (const uint8_t *)pkey + pkey->key_offset
    [all...]
  /system/keymaster/
asymmetric_key_factory.cpp 52 EVP_PKEY* pkey = local
53 d2i_PrivateKey(evp_key_type(), NULL /* pkey */, &tmp, key_material.key_material_size);
54 if (!pkey)
56 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey_deleter(pkey);
58 if (!asymmetric_key->EvpToInternal(pkey))
  /external/google-tv-pairing-protocol/cpp/src/polo/util/
certificateutil.cc 57 EVP_PKEY* pkey = PEM_read_bio_PrivateKey(bio, NULL, 0, &passphrase[0]); local
60 return pkey;
63 std::string CertificateUtil::PKEYToPEM(EVP_PKEY* pkey,
66 PEM_write_bio_PrivateKey(bio, pkey, EVP_des_ede3_cbc(), NULL, 0, 0,
80 EVP_PKEY* pkey = EVP_PKEY_new(); local
82 EVP_PKEY_assign_RSA(pkey, rsa);
83 return pkey;
86 X509* CertificateUtil::GenerateSelfSignedCert(EVP_PKEY* pkey,
94 X509_set_pubkey(x509, pkey);
101 X509_sign(x509, pkey, EVP_sha256())
    [all...]
  /external/google-tv-pairing-protocol/cpp/tests/polo/util/
certificateutiltest.cc 54 EVP_PKEY* pkey = EVP_PKEY_new(); local
76 EVP_PKEY_assign_RSA(pkey, rsa);
82 X509_set_pubkey(x509, pkey);
92 X509_sign(x509, pkey, EVP_sha256());
97 EVP_PKEY_free(pkey);
135 EVP_PKEY* pkey = CertificateUtil::PKEYFromPEM(pem, "testing"); local
137 ASSERT_TRUE(pkey);
139 RSA* rsa = EVP_PKEY_get1_RSA(pkey);
142 EVP_PKEY_free(pkey);
147 EVP_PKEY* pkey = EVP_PKEY_new() local
166 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); local
173 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); local
    [all...]
  /external/webrtc/webrtc/base/
opensslidentity.h 31 explicit OpenSSLKeyPair(EVP_PKEY* pkey) : pkey_(pkey) {
41 EVP_PKEY* pkey() const { return pkey_; } function in class:rtc::OpenSSLKeyPair
  /external/boringssl/src/ssl/
ssl_file.c 384 EVP_PKEY *pkey = NULL; local
399 pkey = PEM_read_bio_PrivateKey(in, NULL, ssl->ctx->default_passwd_callback,
403 pkey = d2i_PrivateKey_bio(in, NULL);
409 if (pkey == NULL) {
413 ret = SSL_use_PrivateKey(ssl, pkey);
414 EVP_PKEY_free(pkey);
506 EVP_PKEY *pkey = NULL; local
521 pkey = PEM_read_bio_PrivateKey(in, NULL, ctx->default_passwd_callback,
525 pkey = d2i_PrivateKey_bio(in, NULL);
531 if (pkey == NULL)
    [all...]
ssl_rsa.c 70 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);
104 EVP_PKEY *pkey; local
112 pkey = EVP_PKEY_new();
113 if (pkey == NULL) {
119 EVP_PKEY_assign_RSA(pkey, rsa);
121 ret = ssl_set_pkey(ssl->cert, pkey);
122 EVP_PKEY_free(pkey);
127 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey) {
128 if (!is_key_type_supported(pkey->type)) {
136 if (!EVP_PKEY_is_opaque(pkey) &
182 EVP_PKEY *pkey = d2i_PrivateKey(type, NULL, &p, (long)der_len); local
204 EVP_PKEY *pkey = X509_get_pubkey(x); local
261 EVP_PKEY *pkey; local
312 EVP_PKEY *pkey = d2i_PrivateKey(type, NULL, &p, (long)der_len); local
    [all...]
  /external/boringssl/src/tool/
client.cc 98 ScopedEVP_PKEY pkey(PEM_read_bio_PrivateKey(bio.get(), nullptr, nullptr,
100 return pkey;
233 ScopedEVP_PKEY pkey = LoadPrivateKey(args_map["-channel-id-key"]); local
234 if (!pkey || !SSL_CTX_set1_tls_channel_id(ctx.get(), pkey.get())) {
  /external/compiler-rt/lib/sanitizer_common/tests/
sanitizer_allocator_testlib.cc 50 static pthread_key_t pkey; member in namespace:__anon8450
54 pthread_setspecific(pkey, (void*)((uptr)v + 1));
64 pthread_key_create(&pkey, thread_dtor);
67 pthread_setspecific(pkey, (void*)1);
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLEngine.java 99 OpenSSLKey pkey = new OpenSSLKey(keyRef, this, id); local
101 return pkey.getPrivateKey();
  /system/extras/verity/
generate_verity_key.c 40 static int convert_to_mincrypt_format(RSA *rsa, RSAPublicKey *pkey)
63 pkey->len = RSANUMWORDS;
64 pkey->n0inv = 0 - BN_get_word(n0inv);
67 pkey->rr[i] = BN_get_word(rem);
69 pkey->n[i] = BN_get_word(rem);
71 pkey->exponent = BN_get_word(rsa->e);
89 RSAPublicKey pkey; local
97 if (convert_to_mincrypt_format(private_key, &pkey) < 0)
104 BIO_write(bfile, &pkey, sizeof(pkey));
118 EVP_PKEY *pkey = NULL; local
180 EVP_PKEY* pkey = EVP_PKEY_new(); local
    [all...]
verify_boot_signature.c 316 EVP_PKEY *pkey = NULL; local
328 if ((pkey = X509_get_pubkey(bs->certificate)) == NULL) {
333 if ((rsa = EVP_PKEY_get1_RSA(pkey)) == NULL) {
347 if (pkey) {
348 EVP_PKEY_free(pkey);
  /bionic/libc/kernel/uapi/rdma/
ib_user_sa.h 51 __be16 pkey; member in struct:ib_user_path_rec
  /external/kernel-headers/original/uapi/rdma/
ib_user_sa.h 63 __be16 pkey; member in struct:ib_user_path_rec
  /external/libweave/examples/provider/
event_http_server.cc 87 std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)> pkey{EVP_PKEY_new(),
89 CHECK(pkey); variable
90 GenerateX509(x509.get(), pkey.get());
91 CHECK_EQ(1, SSL_CTX_use_PrivateKey(ctx.get(), pkey.get())) << GetSslError();
107 void HttpServerImpl::GenerateX509(X509* x509, EVP_PKEY* pkey) {
116 CHECK(pkey) << GetSslError();
121 CHECK(EVP_PKEY_assign_RSA(pkey, rsa)) << GetSslError();
123 X509_set_pubkey(x509, pkey);
125 CHECK(X509_sign(x509, pkey, EVP_sha256())) << GetSslError();
  /external/opencv3/3rdparty/libtiff/
tif_dirinfo.c 487 TIFFField* pkey = &key; local
512 TIFFField* pkey = &key; local
    [all...]
  /external/wpa_supplicant_8/src/crypto/
crypto_gnutls.c 36 u8 pkey[8], next, tmp; local
43 pkey[i] = (tmp >> i) | next | 1;
46 pkey[i] = next | 1;
49 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8));
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/rdma/
ib_user_sa.h 63 __be16 pkey; member in struct:ib_user_path_rec

Completed in 7473 milliseconds

1 2 3