File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/com/hardssh/provider Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ public final class SSHSIGSignatureSpi extends SignatureSpi {
18
18
19
19
static final String DEFAULT_HASH = "SHA-512" ;
20
20
21
+ final SSHProvider sshprovider = new SSHProvider ();
22
+
21
23
static final Map <String , String > javahash2ssh = Map .of (
22
24
"SHA-256" , SSHSIG .SHA256 ,
23
25
"SHA-512" , SSHSIG .SHA512
@@ -136,7 +138,7 @@ protected byte[] engineSign() throws SignatureException {
136
138
var dtbs = SSHSIG .dtbs (sigspec .namespace (), hash_algo , hash );
137
139
138
140
// We trigger our sibling SSHSignatureSpi here.
139
- Signature sig = Signature .getInstance (sigtype );
141
+ Signature sig = Signature .getInstance (sigtype , sshprovider );
140
142
// TODO: FIDO parameters for native keys ?
141
143
sig .initSign (privateKey );
142
144
sig .update (dtbs );
You can’t perform that action at this time.
0 commit comments