public void GivenTheClientContextUsesTheBlindRandomScalarFromTheTestVector() { HashFunctionFactory hfFactory = new(); _mockPogFactory = MyMockRepository.Create <IPrimeOrderGroupFactory>(); _cipherSuite = new CipherSuite(_cipherSuiteName, _mockPogFactory.Object, hfFactory); SetupFullyFunctionalMockPrimeOrderGroupFactoryToUseTestVectorBlindRandomScalar(); _clientContext = new(_cipherSuite); }
public void BeforeScenario() { SodiumLibrary.InitialiseCryptography(); _cipherSuiteName = CipherSuiteName.Ristretto255_SHA512; PrimeOrderGroupFactory pogFactory = new(); HashFunctionFactory hfFactory = new(); _cipherSuite = new CipherSuite(_cipherSuiteName, ProtocolMode.Base, pogFactory, hfFactory); _pog = _cipherSuite.PrimeOrderGroup; _clientContext = new(_cipherSuite); _serverContext = new(_cipherSuite); }