Home
last modified time | relevance | path

Searched refs:AlgorithmParameters (Results 1 – 25 of 46) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/security/spec/
DAlgorithmParametersPSSTest.java20 import java.security.AlgorithmParameters;
62 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testGetInstance()
67 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testGetAlgorithm()
72 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testGetProvider()
78 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testInitFailsWhenAlreadyInitialized()
95 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testInitWithPSSParameterSpec()
107 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in assertInitWithDerEncoded()
111 params = AlgorithmParameters.getInstance("PSS"); in assertInitWithDerEncoded()
117 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testGetEncodedThrowsWhenNotInitialized()
134 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in assertGetEncoded()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParametersTest.java27 import java.security.AlgorithmParameters;
77 AlgorithmParameters ap = new FakeAlgorithmParameters(null, p, null); in test_getAlgorithm()
98 AlgorithmParameters params = new FakeAlgorithmParameters(paramSpi, p, in test_getEncoded()
134 AlgorithmParameters params = new FakeAlgorithmParameters(paramSpi, p, in test_getEncodedLjava_lang_String()
175 AlgorithmParameters ap = AlgorithmParameters.getInstance("ABC"); in test_getInstanceLjava_lang_String()
185 AlgorithmParameters ap = AlgorithmParameters.getInstance(str[i]); in test_getInstanceLjava_lang_String()
201 AlgorithmParameters ap = AlgorithmParameters.getInstance("ABC", "MyProvider"); in test_getInstanceLjava_lang_StringLjava_lang_String()
211 AlgorithmParameters ap = AlgorithmParameters.getInstance(alg[i], "MyProvider"); in test_getInstanceLjava_lang_StringLjava_lang_String()
222 AlgorithmParameters ap = AlgorithmParameters.getInstance("ABC", prv[i]); in test_getInstanceLjava_lang_StringLjava_lang_String()
233 AlgorithmParameters ap = AlgorithmParameters.getInstance("ABC", prv1[i]); in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
/libcore/luni/src/test/java/libcore/javax/crypto/spec/
DAlgorithmParametersTestPBES2.java18 import java.security.AlgorithmParameters;
169 AlgorithmParameters ap = AlgorithmParameters.getInstance( in testGetEncoded_knownAnswers()
181 AlgorithmParameters ap = AlgorithmParameters.getInstance( in test_encodeAndDecode()
184 AlgorithmParameters ap2 = AlgorithmParameters.getInstance( in test_encodeAndDecode()
206 AlgorithmParameters ap = AlgorithmParameters.getInstance(algorithmName, "BC"); in test_encryptWithAlgorithmParameters()
231 AlgorithmParameters ap = AlgorithmParameters.getInstance(algorithmName, "BC"); in test_correctNames()
/libcore/ojluni/src/main/java/java/security/
DAlgorithmParameters.java170 public class AlgorithmParameters { class
191 protected AlgorithmParameters(AlgorithmParametersSpi paramSpi, in AlgorithmParameters() method in AlgorithmParameters
238 public static AlgorithmParameters getInstance(String algorithm) in getInstance()
243 return new AlgorithmParameters((AlgorithmParametersSpi)objs[0], in getInstance()
288 public static AlgorithmParameters getInstance(String algorithm, in getInstance()
298 return new AlgorithmParameters((AlgorithmParametersSpi)objs[0], in getInstance()
335 public static AlgorithmParameters getInstance(String algorithm, in getInstance()
345 return new AlgorithmParameters((AlgorithmParametersSpi)objs[0], in getInstance()
DAlgorithmConstraints.java70 String algorithm, AlgorithmParameters parameters); in permits()
106 String algorithm, Key key, AlgorithmParameters parameters); in permits()
DAlgorithmParameterGeneratorSpi.java85 protected abstract AlgorithmParameters engineGenerateParameters(); in engineGenerateParameters()
/libcore/luni/src/test/java/libcore/javax/crypto/
DMockCipherSpi.java19 import java.security.AlgorithmParameters;
81 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters()
91 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters()
116 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
136 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
156 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
180 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
195 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters()
230 protected AlgorithmParameters engineGetParameters() { in engineGetParameters()
247 protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) in engineInit()
DCipherTest.java19 import java.security.AlgorithmParameters;
323 c.init(Cipher.ENCRYPT_MODE, new MockKey(), AlgorithmParameters.getInstance("AES")); in testCipher_init_CallsInitWithParams_AlgorithmParameters()
350 c.init(Cipher.ENCRYPT_MODE, new MockKey(), AlgorithmParameters.getInstance("AES")); in testCipher_init_CallsInitIgnoresRuntimeException()
377 c.init(Cipher.DECRYPT_MODE, new MockKey(), AlgorithmParameters.getInstance("AES")); in testCipher_init_CallsInitWithMode()
383 c.init(Cipher.ENCRYPT_MODE, new MockKey(), AlgorithmParameters.getInstance("AES")); in testCipher_init_CallsInitWithMode()
558 AlgorithmParameters.getInstance("AES")); in test_init_onAlgorithmParametersChange_reInitCipher()
563 AlgorithmParameters.getInstance("DES")); in test_init_onAlgorithmParametersChange_reInitCipher()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DExemptionMechanismSpiTest.java26 import java.security.AlgorithmParameters;
78 …protected void engineInit(Key key, AlgorithmParameters params) throws InvalidKeyException, Invalid… in engineInit()
99 AlgorithmParameters params = null; in testExemptionMechanismSpi01()
134 emSpi.engineInit(key, AlgorithmParameters.getInstance("DH")); in testExemptionMechanismSpi01()
DEncryptedPrivateKeyInfoTest.java26 import java.security.AlgorithmParameters;
532 class Mock_AlgorithmParameters extends AlgorithmParameters {
552 AlgorithmParameters ap = null; in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1()
557 ap = AlgorithmParameters in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1()
601 new EncryptedPrivateKeyInfo((AlgorithmParameters) null, in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray2()
609 AlgorithmParameters ap = AlgorithmParameters.getInstance("DSA"); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray2()
634 AlgorithmParameters ap = AlgorithmParameters.getInstance("DSA"); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray3()
659 AlgorithmParameters ap = AlgorithmParameters.getInstance("DSA"); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray4()
695 AlgorithmParameters apar = epki.getAlgParameters(); in testGetAlgParameters01()
801 AlgorithmParameters ap = AlgorithmParameters in testGetAlgParameters04()
[all …]
DExemptionMechanismTest.java21 import java.security.AlgorithmParameters;
467 em.init(key, AlgorithmParameters.getInstance("DES")); in test_initLjava_security_KeyLjava_security_AlgorithmParameters()
470 em.init(key, (AlgorithmParameters)null); in test_initLjava_security_KeyLjava_security_AlgorithmParameters()
481 em.init(null, AlgorithmParameters.getInstance("DES")); in test_initLjava_security_KeyLjava_security_AlgorithmParameters()
488 em.init(key, AlgorithmParameters.getInstance("DES")); in test_initLjava_security_KeyLjava_security_AlgorithmParameters()
DCipherSpiTest.java32 import java.security.AlgorithmParameters;
80 protected AlgorithmParameters engineGetParameters() { in engineGetParameters()
97 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
505 protected AlgorithmParameters engineGetParameters() { in engineGetParameters()
518 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyAlgorithmParameterGeneratorSpi.java26 import java.security.AlgorithmParameters;
52 public AlgorithmParameters engineGenerateParameters() { in engineGenerateParameters()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyCipher.java24 import java.security.AlgorithmParameters;
78 protected AlgorithmParameters engineGetParameters() { in engineGetParameters()
94 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
DMyExemptionMechanismSpi.java25 import java.security.AlgorithmParameters;
77 protected void engineInit(Key key, AlgorithmParameters params) in engineInit()
/libcore/ojluni/src/main/java/javax/crypto/
DExemptionMechanismSpi.java29 import java.security.AlgorithmParameters;
130 protected abstract void engineInit(Key key, AlgorithmParameters params) in engineInit()
DNullCipherSpi.java65 protected AlgorithmParameters engineGetParameters() { in engineGetParameters()
76 AlgorithmParameters params, in engineInit()
DSealedObject.java29 import java.security.AlgorithmParameters;
368 AlgorithmParameters params = null; in unseal()
372 params = AlgorithmParameters.getInstance(this.paramsAlg, in unseal()
375 params = AlgorithmParameters.getInstance(this.paramsAlg); in unseal()
DCipherSpi.java30 import java.security.AlgorithmParameters;
304 protected abstract AlgorithmParameters engineGetParameters(); in engineGetParameters()
466 AlgorithmParameters params, in engineInit()
DExemptionMechanism.java28 import java.security.AlgorithmParameters;
377 public final void init(Key key, AlgorithmParameters params) in init()
/libcore/luni/src/test/java/libcore/java/security/
DOldDHTest.java19 import java.security.AlgorithmParameters;
40 AlgorithmParameters algorithmparameters = algorithmparametergenerator.generateParameters(); in testDHGen()
/libcore/luni/src/test/java/tests/java/security/
DAlgorithmParameterGeneratorSpiTest.java25 import java.security.AlgorithmParameters;
48 AlgorithmParameters param = algParGen.engineGenerateParameters(); in testAlgorithmParameterGeneratorSpi01()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyAgreementThread.java19 import java.security.AlgorithmParameters;
71 AlgorithmParameters ap = apg.generateParameters(); in test()
/libcore/ojluni/src/main/java/sun/security/util/
DDisabledAlgorithmConstraints.java29 import java.security.AlgorithmParameters;
97 String algorithm, AlgorithmParameters parameters) { in permits()
122 String algorithm, Key key, AlgorithmParameters parameters) { in permits()
165 String algorithm, Key key, AlgorithmParameters parameters) { in checkConstraints()
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DAlgorithmId.java47 sun.security.util.ObjectIdentifier oid, java.security.AlgorithmParameters algparams) { in AlgorithmId()
86 public java.security.AlgorithmParameters getParameters() { in getParameters()
139 public static sun.security.x509.AlgorithmId get(java.security.AlgorithmParameters algparams) in get()
312 private java.security.AlgorithmParameters algParams;

12