public byte[]
EncryptMyData (byte[] plainData, out byte[] encryptionKey)<-- what the mean of this???
{
encryptionKey = Guid.NewGuid().ToByteArray();
int[] scheduledKey = AcedCast5.ScheduleKey(encryptionKey);
long iv = AcedCast5.GetOrdinaryIV(scheduledKey);
byte[] result = (byte[])plainData.Clone();
AcedCast5.EncryptCBC(scheduledKey, result, 0, result.Length, iv);
AcedCast5.ClearKey(scheduledKey);
return result;
}
public byte[] DecryptMyData(byte[] encryptedData, byte[]
decryptionKey)
{
int[] scheduledKey = AcedCast5.ScheduleKey(decryptionKey);
long iv = AcedCast5.GetOrdinaryIV(scheduledKey);
byte[] result = (byte[])encryptedData.Clone();
AcedCast5.DecryptCBC(scheduledKey, result, 0, result.Length, iv);
AcedCast5.ClearKey(scheduledKey);
return result;
}
this coding for Feistel cipher processing?????
and how about the arrangement????
sori im really2 newbie.....
My name Randy,
im school at President University Indonesia
my major is IT but newbie IT,
i have a assignment in computer network security about Feistel cipher, my assigment is make feistel cipher process in any language, an i dont understand...
sory plis help me....