예제 #1
0
 protected override byte[] DeriveIV(HashAlgorithm hasher, byte[] BlockKey)
 {
     byte[] ResultHash = Salt;
     if (BlockKey != null)
     {
         ResultHash = hasher.ComputeHash(Concat(Salt, BlockKey));
     }
     return(TEncryptionUtils.PadArray(ResultHash, BlockSize, 0x36));
 }
예제 #2
0
 protected override byte[] DeriveKey(HashAlgorithm hasher, byte[] hfinal)
 {
     return(TEncryptionUtils.PadArray(hfinal, KeySizeInBytes, 0x36));
 }