private int[] generateWorkingKey(bool forEncryption, byte[] userKey)
{
this.forEncryption = forEncryption;
if (userKey.Length != 32)
{
throw new ArgumentException("Key length invalid. Key needs to be 32 byte - 256 bit!!!");
}
int[] array = new int[8];
for (int num = 0; num != 8; num++)
{
array[num] = Gost28147Engine.bytesToint(userKey, num * 4);
}
return(array);
}