summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/uic/barcode/ssbFrame
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2024-06-18 15:42:51 +0200
committerGitHub <noreply@github.com>2024-06-18 15:42:51 +0200
commit6b9254296a5b3b323c2e103db40865c01ffad005 (patch)
treea02e7adfe7c44ab01feaf94cd26689f9e09bfc62 /src/main/java/org/uic/barcode/ssbFrame
parentMerge pull request #81 from UnionInternationalCheminsdeFer/fix_test_for_year_with_feb29 (diff)
parentCreate MAVticketTest.java (diff)
downloadUIC-barcode-6b9254296a5b3b323c2e103db40865c01ffad005.tar
UIC-barcode-6b9254296a5b3b323c2e103db40865c01ffad005.tar.gz
UIC-barcode-6b9254296a5b3b323c2e103db40865c01ffad005.tar.bz2
UIC-barcode-6b9254296a5b3b323c2e103db40865c01ffad005.tar.lz
UIC-barcode-6b9254296a5b3b323c2e103db40865c01ffad005.tar.xz
UIC-barcode-6b9254296a5b3b323c2e103db40865c01ffad005.tar.zst
UIC-barcode-6b9254296a5b3b323c2e103db40865c01ffad005.zip
Diffstat (limited to 'src/main/java/org/uic/barcode/ssbFrame')
-rw-r--r--src/main/java/org/uic/barcode/ssbFrame/SsbFrame.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/org/uic/barcode/ssbFrame/SsbFrame.java b/src/main/java/org/uic/barcode/ssbFrame/SsbFrame.java
index 2c8f66f..b7c5501 100644
--- a/src/main/java/org/uic/barcode/ssbFrame/SsbFrame.java
+++ b/src/main/java/org/uic/barcode/ssbFrame/SsbFrame.java
@@ -359,13 +359,18 @@ public class SsbFrame {
}
}
}
-
}
if (algo == null) {
throw new NoSuchAlgorithmException("No service for algorithm found: " + signingAlg);
}
- Signature sig = Signature.getInstance(algo);
+
+ Signature sig = null;
+ if (prov != null) {
+ sig = Signature.getInstance(algo,prov);
+ } else {
+ sig = Signature.getInstance(algo);
+ }
sig.initVerify(key);
sig.update(getDataForSignature());