예제 #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;
 }