Java 类org.bouncycastle.crypto.agreement.jpake.JPAKERound1Payload 实例源码

项目:irma_future_id    文件:JPAKEParticipantTest.java   
private ExchangeAfterRound2Creation runExchangeUntilRound2Creation(JPAKEParticipant alice, JPAKEParticipant bob)
    throws CryptoException
{
    JPAKERound1Payload aliceRound1Payload = alice.createRound1PayloadToSend();
    JPAKERound1Payload bobRound1Payload = bob.createRound1PayloadToSend();

    alice.validateRound1PayloadReceived(bobRound1Payload);
    bob.validateRound1PayloadReceived(aliceRound1Payload);

    JPAKERound2Payload aliceRound2Payload = alice.createRound2PayloadToSend();
    JPAKERound2Payload bobRound2Payload = bob.createRound2PayloadToSend();

    return new ExchangeAfterRound2Creation(
        alice,
        aliceRound2Payload,
        bobRound2Payload);
}
项目:bc-java    文件:JPAKEParticipantTest.java   
private ExchangeAfterRound2Creation runExchangeUntilRound2Creation(JPAKEParticipant alice, JPAKEParticipant bob)
    throws CryptoException
{
    JPAKERound1Payload aliceRound1Payload = alice.createRound1PayloadToSend();
    JPAKERound1Payload bobRound1Payload = bob.createRound1PayloadToSend();

    alice.validateRound1PayloadReceived(bobRound1Payload);
    bob.validateRound1PayloadReceived(aliceRound1Payload);

    JPAKERound2Payload aliceRound2Payload = alice.createRound2PayloadToSend();
    JPAKERound2Payload bobRound2Payload = bob.createRound2PayloadToSend();

    return new ExchangeAfterRound2Creation(
        alice,
        aliceRound2Payload,
        bobRound2Payload);
}