From e5d9c26868b4475b51181507ee9e9a030d30d6d8 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 19 Feb 2015 13:50:04 -0500 Subject: [PATCH] use 256 bytes block for keys expansion --- Reseed.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reseed.cpp b/Reseed.cpp index 43a32ba2..011f2702 100644 --- a/Reseed.cpp +++ b/Reseed.cpp @@ -633,10 +633,10 @@ namespace data // calculate master secret PRF (secret, "master secret", random, 64, 48, masterSecret); // expand master secret - uint8_t keys[128]; // clientMACKey, serverMACKey, clientKey, serverKey + uint8_t keys[256]; // clientMACKey, serverMACKey, clientKey, serverKey memcpy (random, serverRandom, 32); memcpy (random + 32, clientHello + 11, 32); - PRF (masterSecret, "key expansion", random, 64, sizeof (keys), keys); + PRF (masterSecret, "key expansion", random, 64, 256, keys); memcpy (m_MacKey, keys, 32); m_Encryption.SetKey (keys + 64); m_Decryption.SetKey (keys + 96);