Hex decode data in OpenPgpV4Fingerprint constructor

This commit is contained in:
Paul Schaub 2022-01-04 17:20:38 +01:00
parent d9e3c6ed91
commit 99496f80f5
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class OpenPgpV4Fingerprint extends OpenPgpFingerprint {
}
public OpenPgpV4Fingerprint(@Nonnull byte[] bytes) {
super(bytes);
super(Hex.encode(bytes));
}
public OpenPgpV4Fingerprint(@Nonnull PGPPublicKey key) {

View File

@ -89,7 +89,7 @@ public final class SignatureSubpacketsUtil {
OpenPgpFingerprint fingerprint = null;
if (subpacket.getKeyVersion() == 4) {
fingerprint = new OpenPgpV4Fingerprint(Hex.encode(subpacket.getFingerprint()));
fingerprint = new OpenPgpV4Fingerprint(subpacket.getFingerprint());
}
return fingerprint;