public void ShouldReturnCorrectKasScheme(FfcScheme scheme, Type expectedType)
        {
            var result = _subject
                         .WithHashFunction(new HashFunction(ModeValues.SHA2, DigestSizes.d256))
                         .BuildScheme(
                new SchemeParametersFfc(
                    new KasDsaAlgoAttributesFfc(scheme, FfcParameterSet.Fb),
                    KeyAgreementRole.InitiatorPartyU,
                    KasMode.NoKdfNoKc,
                    KeyConfirmationRole.None,
                    KeyConfirmationDirection.None,
                    KasAssurance.None,
                    new BitString(1)
                    ),
                null,
                null
                );

            Assert.IsInstanceOf(expectedType, result);
        }
示例#2
0
 public KasDsaAlgoAttributesFfc(FfcScheme scheme, FfcParameterSet parameterSet)
 {
     Scheme       = scheme;
     ParameterSet = parameterSet;
 }