private uint[] GetRsaKeys(byte[] keys, uint n, uint e)
        {
            var rsaKeys = new uint[8];

            for (int index = 0; index < 8; index++)
            {
                var rsaKey = RsaComputer.GetRsa(keys[index], e, n);
                rsaKeys[index] = rsaKey;
                RsaKeysFromLastRun.Add(rsaKey);
            }

            return(rsaKeys);
        }
Beispiel #2
0
        private byte[] GetKeysFromFile(IFileReader fileReader, uint n, uint d)
        {
            var keys = new byte[8];

            for (int index = 0; index < 8; index++)
            {
                var rsaKey = fileReader.ReadBits(32);
                var key    = (byte)RsaComputer.GetRsa(rsaKey, d, n);
                keys[index] = key;

                KeysFromLastRun.Add(key);
                RsaKeysFromLastRun.Add(rsaKey);
            }

            return(keys);
        }