コード例 #1
0
 public KeyConfirmationFactory(IKeyConfirmationMacDataCreator macDataCreator)
 {
     _macDataCreator = macDataCreator;
     _cmacFactory    = new CmacFactory(new BlockCipherEngineFactory(), new ModeBlockCipherFactory());
     _hmacFactory    = new HmacFactory(new NativeShaFactory());
     _kmacFactory    = new KmacFactory(new CSHAKEWrapper());
 }
コード例 #2
0
 public KeyConfirmationHmac(
     IKeyConfirmationMacDataCreator macDataCreator,
     IKeyConfirmationParameters keyConfirmationParameters,
     IHmac iHmac)
     : base(macDataCreator, keyConfirmationParameters)
 {
     _iHmac = iHmac;
     _keyConfirmationParameters = keyConfirmationParameters;
 }
コード例 #3
0
 public KeyConfirmationKmac(
     IKeyConfirmationMacDataCreator macDataCreator,
     IKeyConfirmationParameters keyConfirmationParameters,
     IKmacFactory kmacFactory, int capacity) :
     base(macDataCreator, keyConfirmationParameters)
 {
     _kmacFactory = kmacFactory;
     _capacity    = capacity;
 }
コード例 #4
0
 public KeyConfirmationAesCcm(
     IKeyConfirmationMacDataCreator macDataCreator,
     IKeyConfirmationParameters keyConfirmationParameters,
     IAeadModeBlockCipher ccm
     )
     : base(macDataCreator, keyConfirmationParameters)
 {
     _ccm = ccm;
     _keyConfirmationParameters = keyConfirmationParameters;
 }
コード例 #5
0
 public FakeKeyConfirmationMacDataCreator(IKeyConfirmationMacDataCreator keyConfirmationMacDataCreator)
 {
     _keyConfirmationMacDataCreator = keyConfirmationMacDataCreator;
 }
コード例 #6
0
 protected KeyConfirmationBase(IKeyConfirmationMacDataCreator macDataCreator, IKeyConfirmationParameters keyConfirmationParameters)
 {
     _macDataCreator            = macDataCreator;
     _keyConfirmationParameters = keyConfirmationParameters;
 }
コード例 #7
0
 public FakeKeyConfirmationBase(IKeyConfirmationMacDataCreator macDataCreator, IKeyConfirmationParameters keyConfirmationParameters)
     : base(macDataCreator, keyConfirmationParameters)
 {
 }