components/openssl/openssl-1.0.1/patches/103-openssl_t4_inline.patch
changeset 4424 a844132a7d4b
parent 4370 7043c27399f1
equal deleted inserted replaced
4423:dd64204871b3 4424:a844132a7d4b
  2094 -            ret = AES_set_decrypt_key(key, ctx->key_len * 8, &dat->ks);
  2094 -            ret = AES_set_decrypt_key(key, ctx->key_len * 8, &dat->ks);
  2095 +            ret = AES_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks);
  2095 +            ret = AES_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks);
  2096              dat->block = (block128_f) AES_decrypt;
  2096              dat->block = (block128_f) AES_decrypt;
  2097              dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
  2097              dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
  2098                  (cbc128_f) AES_cbc_encrypt : NULL;
  2098                  (cbc128_f) AES_cbc_encrypt : NULL;
       
  2099 @@ -501,7 +858,7 @@
       
  2100      } else
       
  2101  #  ifdef BSAES_CAPABLE
       
  2102      if (BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE) {
       
  2103 -        ret = AES_set_encrypt_key(key, ctx->key_len * 8, &dat->ks);
       
  2104 +        ret = AES_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks);
       
  2105          dat->block = (block128_f) AES_encrypt;
       
  2106          dat->stream.ctr = (ctr128_f) bsaes_ctr32_encrypt_blocks;
       
  2107      } else
  2099 @@ -508,7 +865,7 @@
  2108 @@ -508,7 +865,7 @@
  2100  #  endif
  2109  #  endif
  2101  #  ifdef VPAES_CAPABLE
  2110  #  ifdef VPAES_CAPABLE
  2102      if (VPAES_CAPABLE) {
  2111      if (VPAES_CAPABLE) {
  2103 -        ret = vpaes_set_encrypt_key(key, ctx->key_len * 8, &dat->ks);
  2112 -        ret = vpaes_set_encrypt_key(key, ctx->key_len * 8, &dat->ks);