public KeyConfirmationFactory(IKeyConfirmationMacDataCreator macDataCreator) { _macDataCreator = macDataCreator; _cmacFactory = new CmacFactory(new BlockCipherEngineFactory(), new ModeBlockCipherFactory()); _hmacFactory = new HmacFactory(new NativeShaFactory()); _kmacFactory = new KmacFactory(new CSHAKEWrapper()); }
public DsaEccFactory(IShaFactory shaFactory, IHmacFactory hmacFactory, IEccNonceProviderFactory nonceProviderFactory, IEntropyProviderFactory entropyProviderFactory) { _shaFactory = shaFactory; _hmacFactory = hmacFactory; _nonceProviderFactory = nonceProviderFactory; _entropyProviderFactory = entropyProviderFactory; }
public KdfHmac(IHmacFactory hmacFactory, IShaFactory shaFactory, KdaOneStepAuxFunction auxFunction, bool useCounter) { UseCounter = useCounter; HashFunction hashFunction = null; switch (auxFunction) { case KdaOneStepAuxFunction.HMAC_SHA1: hashFunction = new HashFunction(ModeValues.SHA1, DigestSizes.d160); break; case KdaOneStepAuxFunction.HMAC_SHA2_D224: hashFunction = new HashFunction(ModeValues.SHA2, DigestSizes.d224); break; case KdaOneStepAuxFunction.HMAC_SHA2_D256: hashFunction = new HashFunction(ModeValues.SHA2, DigestSizes.d256); break; case KdaOneStepAuxFunction.HMAC_SHA2_D384: hashFunction = new HashFunction(ModeValues.SHA2, DigestSizes.d384); break; case KdaOneStepAuxFunction.HMAC_SHA2_D512: hashFunction = new HashFunction(ModeValues.SHA2, DigestSizes.d512); break; case KdaOneStepAuxFunction.HMAC_SHA2_D512_T224: hashFunction = new HashFunction(ModeValues.SHA2, DigestSizes.d512t224); break; case KdaOneStepAuxFunction.HMAC_SHA2_D512_T256: hashFunction = new HashFunction(ModeValues.SHA2, DigestSizes.d512t256); break; case KdaOneStepAuxFunction.HMAC_SHA3_D224: hashFunction = new HashFunction(ModeValues.SHA3, DigestSizes.d224); break; case KdaOneStepAuxFunction.HMAC_SHA3_D256: hashFunction = new HashFunction(ModeValues.SHA3, DigestSizes.d256); break; case KdaOneStepAuxFunction.HMAC_SHA3_D384: hashFunction = new HashFunction(ModeValues.SHA3, DigestSizes.d384); break; case KdaOneStepAuxFunction.HMAC_SHA3_D512: hashFunction = new HashFunction(ModeValues.SHA3, DigestSizes.d512); break; default: throw new ArgumentException(nameof(auxFunction)); } _hmac = hmacFactory.GetHmacInstance(hashFunction); _sha = shaFactory.GetShaInstance(hashFunction); }
public KdfMultiExpansionVisitor( IKdfFactory kdfTwoStepFactory, IHkdfFactory hkdfFactory, ICmacFactory cmacFactory, IHmacFactory hmacFactory ) { _kdfTwoStepFactory = kdfTwoStepFactory; _hkdfFactory = hkdfFactory; _cmacFactory = cmacFactory; _hmacFactory = hmacFactory; }
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; }
public HkdfFactory(IHmacFactory hmacFactory) { _hmacFactory = hmacFactory; }
public KdfOneStepFactory(IShaFactory shaFactory, IHmacFactory hmacFactory, IKmacFactory kmacFactory) { _shaFactory = shaFactory; _hmacFactory = hmacFactory; _kmacFactory = kmacFactory; }
public IkeV2Factory(IHmacFactory hmacFactory) { _hmacFactory = hmacFactory; }
public DrbgFactory(IShaFactory shaFactory, IHmacFactory hmacFactory) { _shaFactory = shaFactory; _hmacFactory = hmacFactory; }
public TlsKdfFactory(IHmacFactory hmacFactory) { _hmacFactory = hmacFactory; }
public PbKdfFactory(IHmacFactory hmacFactory) { _hmacFactory = hmacFactory; }
public NoKeyConfirmationFactory(INoKeyConfirmationMacDataCreator macDataCreator) { _macDataCreator = macDataCreator; _cmacFactory = new CmacFactory(new BlockCipherEngineFactory(), new ModeBlockCipherFactory()); _hmacFactory = new HmacFactory(new NativeShaFactory()); }
public IkeV1Factory(IHmacFactory hmacFactory, IShaFactory shaFactory) { _hmacFactory = hmacFactory; _shaFactory = shaFactory; }
public TpmFactory(IHmacFactory hmacFactory) { _hmacFactory = hmacFactory; }
public KdfFactory(ICmacFactory cmacFactory, IHmacFactory hmacFactory) { _cmacFactory = cmacFactory; _hmacFactory = hmacFactory; }