optimzie cipherSpecs layout

This commit is contained in:
toddouska
2015-03-07 10:08:34 -08:00
parent dc5faebb8d
commit 31a2acd9c3

View File

@@ -1514,6 +1514,10 @@ int ProcessOldClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
/* All cipher suite related info */ /* All cipher suite related info */
typedef struct CipherSpecs { typedef struct CipherSpecs {
word16 key_size;
word16 iv_size;
word16 block_size;
word16 aead_mac_size;
byte bulk_cipher_algorithm; byte bulk_cipher_algorithm;
byte cipher_type; /* block, stream, or aead */ byte cipher_type; /* block, stream, or aead */
byte mac_algorithm; byte mac_algorithm;
@@ -1522,10 +1526,6 @@ typedef struct CipherSpecs {
byte hash_size; byte hash_size;
byte pad_size; byte pad_size;
byte static_ecdh; byte static_ecdh;
word16 key_size;
word16 iv_size;
word16 block_size;
word16 aead_mac_size;
} CipherSpecs; } CipherSpecs;