equal
deleted
inserted
replaced
361 } |
361 } |
362 } |
362 } |
363 |
363 |
364 @Override |
364 @Override |
365 protected AlgorithmParameters engineGetParameters() { |
365 protected AlgorithmParameters engineGetParameters() { |
366 if (this.pssParams == null) { |
366 AlgorithmParameters ap = null; |
367 throw new ProviderException("Missing required PSS parameters"); |
367 if (this.pssParams != null) { |
368 } |
368 try { |
369 try { |
369 ap = AlgorithmParameters.getInstance("RSASSA-PSS"); |
370 AlgorithmParameters ap = |
370 ap.init(this.pssParams); |
371 AlgorithmParameters.getInstance("RSASSA-PSS"); |
371 } catch (GeneralSecurityException gse) { |
372 ap.init(this.pssParams); |
372 throw new ProviderException(gse.getMessage()); |
373 return ap; |
373 } |
374 } catch (GeneralSecurityException gse) { |
374 } |
375 throw new ProviderException(gse.getMessage()); |
375 return ap; |
376 } |
|
377 } |
376 } |
378 |
377 |
379 private void ensureInit() throws SignatureException { |
378 private void ensureInit() throws SignatureException { |
380 if (this.privateKey == null && this.publicKey == null |
379 if (this.privateKey == null && this.publicKey == null |
381 && fallbackSignature == null) { |
380 && fallbackSignature == null) { |