/external/chromium_org/crypto/ |
H A D | curve25519.cc | 19 void ScalarMult(const uint8* private_key, argument 22 curve25519_donna(shared_key, private_key, peer_public_key); 30 void ScalarBaseMult(const uint8* private_key, uint8* public_key) { argument 31 curve25519_donna(public_key, private_key, kBasePoint);
|
H A D | curve25519.h | 27 // ScalarMult computes the |shared_key| from |private_key| and 29 // calls that function with |private_key| as |secret| and |peer_public_key| as 30 // basepoint. |private_key| should be of length |kScalarBytes| and 33 CRYPTO_EXPORT void ScalarMult(const uint8* private_key, 37 // ScalarBaseMult computes the |public_key| from |private_key|. This method is a 38 // wrapper for |curve25519_donna()|. It calls that function with |private_key| 39 // as |secret| and |kBasePoint| as basepoint. |private_key| should be of length 42 CRYPTO_EXPORT void ScalarBaseMult(const uint8* private_key, uint8* public_key);
|
/external/chromium_org/net/quic/crypto/ |
H A D | curve25519_key_exchange.cc | 22 const StringPiece& private_key) { 33 if (private_key.size() != crypto::curve25519::kScalarBytes) { 38 memcpy(ka->private_key_, private_key.data(), 46 uint8 private_key[crypto::curve25519::kScalarBytes]; local 47 rand->RandBytes(private_key, sizeof(private_key)); 49 // This makes |private_key| a valid scalar, as specified on 51 private_key[0] &= 248; 52 private_key[31] &= 127; 53 private_key[3 21 New( const StringPiece& private_key) argument [all...] |
H A D | p256_key_exchange_openssl.cc | 18 P256KeyExchange::P256KeyExchange(EC_KEY* private_key, const uint8* public_key) argument 19 : private_key_(private_key) { 33 crypto::ScopedOpenSSL<EC_KEY, EC_KEY_free> private_key( 35 if (!private_key.get() || !EC_KEY_check_key(private_key.get())) { 41 if (EC_POINT_point2oct(EC_KEY_get0_group(private_key.get()), 42 EC_KEY_get0_public_key(private_key.get()), 49 return new P256KeyExchange(private_key.release(), public_key); 66 scoped_ptr<uint8[]> private_key(new uint8[key_len]); 67 uint8* keyp = private_key [all...] |
H A D | p256_key_exchange.h | 34 // |private_key| is invalid, NULL is returned. 35 static P256KeyExchange* New(base::StringPiece private_key); 62 // P256KeyExchange takes ownership of |private_key|, and expects 64 P256KeyExchange(EC_KEY* private_key, const uint8* public_key);
|
/external/chromium_org/net/android/ |
H A D | keystore.h | 39 // |private_key| is a JNI reference for the private key. 43 NET_EXPORT bool GetRSAKeyModulus(jobject private_key, 49 // |private_key| is a JNI reference for the private key. 53 NET_EXPORT bool GetDSAKeyParamQ(jobject private_key, 59 // |private_key| is a JNI reference for the private key. 63 bool GetECKeyOrder(jobject private_key, 69 // |private_key| is a JNI reference for the private key. 72 bool GetPrivateKeyEncodedBytes(jobject private_key, 79 // |private_key| is a JNI reference for the private key. 85 jobject private_key, [all...] |
H A D | keystore_openssl.h | 28 // |private_key| is a JNI local (or global) reference to the Java 36 // caller can free |private_key| safely after the call, and that the 43 NET_EXPORT EVP_PKEY* GetOpenSSLPrivateKeyWrapper(jobject private_key);
|
H A D | keystore_openssl.cc | 186 jobject private_key = reinterpret_cast<jobject>(RSA_get_app_data(rsa)); local 187 if (!private_key) { 252 private_key, message_piece, &result)) { 328 // |private_key| is the JNI reference (local or global) to the object. 333 // free |private_key| after the call. 336 bool GetRsaPkeyWrapper(jobject private_key, EVP_PKEY* pkey) { argument 344 if (!GetRSAKeyModulus(private_key, &modulus)) { 354 global_key.Reset(NULL, private_key); 366 // |private_key| is a JNI reference (local or global) to the object. 369 EVP_PKEY* GetRsaLegacyKey(jobject private_key) { argument 410 jobject private_key = reinterpret_cast<jobject>(DSA_get_ex_data(dsa, 0)); local 495 GetDsaPkeyWrapper(jobject private_key, EVP_PKEY* pkey) argument 541 jobject private_key = reinterpret_cast<jobject>(ptr); local 598 jobject private_key = reinterpret_cast<jobject>( local 666 GetEcdsaPkeyWrapper(jobject private_key, EVP_PKEY* pkey) argument 704 GetOpenSSLPrivateKeyWrapper(jobject private_key) argument [all...] |
H A D | keystore.cc | 65 bool GetPrivateKeyEncodedBytes(jobject private_key, argument 70 Java_AndroidKeyStore_getPrivateKeyEncodedBytes(env, private_key); 103 PrivateKeyType GetPrivateKeyType(jobject private_key) { argument 106 env, private_key); 110 EVP_PKEY* GetOpenSSLSystemHandleForPrivateKey(jobject private_key) { argument 121 Java_AndroidKeyStore_getOpenSSLHandleForPrivateKey(env, private_key);
|
/external/chromium_org/net/ssl/ |
H A D | openssl_client_key_store.cc | 55 private_key = CopyEVP_PKEY(priv_key); 60 EVP_PKEY_free(private_key); 65 private_key = CopyEVP_PKEY(other.private_key); 70 EVP_PKEY* old_private_key = private_key; 72 private_key = CopyEVP_PKEY(other.private_key); 88 EVP_PKEY* private_key) { 91 pairs_.push_back(KeyPair(pub_key, private_key)); 98 EVP_PKEY* private_key) { 87 AddKeyPair(EVP_PKEY* pub_key, EVP_PKEY* private_key) argument 96 RecordClientCertPrivateKey( const X509Certificate* client_cert, EVP_PKEY* private_key) argument 112 FetchClientCertPrivateKey( const X509Certificate* client_cert, ScopedEVP_PKEY* private_key) argument [all...] |
H A D | openssl_client_key_store.h | 48 // |private_key| is an OpenSSL EVP_PKEY that corresponds to the 51 // This function does not take ownership of the private_key, but may 54 EVP_PKEY* private_key); 59 // |*private_key| will be reset to its matching private key on success. 63 ScopedEVP_PKEY* private_key); 74 // |pub_key| and |private_key| can point to the same object. 77 void AddKeyPair(EVP_PKEY* pub_key, EVP_PKEY* private_key); 90 EVP_PKEY* private_key; member in class:net::OpenSSLClientKeyStore::KeyPair
|
H A D | server_bound_cert_store.cc | 16 const std::string& private_key, 21 private_key_(private_key), 30 i->expiration_time(), i->private_key(), i->cert()); 12 ServerBoundCert( const std::string& server_identifier, base::Time creation_time, base::Time expiration_time, const std::string& private_key, const std::string& cert) argument
|
H A D | server_bound_cert_service.cc | 147 std::string* private_key, 151 private_key_(private_key), 163 // Copies the contents of |private_key| and |cert| to the caller's output 166 const std::string& private_key, 197 *private_key_ = private_key; 292 const std::string& private_key, 294 PostAll(error, private_key, cert); 299 const std::string& private_key, 306 (*i)->Post(error, private_key, cert); 393 std::string* private_key, 145 ServerBoundCertServiceRequest(base::TimeTicks request_start, const CompletionCallback& callback, std::string* private_key, std::string* cert) argument 165 Post(int error, const std::string& private_key, const std::string& cert) argument 291 HandleResult(int error, const std::string& private_key, const std::string& cert) argument 298 PostAll(int error, const std::string& private_key, const std::string& cert) argument 391 GetDomainBoundCert( const std::string& host, std::string* private_key, std::string* cert, const CompletionCallback& callback, RequestHandle* out_req) argument 562 HandleResult( int error, const std::string& server_identifier, const std::string& private_key, const std::string& cert) argument [all...] |
H A D | server_bound_cert_store.h | 36 const std::string& private_key, 50 const std::string& private_key() const { return private_key_; } function in class:net::ServerBoundCertStore::ServerBoundCert 92 const std::string& private_key,
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
H A D | ecc_shared_secret.c | 28 @param private_key The private ECC key 34 int ecc_shared_secret(ecc_key *private_key, ecc_key *public_key, argument 42 LTC_ARGCHK(private_key != NULL); 48 if (private_key->type != PK_PRIVATE) { 52 if (ltc_ecc_is_valid_idx(private_key->idx) == 0 || ltc_ecc_is_valid_idx(public_key->idx) == 0) { 56 if (XSTRCMP(private_key->dp->name, public_key->dp->name) != 0) { 71 if ((err = mp_read_radix(prime, (char *)private_key->dp->prime, 16)) != CRYPT_OK) { goto done; } 72 if ((err = ltc_mp.ecc_ptmul(private_key->k, &public_key->pubkey, result, prime, 1)) != CRYPT_OK) { goto done; }
|
/external/chromium_org/net/base/ |
H A D | openssl_private_key_store_android.cc | 30 unsigned char* private_key = NULL; local 36 private_len = i2d_PKCS8_PRIV_KEY_INFO(pkcs8.get(), &private_key); 42 static_cast<const uint8*>(private_key), private_len); 47 OPENSSL_free(private_key);
|
H A D | keygen_handler_mac.cc | 100 SecKeyRef private_key, 108 SecKeyRef private_key = NULL; local 130 &public_key, &private_key); 172 err = SignData(encoded, private_key, &signature); 204 if (private_key) 205 SecKeychainItemDelete(reinterpret_cast<SecKeychainItemRef>(private_key)); 216 if (private_key) 217 CFRelease(private_key); 308 SecKeyRef private_key, 311 OSStatus err = CreateSignatureContext(private_key, 307 SignData(CSSM_DATA data, SecKeyRef private_key, CSSM_DATA* signature) argument [all...] |
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
H A D | wpa2-eap-ccmp.conf | 13 private_key="/etc/cert/user.p12"
|
/external/dropbear/libtomcrypt/src/pk/dsa/ |
H A D | dsa_shared_secret.c | 22 @param private_key The private DSA key (the exponent) 29 int dsa_shared_secret(void *private_key, void *base, argument 37 LTC_ARGCHK(private_key != NULL); 47 if ((err = mp_exptmod(base, private_key, public_key->p, res)) != CRYPT_OK) {
|
/external/chromium/chrome/browser/extensions/ |
H A D | extension_creator.h | 60 crypto::RSAPrivateKey* private_key, 65 crypto::RSAPrivateKey* private_key,
|
/external/chromium_org/crypto/third_party/nss/ |
H A D | pk11akey.cc | 56 SECKEYPrivateKey** private_key, 82 *private_key = PK11_UnwrapPrivKey(slot, key, crypto_mech_type, crypto_param, 92 if (!*private_key) { 48 ImportEncryptedECPrivateKeyInfoAndReturnKey( PK11SlotInfo* slot, SECKEYEncryptedPrivateKeyInfo* epki, SECItem* password, SECItem* nickname, SECItem* public_value, PRBool permanent, PRBool sensitive, SECKEYPrivateKey** private_key, void* wincx) argument
|
H A D | chromium-nss.h | 69 SECKEYPrivateKey** private_key,
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
H A D | sslidentity.cc | 118 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, argument 133 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, argument 135 return OpenSSLIdentity::FromPEMStrings(private_key, certificate); 148 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, argument 150 return NSSIdentity::FromPEMStrings(private_key, certificate);
|
/external/chromium/net/base/ |
H A D | keygen_handler_mac.cc | 99 SecKeyRef private_key, 107 SecKeyRef private_key = NULL; local 129 &public_key, &private_key); 171 err = SignData(encoded, private_key, &signature); 203 if (private_key) 204 SecKeychainItemDelete(reinterpret_cast<SecKeychainItemRef>(private_key)); 215 if (private_key) 216 CFRelease(private_key); 307 SecKeyRef private_key, 310 OSStatus err = CreateSignatureContext(private_key, 306 SignData(CSSM_DATA data, SecKeyRef private_key, CSSM_DATA* signature) argument [all...] |
/external/chromium_org/content/renderer/media/ |
H A D | peer_connection_identity_service.h | 36 const std::string& private_key);
|