Home
last modified time | relevance | path

Searched refs:paramSpec (Results 1 – 15 of 15) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DAlgorithmParametersSpi.java33 Class paramSpec) in engineGetParameterSpec() argument
36 if (paramSpec == null) in engineGetParameterSpec()
41 return localEngineGetParameterSpec(paramSpec); in engineGetParameterSpec()
44 protected abstract AlgorithmParameterSpec localEngineGetParameterSpec(Class paramSpec) in localEngineGetParameterSpec() argument
91 Class paramSpec) in localEngineGetParameterSpec() argument
94 if (paramSpec == OAEPParameterSpec.class || paramSpec == AlgorithmParameterSpec.class) in localEngineGetParameterSpec()
103 AlgorithmParameterSpec paramSpec) in engineInit() argument
106 if (!(paramSpec instanceof OAEPParameterSpec)) in engineInit()
111 this.currentSpec = (OAEPParameterSpec)paramSpec; in engineInit()
203 Class paramSpec) in localEngineGetParameterSpec() argument
[all …]
DCipherSpi.java52 private AlgorithmParameterSpec paramSpec; field in CipherSpi
100 paramSpec = pSpec; in initFromSpec()
151 if (paramSpec != null) in engineGetParameters()
156 engineParams.init(paramSpec); in engineGetParameters()
309 paramSpec = params; in engineInit()
380 AlgorithmParameterSpec paramSpec = null; in engineInit() local
386 paramSpec = params.getParameterSpec(OAEPParameterSpec.class); in engineInit()
395 engineInit(opmode, key, paramSpec, random); in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DAlgorithmParametersSpi.java23 Class paramSpec) in engineGetParameterSpec() argument
26 if (paramSpec == null) in engineGetParameterSpec()
31 return localEngineGetParameterSpec(paramSpec); in engineGetParameterSpec()
73 Class paramSpec) in localEngineGetParameterSpec() argument
76 if (paramSpec == DHParameterSpec.class || paramSpec == AlgorithmParameterSpec.class) in localEngineGetParameterSpec()
85 AlgorithmParameterSpec paramSpec) in engineInit() argument
88 if (!(paramSpec instanceof DHParameterSpec)) in engineInit()
93 this.currentSpec = (DHParameterSpec)paramSpec; in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DAlgorithmParametersSpi.java23 Class paramSpec) in engineGetParameterSpec() argument
26 if (paramSpec == null) in engineGetParameterSpec()
31 return localEngineGetParameterSpec(paramSpec); in engineGetParameterSpec()
69 Class paramSpec) in localEngineGetParameterSpec() argument
72 if (paramSpec == DSAParameterSpec.class || paramSpec == AlgorithmParameterSpec.class) in localEngineGetParameterSpec()
81 AlgorithmParameterSpec paramSpec) in engineInit() argument
84 if (!(paramSpec instanceof DSAParameterSpec)) in engineInit()
89 this.currentSpec = (DSAParameterSpec)paramSpec; in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DIvAlgorithmParameters.java43 Class paramSpec) in localEngineGetParameterSpec() argument
46 if (paramSpec == IvParameterSpec.class || paramSpec == AlgorithmParameterSpec.class) in localEngineGetParameterSpec()
55 AlgorithmParameterSpec paramSpec) in engineInit() argument
58 if (!(paramSpec instanceof IvParameterSpec)) in engineInit()
63 this.iv = ((IvParameterSpec)paramSpec).getIV(); in engineInit()
DBaseAlgorithmParameters.java16 Class paramSpec) in engineGetParameterSpec() argument
19 if (paramSpec == null) in engineGetParameterSpec()
24 return localEngineGetParameterSpec(paramSpec); in engineGetParameterSpec()
27 protected abstract AlgorithmParameterSpec localEngineGetParameterSpec(Class paramSpec) in localEngineGetParameterSpec() argument
DBaseWrapCipher.java213 AlgorithmParameterSpec paramSpec = null; in engineInit() local
221 paramSpec = params.getParameterSpec(availableSpecs[i]); in engineInit()
230 if (paramSpec == null) in engineInit()
237 engineInit(opmode, key, paramSpec, random); in engineInit()
DBaseStreamCipher.java282 AlgorithmParameterSpec paramSpec = null; in engineInit() local
290 paramSpec = params.getParameterSpec(availableSpecs[i]); in engineInit()
299 if (paramSpec == null) in engineInit()
305 engineInit(opmode, key, paramSpec, random); in engineInit()
DBaseBlockCipher.java1035 AlgorithmParameterSpec paramSpec = null; in engineInit() local
1048 paramSpec = params.getParameterSpec(availableSpecs[i]); in engineInit()
1057 if (paramSpec == null) in engineInit()
1063 engineInit(opmode, key, paramSpec, random); in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DGcmSpecUtil.java21 static boolean isGcmSpec(AlgorithmParameterSpec paramSpec) in isGcmSpec() argument
23 return gcmSpecClass != null && gcmSpecClass.isInstance(paramSpec); in isGcmSpec()
51 static GCMParameters extractGcmParameters(AlgorithmParameterSpec paramSpec) in extractGcmParameters() argument
59 …return new GCMParameters((byte[])iv.invoke(paramSpec, new Object[0]), ((Integer)tLen.invoke(paramS… in extractGcmParameters()
DAES.java665 protected void engineInit(AlgorithmParameterSpec paramSpec) in engineInit() argument
668 if (GcmSpecUtil.isGcmSpec(paramSpec)) in engineInit()
670 gcmParams = GcmSpecUtil.extractGcmParameters(paramSpec); in engineInit()
672 else if (paramSpec instanceof AEADParameterSpec) in engineInit()
674 …gcmParams = new GCMParameters(((AEADParameterSpec)paramSpec).getNonce(), ((AEADParameterSpec)param… in engineInit()
678 …arameterSpecException("AlgorithmParameterSpec class not recognized: " + paramSpec.getClass().getNa… in engineInit()
721 protected AlgorithmParameterSpec localEngineGetParameterSpec(Class paramSpec) in localEngineGetParameterSpec() argument
724 if (paramSpec == AlgorithmParameterSpec.class || GcmSpecUtil.isGcmSpec(paramSpec)) in localEngineGetParameterSpec()
732 if (paramSpec == AEADParameterSpec.class) in localEngineGetParameterSpec()
736 if (paramSpec == IvParameterSpec.class) in localEngineGetParameterSpec()
[all …]
DPBEPKCS12.java52 Class paramSpec) in localEngineGetParameterSpec() argument
55 if (paramSpec == PBEParameterSpec.class) in localEngineGetParameterSpec()
65 AlgorithmParameterSpec paramSpec) in engineInit() argument
68 if (!(paramSpec instanceof PBEParameterSpec)) in engineInit()
73 PBEParameterSpec pbeSpec = (PBEParameterSpec)paramSpec; in engineInit()
DPBES2AlgorithmParameters.java112 AlgorithmParameterSpec paramSpec) in engineInit() argument
115 if (!(paramSpec instanceof PBEParameterSpec)) in engineInit()
121 PBEParameterSpec pbeSpec = (PBEParameterSpec)paramSpec; in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DAlgorithmParametersSpi.java102 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) in engineGetParameterSpec() argument
105 …if (ECParameterSpec.class.isAssignableFrom(paramSpec) || paramSpec == AlgorithmParameterSpec.class) in engineGetParameterSpec()
109 else if (ECGenParameterSpec.class.isAssignableFrom(paramSpec)) in engineGetParameterSpec()
131 …w InvalidParameterSpecException("EC AlgorithmParameters cannot convert to " + paramSpec.getName()); in engineGetParameterSpec()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/
DCipherTest.java4734 PBEParameterSpec paramSpec = new PBEParameterSpec("salt".getBytes(), 100); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_noIV() local
4735 cipher.init(Cipher.ENCRYPT_MODE, secretKey, paramSpec); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_noIV()
4739 cipher.init(Cipher.DECRYPT_MODE, secretKey, paramSpec); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_noIV()