components/openssl/openssl-1.0.1/patches/103-openssl_t4_inline.patch
changeset 4424 a844132a7d4b
parent 4370 7043c27399f1
--- a/components/openssl/openssl-1.0.1/patches/103-openssl_t4_inline.patch	Fri Jun 05 15:10:12 2015 -0700
+++ b/components/openssl/openssl-1.0.1/patches/103-openssl_t4_inline.patch	Mon Jun 01 08:19:05 2015 -0700
@@ -2096,6 +2096,15 @@
              dat->block = (block128_f) AES_decrypt;
              dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
                  (cbc128_f) AES_cbc_encrypt : NULL;
[email protected]@ -501,7 +858,7 @@
+     } else
+ #  ifdef BSAES_CAPABLE
+     if (BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE) {
+-        ret = AES_set_encrypt_key(key, ctx->key_len * 8, &dat->ks);
++        ret = AES_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks);
+         dat->block = (block128_f) AES_encrypt;
+         dat->stream.ctr = (ctr128_f) bsaes_ctr32_encrypt_blocks;
+     } else
 @@ -508,7 +865,7 @@
  #  endif
  #  ifdef VPAES_CAPABLE