use getDigest() properly
This commit is contained in:
parent
7cf34b0539
commit
5522b6d583
|
@ -137,14 +137,13 @@ public class NfcSyncPGPContentSignerBuilder
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] getSignature() {
|
public byte[] getSignature() {
|
||||||
byte[] digest = getDigest();
|
ByteBuffer buf = ByteBuffer.wrap(getDigest());
|
||||||
ByteBuffer buf = ByteBuffer.wrap(digest);
|
|
||||||
if (signedHashes.containsKey(buf)) {
|
if (signedHashes.containsKey(buf)) {
|
||||||
return (byte[]) signedHashes.get(buf);
|
return (byte[]) signedHashes.get(buf);
|
||||||
}
|
}
|
||||||
// catch this when signatureGenerator.generate() is executed and divert digest to card,
|
// catch this when signatureGenerator.generate() is executed and divert digest to card,
|
||||||
// when doing the operation again reuse creationTimestamp (this will be hashed)
|
// when doing the operation again reuse creationTimestamp (this will be hashed)
|
||||||
throw new NfcInteractionNeeded(digest, getHashAlgorithm());
|
throw new NfcInteractionNeeded(getDigest(), getHashAlgorithm());
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] getDigest()
|
public byte[] getDigest()
|
||||||
|
|
Loading…
Reference in a new issue