Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vanitasvitae committed May 17, 2024
1 parent 896774e commit afe6f34
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,12 @@ private void testConversionOfTestVectorKey() throws PGPException, IOException {
new BcKeyFingerprintCalculator()
);

// convert parsed key to Jca public key
PublicKey jcpk = jc.getPublicKey(v4k);
PGPPublicKey jck = jc.getPGPPublicKey(PublicKeyAlgorithmTags.Ed25519, jcpk, creationTime);
isEncodingEqual(v4k.getEncoded(), jck.getEncoded());

// convert parsed key to Bc public key
AsymmetricKeyParameter bcpk = bc.getPublicKey(v4k);
PGPPublicKey bck = bc.getPGPPublicKey(PublicKeyAlgorithmTags.Ed25519, null, bcpk, creationTime);
isEncodingEqual(v4k.getEncoded(), bck.getEncoded());
Expand Down

0 comments on commit afe6f34

Please sign in to comment.