/external/chromium_org/net/quic/crypto/ |
H A D | null_encrypter_test.cc | 26 NullEncrypter encrypter; local 28 encrypter.EncryptPacket(0, "hello world!", "goodbye!")); 37 NullEncrypter encrypter; local 38 EXPECT_EQ(1000u, encrypter.GetMaxPlaintextSize(1012)); 39 EXPECT_EQ(100u, encrypter.GetMaxPlaintextSize(112)); 40 EXPECT_EQ(10u, encrypter.GetMaxPlaintextSize(22)); 44 NullEncrypter encrypter; local 45 EXPECT_EQ(1012u, encrypter.GetCiphertextSize(1000)); 46 EXPECT_EQ(112u, encrypter.GetCiphertextSize(100)); 47 EXPECT_EQ(22u, encrypter [all...] |
H A D | chacha20_poly1305_encrypter_test.cc | 42 // EncryptWithNonce wraps the |Encrypt| method of |encrypter| to allow passing 44 QuicData* EncryptWithNonce(ChaCha20Poly1305Encrypter* encrypter, argument 48 size_t ciphertext_size = encrypter->GetCiphertextSize(plaintext.length()); 51 if (!encrypter->Encrypt(nonce, associated_data, plaintext, 78 ChaCha20Poly1305Encrypter encrypter; local 79 ASSERT_TRUE(encrypter.SetKey(key)); 81 &encrypter, iv, 82 // This deliberately tests that the encrypter can handle an AAD that 94 ChaCha20Poly1305Encrypter encrypter; local 95 EXPECT_EQ(1000u, encrypter 101 ChaCha20Poly1305Encrypter encrypter; local [all...] |
H A D | aes_128_gcm_12_encrypter_test.cc | 209 // EncryptWithNonce wraps the |Encrypt| method of |encrypter| to allow passing 211 QuicData* EncryptWithNonce(Aes128Gcm12Encrypter* encrypter, argument 215 size_t ciphertext_size = encrypter->GetCiphertextSize(plaintext.length()); 218 if (!encrypter->Encrypt(nonce, associated_data, plaintext, 255 Aes128Gcm12Encrypter encrypter; local 256 ASSERT_TRUE(encrypter.SetKey(key)); 258 &encrypter, iv, 259 // This deliberately tests that the encrypter can handle an AAD that 281 Aes128Gcm12Encrypter encrypter; local 282 EXPECT_EQ(1000u, encrypter 288 Aes128Gcm12Encrypter encrypter; local [all...] |
H A D | crypto_secret_boxer.cc | 44 scoped_ptr<QuicEncrypter> encrypter(QuicEncrypter::Create(kAESG)); 45 if (!encrypter->SetKey(key_)) { 46 DLOG(DFATAL) << "CryptoSecretBoxer's encrypter->SetKey failed."; 49 size_t ciphertext_size = encrypter->GetCiphertextSize(plaintext.length()); 60 if (!encrypter->Encrypt(StringPiece(data, kBoxNonceSize), StringPiece(),
|
H A D | crypto_utils.cc | 89 crypters->encrypter.reset(QuicEncrypter::Create(aead)); 91 size_t key_bytes = crypters->encrypter->GetKeySize(); 92 size_t nonce_prefix_bytes = crypters->encrypter->GetNoncePrefixSize(); 106 if (!crypters->encrypter->SetKey(hkdf.server_write_key()) || 107 !crypters->encrypter->SetNoncePrefix(hkdf.server_write_iv()) || 113 if (!crypters->encrypter->SetKey(hkdf.client_write_key()) || 114 !crypters->encrypter->SetNoncePrefix(hkdf.client_write_iv()) ||
|
H A D | crypto_handshake.h | 85 // A CrypterPair contains the encrypter and decrypter for an encryption level. 89 scoped_ptr<QuicEncrypter> encrypter; member in struct:net::CrypterPair
|
H A D | quic_crypto_client_config.cc | 533 scoped_ptr<QuicData> cetv_ciphertext(crypters.encrypter->EncryptPacket(
|
/external/chromium_org/net/quic/ |
H A D | quic_crypto_server_stream.cc | 122 crypto_negotiated_params_.initial_crypters.encrypter.release()); 143 crypto_negotiated_params_.forward_secure_crypters.encrypter.release());
|
H A D | quic_framer.h | 349 // Changes the encrypter used for level |level| to |encrypter|. The function 350 // takes ownership of |encrypter|. 351 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); 352 const QuicEncrypter* encrypter(EncryptionLevel level) const;
|
H A D | quic_connection.h | 467 // Changes the encrypter used for level |level| to |encrypter|. The function 468 // takes ownership of |encrypter|. 469 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); 470 const QuicEncrypter* encrypter(EncryptionLevel level) const;
|
H A D | quic_crypto_client_stream.cc | 272 crypto_negotiated_params_.initial_crypters.encrypter.release()); 427 ENCRYPTION_FORWARD_SECURE, crypters->encrypter.release());
|
H A D | quic_connection.cc | 1636 QuicEncrypter* encrypter) { 1637 framer_.SetEncrypter(level, encrypter); 1640 const QuicEncrypter* QuicConnection::encrypter(EncryptionLevel level) const { function in class:net::QuicConnection 1641 return framer_.encrypter(level); 1635 SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter) argument
|
H A D | quic_framer.cc | 1676 QuicEncrypter* encrypter) { 1679 encrypter_[level].reset(encrypter); 1682 const QuicEncrypter* QuicFramer::encrypter(EncryptionLevel level) const { function in class:net::QuicFramer 1675 SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter) argument
|
/external/chromium_org/net/quic/test_tools/ |
H A D | crypto_test_utils.cc | 419 client->session()->connection()->encrypter(ENCRYPTION_INITIAL)); 423 client->session()->connection()->encrypter(ENCRYPTION_FORWARD_SECURE)); 427 server->session()->connection()->encrypter(ENCRYPTION_INITIAL)); 431 server->session()->connection()->encrypter(ENCRYPTION_FORWARD_SECURE));
|