public KeyConfirmationFactory(IKeyConfirmationMacDataCreator macDataCreator)
 {
     _macDataCreator = macDataCreator;
     _cmacFactory    = new CmacFactory(new BlockCipherEngineFactory(), new ModeBlockCipherFactory());
     _hmacFactory    = new HmacFactory(new NativeShaFactory());
     _kmacFactory    = new KmacFactory(new CSHAKEWrapper());
 }
 public KdfMultiExpansionVisitor(
     IKdfFactory kdfTwoStepFactory,
     IHkdfFactory hkdfFactory,
     ICmacFactory cmacFactory,
     IHmacFactory hmacFactory
     )
 {
     _kdfTwoStepFactory = kdfTwoStepFactory;
     _hkdfFactory       = hkdfFactory;
     _cmacFactory       = cmacFactory;
     _hmacFactory       = hmacFactory;
 }
Esempio n. 3
0
 public KdfVisitor(IKdfOneStepFactory kdfOneStepFactory,
                   IKdfFactory kdfTwoStepFactory,
                   IHmacFactory hmacFactory,
                   ICmacFactory cmacFactory,
                   IIkeV1Factory ikeV1Factory,
                   IIkeV2Factory ikeV2Factory,
                   ITlsKdfFactory tlsFactory,
                   IHkdfFactory hkdfFactory)
 {
     _kdfOneStepFactory = kdfOneStepFactory;
     _kdfTwoStepFactory = kdfTwoStepFactory;
     _hmacFactory       = hmacFactory;
     _cmacFactory       = cmacFactory;
     _ikeV1Factory      = ikeV1Factory;
     _ikeV2Factory      = ikeV2Factory;
     _tlsFactory        = tlsFactory;
     _hkdfFactory       = hkdfFactory;
 }
Esempio n. 4
0
 public NoKeyConfirmationFactory(INoKeyConfirmationMacDataCreator macDataCreator)
 {
     _macDataCreator = macDataCreator;
     _cmacFactory    = new CmacFactory(new BlockCipherEngineFactory(), new ModeBlockCipherFactory());
     _hmacFactory    = new HmacFactory(new NativeShaFactory());
 }
Esempio n. 5
0
 public KdfFactory(ICmacFactory cmacFactory, IHmacFactory hmacFactory)
 {
     _cmacFactory = cmacFactory;
     _hmacFactory = hmacFactory;
 }