use getDigest() properly

This commit is contained in:
Dominik Schürmann 2021-04-29 17:58:31 +02:00
parent 7cf34b0539
commit 5522b6d583
1 changed files with 2 additions and 3 deletions

View File

@ -137,14 +137,13 @@ public class NfcSyncPGPContentSignerBuilder
}
public byte[] getSignature() {
byte[] digest = getDigest();
ByteBuffer buf = ByteBuffer.wrap(digest);
ByteBuffer buf = ByteBuffer.wrap(getDigest());
if (signedHashes.containsKey(buf)) {
return (byte[]) signedHashes.get(buf);
}
// catch this when signatureGenerator.generate() is executed and divert digest to card,
// when doing the operation again reuse creationTimestamp (this will be hashed)
throw new NfcInteractionNeeded(digest, getHashAlgorithm());
throw new NfcInteractionNeeded(getDigest(), getHashAlgorithm());
}
public byte[] getDigest()