Exemplo n.º 1
0
        public override IBlockTransformer CreateBlockTransformer()
        {
            var blockTransformer = new BlockTransformer(_config.HashSizeInBits, _originalKeyLength, _salt, _personalization);

            if (_originalKeyLength > 0)
            {
                blockTransformer.TransformBytes(_key);
            }

            return(blockTransformer);
        }
 public TransformationPropertyParser(BlockTransformer blockTransformer)
 {
     this.blockTransformer      = blockTransformer;
     this.blockName             = blockTransformer.GetBlockName();
     this.blockTransformerBlock = Block.GetBlockValue(this.blockName, true);
 }