Exemplo n.º 1
0
 public SymmetricService(IKeyGenerator keyGenerator, IVectorGenerator vectorGenerator)
     : base(keyGenerator.CastTo <IKeyGenerator, AbstractExtensionBuilderService <EncryptionBuilderOptions> >(nameof(keyGenerator)))
 {
     KeyGenerator    = keyGenerator;
     VectorGenerator = vectorGenerator;
 }
Exemplo n.º 2
0
 public KeyedHashService(IKeyGenerator keyGenerator)
     : base(keyGenerator.CastTo <IKeyGenerator, AbstractExtensionBuilderService <EncryptionBuilderOptions> >(nameof(keyGenerator)))
 {
     KeyGenerator = keyGenerator;
 }