|
using System;
using System.Collections.Generic;
using System.Text;
namespace SimpleCryptographer.AES
{
class Keys
{
public List<Matrix> RoundKeys = new List<Matrix>(11);
public Keys()
{
}
public void setCipherKey(Matrix CipherKey)
{
if (RoundKeys.Count == 0)
{
this.RoundKeys.Add(CipherKey);
}
else
{
RoundKeys.Clear();
RoundKeys.Add(CipherKey);
}
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
RoundKeys.Add(new Matrix(4, 4));
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a super-elementary programmer.
I live in Suwon, Republic of Korea.
And i'm not very good at English.
hahaha!!!