示例#1
0
 private void Rekey(byte[] key)
 {
     _KeySchedule = new KeySchedule(key, BlockSize/Constants.BitsPerByte);
     _Settings = new Settings(key.Length*Constants.BitsPerByte, BlockSize);
     _InitialRound = new InitialRound(_Settings, _KeySchedule);
     _IntermediateRound = new IntermediateRound(_Settings, _KeySchedule);
     _FinalRound = new FinalRound(_Settings, _KeySchedule);
 }
示例#2
0
 private void Rekey(byte[] key)
 {
     _KeySchedule       = new KeySchedule(key, BlockSize / Constants.BitsPerByte);
     _Settings          = new Settings(key.Length * Constants.BitsPerByte, BlockSize);
     _InitialRound      = new InitialRound(_Settings, _KeySchedule);
     _IntermediateRound = new IntermediateRound(_Settings, _KeySchedule);
     _FinalRound        = new FinalRound(_Settings, _KeySchedule);
 }