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