Searched refs:ciphertext_size (Results 1 - 14 of 14) sorted by relevance

/external/chromium_org/net/quic/crypto/
H A Daead_base_encrypter_nss.cc58 size_t ciphertext_size = GetCiphertextSize(plaintext.length()); local
98 output, &output_len, ciphertext_size,
105 if (output_len != ciphertext_size) {
117 size_t ciphertext_size = GetCiphertextSize(plaintext.length()); local
118 scoped_ptr<char[]> ciphertext(new char[ciphertext_size]);
133 return new QuicData(ciphertext.release(), ciphertext_size, true);
142 size_t AeadBaseEncrypter::GetMaxPlaintextSize(size_t ciphertext_size) const {
143 return ciphertext_size - auth_tag_size_;
H A Daead_base_encrypter_openssl.cc107 size_t ciphertext_size = GetCiphertextSize(plaintext.length()); local
108 scoped_ptr<char[]> ciphertext(new char[ciphertext_size]);
123 return new QuicData(ciphertext.release(), ciphertext_size, true);
132 size_t AeadBaseEncrypter::GetMaxPlaintextSize(size_t ciphertext_size) const {
133 return ciphertext_size - auth_tag_size_;
H A Dchacha20_poly1305_encrypter_test.cc48 size_t ciphertext_size = encrypter->GetCiphertextSize(plaintext.length()); local
49 scoped_ptr<char[]> ciphertext(new char[ciphertext_size]);
56 return new QuicData(ciphertext.release(), ciphertext_size, true);
H A Dnull_encrypter.cc51 size_t NullEncrypter::GetMaxPlaintextSize(size_t ciphertext_size) const {
52 return ciphertext_size - GetHashLength();
H A Dquic_encrypter.h72 // to ciphertext no larger than |ciphertext_size|.
73 virtual size_t GetMaxPlaintextSize(size_t ciphertext_size) const = 0;
H A Dcrypto_secret_boxer.cc49 size_t ciphertext_size = encrypter->GetCiphertextSize(plaintext.length()); local
52 const size_t len = kBoxNonceSize + ciphertext_size;
H A Daes_128_gcm_12_encrypter_test.cc215 size_t ciphertext_size = encrypter->GetCiphertextSize(plaintext.length()); local
216 scoped_ptr<char[]> ciphertext(new char[ciphertext_size]);
223 return new QuicData(ciphertext.release(), ciphertext_size, true);
H A Dnull_encrypter.h34 virtual size_t GetMaxPlaintextSize(size_t ciphertext_size) const OVERRIDE;
H A Daead_base_encrypter.h54 virtual size_t GetMaxPlaintextSize(size_t ciphertext_size) const OVERRIDE;
/external/chromium_org/crypto/
H A Dencryptor_unittest.cc187 const unsigned char* ciphertext, size_t ciphertext_size) {
205 EXPECT_EQ(ciphertext_size, encrypted.size());
219 const unsigned char* ciphertext, size_t ciphertext_size) {
233 ciphertext_size); local
183 TestAESCTREncrypt( const unsigned char* key, size_t key_size, const unsigned char* init_counter, size_t init_counter_size, const unsigned char* plaintext, size_t plaintext_size, const unsigned char* ciphertext, size_t ciphertext_size) argument
215 TestAESCTRMultipleDecrypt( const unsigned char* key, size_t key_size, const unsigned char* init_counter, size_t init_counter_size, const unsigned char* plaintext, size_t plaintext_size, const unsigned char* ciphertext, size_t ciphertext_size) argument
/external/chromium_org/net/quic/
H A Dquic_framer.h360 // to ciphertext no larger than |ciphertext_size|.
361 size_t GetMaxPlaintextSize(size_t ciphertext_size);
H A Dquic_framer.cc1710 size_t QuicFramer::GetMaxPlaintextSize(size_t ciphertext_size) { argument
1713 size_t min_plaintext_size = ciphertext_size;
1717 size_t size = encrypter_[i]->GetMaxPlaintextSize(ciphertext_size);
H A Dquic_connection_test.cc123 virtual size_t GetMaxPlaintextSize(size_t ciphertext_size) const OVERRIDE {
124 return ciphertext_size - kTagSize;
H A Dquic_framer_test.cc134 virtual size_t GetMaxPlaintextSize(size_t ciphertext_size) const OVERRIDE {
135 return ciphertext_size;

Completed in 270 milliseconds