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); }
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); }