From 31a2acd9c306928cc6312f13bf9b8ce614abbedc Mon Sep 17 00:00:00 2001 From: toddouska Date: Sat, 7 Mar 2015 10:08:34 -0800 Subject: [PATCH] optimzie cipherSpecs layout --- wolfssl/internal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wolfssl/internal.h b/wolfssl/internal.h index 6a3490e41..b7f4924b2 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -1514,6 +1514,10 @@ int ProcessOldClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx, /* All cipher suite related info */ typedef struct CipherSpecs { + word16 key_size; + word16 iv_size; + word16 block_size; + word16 aead_mac_size; byte bulk_cipher_algorithm; byte cipher_type; /* block, stream, or aead */ byte mac_algorithm; @@ -1522,10 +1526,6 @@ typedef struct CipherSpecs { byte hash_size; byte pad_size; byte static_ecdh; - word16 key_size; - word16 iv_size; - word16 block_size; - word16 aead_mac_size; } CipherSpecs;