Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-08-31 05:56:06 +0400
committerAdam Langley <agl@google.com>2014-09-03 02:42:26 +0400
commitf0fd37323bfb173d88a782653259f4766d4f09ba (patch)
tree1c17666996cf84e0c9e96c1500c61fd749c97578 /ssl/s3_cbc.c
parent8a5825e4c7238eef74f8a7ad5b054914e16899cb (diff)
Remove remnants of EVP_CIPHER-based AES_GCM cipher.
Those codepaths are never hit. Change-Id: Ib6908ebe90ab667774785298fdc3f96acc4b50df Reviewed-on: https://boringssl-review.googlesource.com/1693 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/s3_cbc.c')
-rw-r--r--ssl/s3_cbc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ssl/s3_cbc.c b/ssl/s3_cbc.c
index e80734e6..4af096d1 100644
--- a/ssl/s3_cbc.c
+++ b/ssl/s3_cbc.c
@@ -181,13 +181,6 @@ int tls1_cbc_remove_padding(const SSL* s,
}
}
- if (EVP_CIPHER_flags(s->enc_read_ctx->cipher)&EVP_CIPH_FLAG_AEAD_CIPHER)
- {
- /* padding is already verified */
- rec->length -= padding_length + 1;
- return 1;
- }
-
good = constant_time_ge(rec->length, overhead+padding_length);
/* The padding consists of a length byte at the end of the record and
* then that many bytes of padding, all with the same value as the