Skip to content

Commit

Permalink
swap again?
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Mar 26, 2024
1 parent 2654c15 commit faeb9bf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ public void clientRole_simulated() throws DecoderException {

Jpake4KeyConfirmationRequest req4 = (Jpake4KeyConfirmationRequest) b.nextRequest();
assertHexEquals(req4.getNonce(), Hex.decodeHex("998c182c9d70a375"));
byte[] clientHkdf = Hkdf.build(b.clientNonce4, b.derivedSecret);
byte[] clientHkdf = Hkdf.build(b.serverNonce3, b.derivedSecret);
assertEquals(32, clientHkdf.length);
byte[] clientHmacedHkdf = HmacSha256.hmacSha256(b.serverNonce3, clientHkdf);
byte[] clientHmacedHkdf = HmacSha256.hmacSha256(b.clientNonce4, clientHkdf);
assertHexEquals(req4.getHashDigest(), clientHmacedHkdf);

byte[] serverHkdf = Hkdf.build(req4.getNonce(), b.derivedSecret);
byte[] serverHkdf = Hkdf.build(b.clientNonce4, b.derivedSecret);
assertEquals(32, serverHkdf.length);
byte[] serverHmacedHkdf = HmacSha256.hmacSha256(b.clientNonce4, serverHkdf);
byte[] serverHmacedHkdf = HmacSha256.hmacSha256(req4.getNonce(), serverHkdf);
assertEquals(32, serverHmacedHkdf.length);
Jpake4KeyConfirmationResponse res4 = new Jpake4KeyConfirmationResponse(
0,
Expand Down

0 comments on commit faeb9bf

Please sign in to comment.