Code examples for OAEPParameterSpec

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
45:	OAEPParameterSpec spec = new OAEPParameterSpec(mdName, "MGF1", 
-
65:	String alg1 = s1.getDigestAlgorithm().toUpperCase().trim(); 
-
80:	String alg1 = s1.getMGFAlgorithm(); 
-
83:	MGF1ParameterSpec mp1 = (MGF1ParameterSpec)s1.getMGFParameters(); 
-
101:	PSource src1 = s1.getPSource(); 
Full Snippet Info
7
CodeRank
45:	OAEPParameterSpec spec = new OAEPParameterSpec(mdName, "MGF1", 
-
65:	String alg1 = s1.getDigestAlgorithm().toUpperCase().trim(); 
-
80:	String alg1 = s1.getMGFAlgorithm(); 
-
83:	MGF1ParameterSpec mp1 = (MGF1ParameterSpec)s1.getMGFParameters(); 
-
101:	PSource src1 = s1.getPSource(); 
Full Snippet Info
6
CodeRank
286:	if (!spec.getMGFAlgorithm().equalsIgnoreCase("MGF1") && !spec.getMGFAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1.getId())) 
-
291:	if (!(spec.getMGFParameters() instanceof MGF1ParameterSpec)) 
-
296:	Digest digest = DigestFactory.getDigest(spec.getDigestAlgorithm()); 
-
300:	throw new InvalidAlgorithmParameterException("no match on digest algorithm: "+ spec.getDigestAlgorithm()); 
-
303:	MGF1ParameterSpec mgfParams = (MGF1ParameterSpec)spec.getMGFParameters(); 
-
311:	cipher = new OAEPEncoding(new RSABlindedEngine(), digest, mgfDigest, ((PSource.PSpecified)spec.getPSource()).getValue()); 
Full Snippet Info
6
CodeRank
27:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
6
CodeRank
281:	if (!spec.getMGFAlgorithm().equalsIgnoreCase("MGF1") && !spec.getMGFAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1.getId())) 
-
286:	if (!(spec.getMGFParameters() instanceof MGF1ParameterSpec)) 
-
291:	Digest digest = JCEDigestUtil.getDigest(spec.getDigestAlgorithm()); 
-
295:	throw new InvalidAlgorithmParameterException("no match on digest algorithm: "+ spec.getDigestAlgorithm()); 
-
298:	MGF1ParameterSpec mgfParams = (MGF1ParameterSpec)spec.getMGFParameters(); 
-
306:	cipher = new OAEPEncoding(new RSABlindedEngine(), digest, mgfDigest, ((PSource.PSpecified)spec.getPSource()).getValue()); 
Full Snippet Info
6
CodeRank
45:	OAEPParameterSpec spec = new OAEPParameterSpec(mdName, "MGF1", 
-
65:	String alg1 = s1.getDigestAlgorithm().toUpperCase().trim(); 
-
80:	String alg1 = s1.getMGFAlgorithm(); 
-
83:	MGF1ParameterSpec mp1 = (MGF1ParameterSpec)s1.getMGFParameters(); 
-
101:	PSource src1 = s1.getPSource(); 
Full Snippet Info
6
CodeRank
27:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
29:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
88:	OAEPParameterSpec spec2 = new OAEPParameterSpec(hashAlg, 
Full Snippet Info
5
CodeRank
29:	super("OAEP", new AlgorithmParameterAsymmetricHelper("RSA"), new OAEPParameterSpec("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, PSource.PSpecified.DEFAULT)); 
Full Snippet Info
5
CodeRank
280:	if (!spec.getMGFAlgorithm().equalsIgnoreCase("MGF1") && !spec.getMGFAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1.getId())) 
-
285:	if (!(spec.getMGFParameters() instanceof MGF1ParameterSpec)) 
-
290:	Digest digest = JCEDigestUtil.getDigest(spec.getDigestAlgorithm()); 
-
294:	throw new InvalidAlgorithmParameterException("no match on digest algorithm: "+ spec.getDigestAlgorithm()); 
-
297:	MGF1ParameterSpec mgfParams = (MGF1ParameterSpec)spec.getMGFParameters(); 
-
305:	cipher = new OAEPEncoding(new RSABlindedEngine(), digest, mgfDigest, ((PSource.PSpecified)spec.getPSource()).getValue()); 
Full Snippet Info
5
CodeRank
57:	DigestFactory.getOID(currentSpec.getDigestAlgorithm()), 
-
61:	MGF1ParameterSpec mgfSpec = (MGF1ParameterSpec)currentSpec.getMGFParameters(); 
-
67:	PSource.PSpecified      pSource = (PSource.PSpecified)currentSpec.getPSource(); 
Full Snippet Info
5
CodeRank