From a260171e23c998980e1726244d09bc54cf7ca365 Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 26 Sep 2014 10:27:14 -0700 Subject: [PATCH] add scr for ephemeral keys --- src/internal.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/internal.c b/src/internal.c index 0e00b2583..d1437fb1f 100644 --- a/src/internal.c +++ b/src/internal.c @@ -9581,6 +9581,11 @@ static void PickHashSigAlgo(CYASSL* ssl, ssl->options.serverState = SERVER_KEYEXCHANGE_COMPLETE; } + + if (ssl->keys.encryptionOn) { + *inOutIdx += ssl->keys.padSz; + } + return 0; #else /* !NO_DH or HAVE_ECC */ return NOT_COMPILED_IN; /* not supported by build */