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)); }
protected override byte[] DeriveKey(HashAlgorithm hasher, byte[] hfinal) { return(TEncryptionUtils.PadArray(hfinal, KeySizeInBytes, 0x36)); }