Пример #1
0
 public void Reset(SkeinEngine.UBI ubi)
 {
     this.currentBlock  = Arrays.Clone(ubi.currentBlock, this.currentBlock);
     this.currentOffset = ubi.currentOffset;
     this.message       = Arrays.Clone(ubi.message, this.message);
     this.tweak.Reset(ubi.tweak);
 }
Пример #2
0
 public SkeinEngine(int blockSizeBits, int outputSizeBits)
 {
     if (outputSizeBits % 8 != 0)
     {
         throw new ArgumentException("Output size must be a multiple of 8 bits. :" + outputSizeBits);
     }
     this.outputSizeBytes = outputSizeBits / 8;
     this.threefish       = new ThreefishEngine(blockSizeBits);
     this.ubi             = new SkeinEngine.UBI(this, this.threefish.GetBlockSize());
 }