Java Code Examples for java.security.spec.PSSParameterSpec#DEFAULT
The following examples show how to use
java.security.spec.PSSParameterSpec#DEFAULT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PSSSignatureSpi.java From RipplePower with Apache License 2.0 | 6 votes |
protected PSSSignatureSpi( AsymmetricBlockCipher signer, PSSParameterSpec baseParamSpec, boolean isRaw) { this.signer = signer; this.originalSpec = baseParamSpec; if (baseParamSpec == null) { this.paramSpec = PSSParameterSpec.DEFAULT; } else { this.paramSpec = baseParamSpec; } this.mgfDigest = DigestFactory.getDigest(paramSpec.getDigestAlgorithm()); this.saltLength = paramSpec.getSaltLength(); this.trailer = getTrailer(paramSpec.getTrailerField()); this.isRaw = isRaw; setupContentDigest(); }
Example 2
Source File: PSSSignatureSpi.java From ripple-lib-java with ISC License | 6 votes |
protected PSSSignatureSpi( AsymmetricBlockCipher signer, PSSParameterSpec baseParamSpec, boolean isRaw) { this.signer = signer; this.originalSpec = baseParamSpec; if (baseParamSpec == null) { this.paramSpec = PSSParameterSpec.DEFAULT; } else { this.paramSpec = baseParamSpec; } this.mgfDigest = DigestFactory.getDigest(paramSpec.getDigestAlgorithm()); this.saltLength = paramSpec.getSaltLength(); this.trailer = getTrailer(paramSpec.getTrailerField()); this.isRaw = isRaw; setupContentDigest(); }
Example 3
Source File: P11RSAPSSSignatureSpi.java From xipki with Apache License 2.0 | 5 votes |
protected P11RSAPSSSignatureSpi(PSSParameterSpec baseParamSpec, boolean isRaw) { this.originalSpec = baseParamSpec; this.paramSpec = (baseParamSpec == null) ? PSSParameterSpec.DEFAULT : baseParamSpec; this.mgfDigest = DigestFactory.getDigest(paramSpec.getDigestAlgorithm()); this.saltLength = paramSpec.getSaltLength(); this.trailer = getTrailer(paramSpec.getTrailerField()); this.isRaw = isRaw; setupContentDigest(); }
Example 4
Source File: PSSSignatureSpi.java From RipplePower with Apache License 2.0 | 4 votes |
public SHA1withRSA() { super(new RSABlindedEngine(), PSSParameterSpec.DEFAULT); }
Example 5
Source File: P11RSAPSSSignatureSpi.java From xipki with Apache License 2.0 | 4 votes |
public SHA1withRSA() { super(PSSParameterSpec.DEFAULT); }
Example 6
Source File: PSSSignatureSpi.java From ripple-lib-java with ISC License | 4 votes |
public SHA1withRSA() { super(new RSABlindedEngine(), PSSParameterSpec.DEFAULT); }