/external/vboot_reference/tests/ |
D | vboot_common2_tests.c | 44 const VbPrivateKey *private_key) in VerifyDataTest() argument 51 sig = CalculateSignature(test_data, test_size, private_key); in VerifyDataTest() 80 const VbPrivateKey *private_key) in VerifyDigestTest() argument 87 sig = CalculateSignature(test_data, sizeof(test_data), private_key); in VerifyDigestTest() 119 const VbPrivateKey *private_key) in VerifyKernelPreambleTest() argument 131 0, 0, 0, 0, private_key); in VerifyKernelPreambleTest() 150 ReSignKernelPreamble(h, private_key); in VerifyKernelPreambleTest() 156 ReSignKernelPreamble(h, private_key); in VerifyKernelPreambleTest() 162 ReSignKernelPreamble(h, private_key); in VerifyKernelPreambleTest() 168 ReSignKernelPreamble(h, private_key); in VerifyKernelPreambleTest() [all …]
|
D | vb20_common3_tests.c | 33 const VbPrivateKey *private_key, in test_verify_keyblock() argument 52 KeyBlockCreate(data_key, private_key, 0x1234); in test_verify_keyblock() 80 resign_keyblock(h, private_key); in test_verify_keyblock() 87 resign_keyblock(h, private_key); in test_verify_keyblock() 94 resign_keyblock(h, private_key); in test_verify_keyblock() 100 resign_keyblock(h, private_key); in test_verify_keyblock() 107 resign_keyblock(h, private_key); in test_verify_keyblock() 114 resign_keyblock(h, private_key); in test_verify_keyblock() 136 resign_keyblock(h, private_key); in test_verify_keyblock() 143 resign_keyblock(h, private_key); in test_verify_keyblock() [all …]
|
D | vboot_common3_tests.c | 31 const VbPrivateKey *private_key, in KeyBlockVerifyTest() argument 38 hdr = KeyBlockCreate(data_key, private_key, 0x1234); in KeyBlockVerifyTest() 167 const VbPrivateKey *private_key, in VerifyFirmwarePreambleTest() argument 180 private_key, 0x5678); in VerifyFirmwarePreambleTest() 199 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest() 205 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest() 211 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest() 217 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest() 224 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest() 230 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest() [all …]
|
D | vb20_common2_tests.c | 143 VbPrivateKey *private_key = NULL; in test_algorithm() local 150 private_key = PrivateKeyReadPem(filename, key_algorithm); in test_algorithm() 151 if (!private_key) { in test_algorithm() 166 CalculateSignature(test_data, sizeof(test_data), private_key); in test_algorithm() 175 free(private_key); in test_algorithm()
|
/external/libchrome/crypto/ |
D | nss_key_util_unittest.cc | 38 ScopedSECKEYPrivateKey private_key; in TEST_F() local 41 &private_key)); in TEST_F() 44 EXPECT_EQ(rsaKey, SECKEY_GetPrivateKeyType(private_key.get())); in TEST_F() 46 PK11_GetPrivateModulusLen(private_key.get())); in TEST_F() 52 ScopedSECKEYPrivateKey private_key; in TEST_F() local 55 &private_key)); in TEST_F() 64 EXPECT_EQ(private_key->pkcs11ID, private_key2->pkcs11ID); in TEST_F() 70 ScopedSECKEYPrivateKey private_key; in TEST_F() local 73 &private_key)); in TEST_F() 80 PK11_DestroyTokenObject(private_key->pkcs11Slot, private_key->pkcs11ID); in TEST_F()
|
D | nss_key_util.cc | 63 ScopedSECKEYPrivateKey* private_key) { in GenerateRSAKeyPairNSS() argument 70 private_key->reset(PK11_GenerateKeyPair(slot, CKM_RSA_PKCS_KEY_PAIR_GEN, in GenerateRSAKeyPairNSS() 73 if (!*private_key) in GenerateRSAKeyPairNSS()
|
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/ |
D | _server_ssl_cert_config_test.py | 76 private_key=None, argument 82 private_key=private_key, 176 private_key=None, argument 182 private_key=private_key, 193 private_key=CLIENT_KEY_2_PEM, 207 private_key=CLIENT_KEY_2_PEM, 222 private_key=CLIENT_KEY_2_PEM, 237 private_key=CLIENT_KEY_1_PEM, 251 private_key=CLIENT_KEY_2_PEM, 265 private_key=CLIENT_KEY_2_PEM, [all …]
|
/external/grpc-grpc/src/core/lib/security/credentials/ssl/ |
D | ssl_credentials.cc | 41 gpr_free((void*)kp[i].private_key); in grpc_tsi_ssl_pem_key_cert_pairs_destroy() 100 GPR_ASSERT(pem_key_cert_pair->private_key != nullptr); in ssl_build_config() 106 config->pem_key_cert_pair->private_key = in ssl_build_config() 107 gpr_strdup(pem_key_cert_pair->private_key); in ssl_build_config() 174 GPR_ASSERT(pem_key_cert_pairs[i].private_key != nullptr); in grpc_convert_grpc_to_tsi_cert_pairs() 177 tsi_pairs[i].private_key = gpr_strdup(pem_key_cert_pairs[i].private_key); in grpc_convert_grpc_to_tsi_cert_pairs() 213 GPR_ASSERT(pem_key_cert_pairs[i].private_key != nullptr); in grpc_ssl_server_certificate_config_create() 217 config->pem_key_cert_pairs[i].private_key = in grpc_ssl_server_certificate_config_create() 218 gpr_strdup(pem_key_cert_pairs[i].private_key); in grpc_ssl_server_certificate_config_create() 227 gpr_free((void*)config->pem_key_cert_pairs[i].private_key); in grpc_ssl_server_certificate_config_destroy()
|
/external/python/oauth2client/tests/ |
D | test_jwt.py | 67 private_key = datafile(private_key_file) 72 signer = self.signer.from_string(private_key, 95 private_key = datafile('privatekey.' + self.format_) 96 signer = self.signer.from_string(private_key) 156 private_key = datafile('privatekey.' + self.format_) 171 signer = self.signer.from_string(private_key) 242 private_key = datafile('privatekey.' + self.format_) 243 signer = crypt.Signer.from_string(private_key) 249 credentials._private_key_pkcs8_pem = private_key 251 credentials._private_key_pkcs12 = private_key
|
/external/boringssl/src/tool/ |
D | generate_ed25519.cc | 60 uint8_t public_key[32], private_key[64]; in GenerateEd25519Key() local 61 ED25519_keypair(public_key, private_key); in GenerateEd25519Key() 64 WriteToFile(args_map["-out-private"], private_key, in GenerateEd25519Key() 65 sizeof(private_key)); in GenerateEd25519Key()
|
/external/boringssl/src/crypto/curve25519/ |
D | ed25519_test.cc | 29 std::vector<uint8_t> private_key, public_key, message, expected_signature; in TEST() local 30 ASSERT_TRUE(t->GetBytes(&private_key, "PRIV")); in TEST() 31 ASSERT_EQ(64u, private_key.size()); in TEST() 40 private_key.data())); in TEST()
|
D | x25519_test.cc | 79 uint8_t out[32], private_key[32]; in TEST() local 80 OPENSSL_memset(private_key, 0x11, sizeof(private_key)); in TEST() 83 EXPECT_FALSE(X25519(out, private_key, kSmallOrderPoint)) in TEST()
|
D | spake25519.c | 376 OPENSSL_memcpy(ctx->private_key, private_tmp, sizeof(ctx->private_key)); in SPAKE2_generate_msg() 379 x25519_ge_scalarmult_base(&P, ctx->private_key); in SPAKE2_generate_msg() 505 x25519_ge_scalarmult(&dh_shared, ctx->private_key, &Q_ext); in SPAKE2_process_msg()
|
/external/boringssl/src/crypto/evp/ |
D | p_ed25519_asn1.c | 127 CBB pkcs8, algorithm, oid, private_key, inner; in ed25519_priv_encode() local 133 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in ed25519_priv_encode() 134 !CBB_add_asn1(&private_key, &inner, CBS_ASN1_OCTETSTRING) || in ed25519_priv_encode() 180 EVP_PKEY *EVP_PKEY_new_ed25519_private(const uint8_t private_key[64]) { in EVP_PKEY_new_ed25519_private() 184 !set_privkey(ret, private_key)) { in EVP_PKEY_new_ed25519_private()
|
D | p_rsa_asn1.c | 117 CBB pkcs8, algorithm, oid, null, private_key; in rsa_priv_encode() local 124 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in rsa_priv_encode() 125 !RSA_marshal_private_key(&private_key, key->pkey.rsa) || in rsa_priv_encode()
|
/external/grpc-grpc/test/core/security/ |
D | ssl_credentials_test.cc | 48 GPR_ASSERT(strncmp(grpc_pairs[i].private_key, tsi_pairs[i].private_key, in test_convert_grpc_to_tsi_cert_pairs() 49 strlen(grpc_pairs[i].private_key)) == 0); in test_convert_grpc_to_tsi_cert_pairs()
|
/external/grpc-grpc/src/python/grpcio_tests/tests/interop/ |
D | server.py | 48 private_key = resources.private_key() 50 credentials = grpc.ssl_server_credentials(((private_key,
|
/external/boringssl/src/include/openssl/ |
D | curve25519.h | 52 const uint8_t private_key[32], 58 const uint8_t private_key[32]); 85 const uint8_t private_key[64]);
|
/external/grpc-grpc/src/core/lib/security/credentials/jwt/ |
D | json_token.cc | 105 result.private_key = in grpc_auth_json_key_create_from_json() 107 if (result.private_key == nullptr) { in grpc_auth_json_key_create_from_json() 144 if (json_key->private_key != nullptr) { in grpc_auth_json_key_destruct() 145 RSA_free(json_key->private_key); in grpc_auth_json_key_destruct() 146 json_key->private_key = nullptr; in grpc_auth_json_key_destruct() 264 EVP_PKEY_set1_RSA(key, json_key->private_key); in compute_and_encode_signature()
|
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/ |
D | records.pyx.pxi | 154 def __cinit__(self, bytes private_key, bytes certificate_chain): argument 155 self.private_key = private_key 157 self.c_pair.private_key = self.private_key
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | oauth_client.cc | 87 Status CreateSignature(RSA* private_key, StringPiece to_sign, in CreateSignature() argument 89 if (!private_key || !signature) { in CreateSignature() 111 EVP_PKEY_set1_RSA(key.get(), private_key); in CreateSignature() 200 std::unique_ptr<RSA, std::function<void(RSA*)>> private_key( in GetTokenFromServiceAccountJson() local 203 if (!private_key) { in GetTokenFromServiceAccountJson() 215 TF_RETURN_IF_ERROR(CreateSignature(private_key.get(), to_sign, &signature)); in GetTokenFromServiceAccountJson()
|
/external/python/pyasn1/docs/source/ |
D | example-use-case.rst | 107 private_key, rest_of_input = der_decoder(der_serialisation, asn1Spec=RSAPrivateKey()) 113 >>> print('%s' % private_key) 132 >>> pk = private_key 157 >>> py_private_key = encode(private_key) 170 >>> private_key = decode(py_private_key, asn1Spec=RSAPrivateKey()) 184 der_serialisation = der_encoder(private_key)
|
/external/boringssl/src/crypto/ec_extra/ |
D | ec_asn1.c | 76 CBS ec_private_key, private_key; in EC_KEY_parse_private_key() local 81 !CBS_get_asn1(&ec_private_key, &private_key, CBS_ASN1_OCTETSTRING)) { in EC_KEY_parse_private_key() 130 priv_key = BN_bin2bn(CBS_data(&private_key), CBS_len(&private_key), NULL); in EC_KEY_parse_private_key() 199 CBB ec_private_key, private_key; in EC_KEY_marshal_private_key() local 202 !CBB_add_asn1(&ec_private_key, &private_key, CBS_ASN1_OCTETSTRING) || in EC_KEY_marshal_private_key() 203 !BN_bn2cbb_padded(&private_key, in EC_KEY_marshal_private_key()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_supplicant.conf | 1563 private_key="/etc/cert/user.prv" 1677 private_key="/etc/cert/user.prv" 1812 private_key="/etc/cert/user.prv" 1830 private_key="pkcs11:manufacturer=piv_II;id=%01"
|
/external/wpa_supplicant_8/src/crypto/ |
D | tls_gnutls.c | 546 if (params->client_cert && params->private_key) { in tls_connection_set_params() 549 params->client_cert, params->private_key); in tls_connection_set_params() 552 conn->xcred, params->client_cert, params->private_key, in tls_connection_set_params() 557 conn->xcred, params->client_cert, params->private_key, in tls_connection_set_params() 567 params->private_key, GNUTLS_X509_FMT_PEM, in tls_connection_set_params() 572 params->private_key, GNUTLS_X509_FMT_PEM); in tls_connection_set_params() 586 } else if (params->private_key) { in tls_connection_set_params() 592 params->private_key); in tls_connection_set_params() 594 conn->xcred, params->private_key, GNUTLS_X509_FMT_DER, in tls_connection_set_params() 793 if (params->client_cert && params->private_key) { in tls_global_set_params() [all …]
|