mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-06-29 06:54:50 +02:00
Hex decode data in OpenPgpV4Fingerprint constructor
This commit is contained in:
parent
301b201d43
commit
c270bc3d60
|
@ -72,7 +72,7 @@ public class OpenPgpV4Fingerprint extends OpenPgpFingerprint {
|
||||||
}
|
}
|
||||||
|
|
||||||
public OpenPgpV4Fingerprint(@Nonnull byte[] bytes) {
|
public OpenPgpV4Fingerprint(@Nonnull byte[] bytes) {
|
||||||
super(bytes);
|
super(Hex.encode(bytes));
|
||||||
}
|
}
|
||||||
|
|
||||||
public OpenPgpV4Fingerprint(@Nonnull PGPPublicKey key) {
|
public OpenPgpV4Fingerprint(@Nonnull PGPPublicKey key) {
|
||||||
|
|
|
@ -89,7 +89,7 @@ public final class SignatureSubpacketsUtil {
|
||||||
|
|
||||||
OpenPgpFingerprint fingerprint = null;
|
OpenPgpFingerprint fingerprint = null;
|
||||||
if (subpacket.getKeyVersion() == 4) {
|
if (subpacket.getKeyVersion() == 4) {
|
||||||
fingerprint = new OpenPgpV4Fingerprint(Hex.encode(subpacket.getFingerprint()));
|
fingerprint = new OpenPgpV4Fingerprint(subpacket.getFingerprint());
|
||||||
}
|
}
|
||||||
|
|
||||||
return fingerprint;
|
return fingerprint;
|
||||||
|
|
Loading…
Reference in a new issue