Skip to content

Commit

Permalink
Use FingerprintUtil in test
Browse files Browse the repository at this point in the history
  • Loading branch information
vanitasvitae committed May 2, 2024
1 parent 554fe27 commit bc00722
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,7 @@ private void roundtripV6Packet()
{
byte[] salt = new byte[32];
byte[] fingerprint = Hex.decode("CB186C4F0609A697E4D52DFA6C722B0C1F1E27C18A56708F6525EC27BAD9ACC9");
long keyID = ((fingerprint[0] & 0xffL) << 56) |
((fingerprint[1] & 0xffL) << 48) |
((fingerprint[2] & 0xffL) << 40) |
((fingerprint[3] & 0xffL) << 32) |
((fingerprint[4] & 0xffL) << 24) |
((fingerprint[5] & 0xffL) << 16) |
((fingerprint[6] & 0xffL) << 8) |
((fingerprint[7] & 0xffL));
long keyID = FingerprintUtil.keyIdFromV6Fingerprint(fingerprint);

new SecureRandom().nextBytes(salt);
OnePassSignaturePacket before = new OnePassSignaturePacket(
Expand Down

0 comments on commit bc00722

Please sign in to comment.