title: SHA256 Hash calculation in C++
body: <p>I am trying to convert following C# code into C++ </p>
  
  <pre><code>        SHA256 hash = SHA256.Create();
          hash.TransformBlock(key, 0, key.Length, null, 0);
          for (int i = 0; i &lt; 1000; ++i)
          {
              hash.TransformBlock(cipheredSHA256Hash, 0, 32, null, 0);
          }
          hash.TransformFinalBlock(cipheredSHA256Hash,0, 0);
  
          using (RijndaelManaged rijndael = new RijndaelManaged())
          {
              rijndael.Key = hash.Hash;
              rijndael.Mode = CipherMode.ECB;
              rijndael.Padding = PaddingMode.Zeros;
              ICryptoTransform decryptor = rijndael.CreateDecryptor();
  
              return decryptor.TransformFinalBlock(cipheredOffSet60, 0, cipheredOffSet60.Length);
          }
  </code></pre>
  
  <p>is there any option for above code in C++</p>