public KeyConfirmationFactory(IKeyConfirmationMacDataCreator macDataCreator)
 {
     _macDataCreator = macDataCreator;
     _cmacFactory    = new CmacFactory(new BlockCipherEngineFactory(), new ModeBlockCipherFactory());
     _hmacFactory    = new HmacFactory(new NativeShaFactory());
     _kmacFactory    = new KmacFactory(new CSHAKEWrapper());
 }
Example #2
0
 public KeyConfirmationKmac(
     IKeyConfirmationMacDataCreator macDataCreator,
     IKeyConfirmationParameters keyConfirmationParameters,
     IKmacFactory kmacFactory, int capacity) :
     base(macDataCreator, keyConfirmationParameters)
 {
     _kmacFactory = kmacFactory;
     _capacity    = capacity;
 }
Example #3
0
 public KdfOneStepFactory(IShaFactory shaFactory, IHmacFactory hmacFactory, IKmacFactory kmacFactory)
 {
     _shaFactory  = shaFactory;
     _hmacFactory = hmacFactory;
     _kmacFactory = kmacFactory;
 }
Example #4
0
 public KdfKmac(IKmacFactory kmacFactory, int capacity, bool useCounter)
 {
     _kmacFactory = kmacFactory;
     _capacity    = capacity;
     UseCounter   = useCounter;
 }