private byte[] ConvertToBase64(byte[] inputBuffer, int inputOffset, int inputCount)
{
char[] temp = new char[4];
Convert.ToBase64CharArray(inputBuffer, inputOffset, inputCount, temp, 0);
byte[] tempBytes = Encoding.ASCII.GetBytes(temp);
if (tempBytes.Length != 4)
throw new CryptographicException(SR.Cryptography_SSE_InvalidDataSize);
return tempBytes;
}