Пример #1
0
 public SymmetricService(IKeyGenerator keyGenerator, IVectorGenerator vectorGenerator)
     : base(keyGenerator.CastTo <IKeyGenerator, AbstractExtensionBuilderService <EncryptionBuilderOptions> >(nameof(keyGenerator)))
 {
     KeyGenerator    = keyGenerator;
     VectorGenerator = vectorGenerator;
 }
Пример #2
0
 public KeyedHashService(IKeyGenerator keyGenerator)
     : base(keyGenerator.CastTo <IKeyGenerator, AbstractExtensionBuilderService <EncryptionBuilderOptions> >(nameof(keyGenerator)))
 {
     KeyGenerator = keyGenerator;
 }