From d6f41c5bcdbcd052e9bcb11f0a55e6142e865034 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Thu, 25 Jul 2013 17:01:54 +0200
Subject: [PATCH] Fixed size of ctx_enc / ctx_dec in ssl for gcm_context size
---
include/polarssl/ssl.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h
index 1557d3931..a4634600b 100644
--- a/include/polarssl/ssl.h
+++ b/include/polarssl/ssl.h
@@ -369,8 +369,9 @@ struct _ssl_transform
md_context_t md_ctx_enc; /*!< MAC (encryption) */
md_context_t md_ctx_dec; /*!< MAC (decryption) */
- uint32_t ctx_enc[136]; /*!< encryption context */
- uint32_t ctx_dec[136]; /*!< decryption context */
+ /* 151 == 604 bytes is size of gcm_context (largest context in PolarSSL) */
+ uint32_t ctx_enc[151]; /*!< encryption context */
+ uint32_t ctx_dec[151]; /*!< decryption context */
/*
* Session specific compression layer