Home
last modified time | relevance | path

Searched refs:pbeSpec (Results 1 – 11 of 11) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/
DSHA1.java114 PBEKeySpec pbeSpec = (PBEKeySpec)keySpec; in engineGenerateSecret() local
116 if (pbeSpec.getSalt() == null) in engineGenerateSecret()
121 if (pbeSpec.getIterationCount() <= 0) in engineGenerateSecret()
124 + pbeSpec.getIterationCount()); in engineGenerateSecret()
127 if (pbeSpec.getKeyLength() <= 0) in engineGenerateSecret()
130 + pbeSpec.getKeyLength()); in engineGenerateSecret()
133 if (pbeSpec.getPassword().length == 0) in engineGenerateSecret()
139 int keySize = pbeSpec.getKeyLength(); in engineGenerateSecret()
141 … CipherParameters param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret()
143 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DPBESecretKeyFactory.java46 PBEKeySpec pbeSpec = (PBEKeySpec)keySpec; in engineGenerateSecret() local
49 if (pbeSpec.getSalt() == null) in engineGenerateSecret()
51 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
56 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
60 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret()
63 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
DBaseStreamCipher.java54 private PBEParameterSpec pbeSpec = null; field in BaseStreamCipher
102 if (pbeSpec != null) in engineGetParameters()
107 engineParams.init(pbeSpec); in engineGetParameters()
155 this.pbeSpec = null; in engineInit()
171 pbeSpec = (PBEParameterSpec)params; in engineInit()
172 if (k instanceof PKCS12KeyWithParameters && pbeSpec == null) in engineInit()
174pbeSpec = new PBEParameterSpec(((PKCS12KeyWithParameters)k).getSalt(), ((PKCS12KeyWithParameters)k… in engineInit()
177 …EParameters(k.getEncoded(), PKCS12, digest, keySizeInBits, ivLength * 8, pbeSpec, cipher.getAlgori… in engineInit()
195 pbeSpec = new PBEParameterSpec(k.getSalt(), k.getIterationCount()); in engineInit()
200 pbeSpec = (PBEParameterSpec)params; in engineInit()
DBaseMac.java71 PBEParameterSpec pbeSpec; in engineInit() local
84 pbeSpec = (PBEParameterSpec)params; in engineInit()
91 if (k instanceof PBEKey && pbeSpec == null) in engineInit()
93pbeSpec = new PBEParameterSpec(((PBEKey)k).getSalt(), ((PBEKey)k).getIterationCount()); in engineInit()
113 param = PBE.Util.makePBEMacParameters(k, PKCS12, digest, keySize, pbeSpec); in engineInit()
DBaseBlockCipher.java121 private PBEParameterSpec pbeSpec = null; field in BaseBlockCipher
244 if (pbeSpec != null) in engineGetParameters()
249 engineParams.init(pbeSpec); in engineGetParameters()
505 this.pbeSpec = null; in engineInit()
548 pbeSpec = (PBEParameterSpec)params; in engineInit()
551 if (k instanceof PBEKey && pbeSpec == null) in engineInit()
559pbeSpec = new PBEParameterSpec(((PBEKey)k).getSalt(), ((PBEKey)k).getIterationCount()); in engineInit()
562 if (pbeSpec == null && !(k instanceof PBEKey)) in engineInit()
593 …EParameters(k.getEncoded(), PKCS12, digest, keySizeInBits, ivLength * 8, pbeSpec, cipher.getAlgori… in engineInit()
640 pbeSpec = (PBEParameterSpec)params; in engineInit()
[all …]
DPBE.java409 PBEParameterSpec pbeSpec) in makePBEMacParameters() argument
416 generator.init(key.getEncoded(), pbeSpec.getSalt(), pbeSpec.getIterationCount()); in makePBEMacParameters()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DDES.java325 PBEKeySpec pbeSpec = (PBEKeySpec)keySpec; in engineGenerateSecret() local
328 if (pbeSpec.getSalt() == null) in engineGenerateSecret()
330 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
335 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
339 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret()
354 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
DPBEPKCS12.java73 PBEParameterSpec pbeSpec = (PBEParameterSpec)paramSpec; in engineInit() local
75 this.params = new PKCS12PBEParams(pbeSpec.getSalt(), in engineInit()
76 pbeSpec.getIterationCount()); in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/
DBcKeyStoreSpi.java470 PBEKeySpec pbeSpec = new PBEKeySpec(password); in makePBECipher() local
476 cipher.init(mode, keyFact.generateSecret(pbeSpec), defParams); in makePBECipher()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java654 PBEKeySpec pbeSpec = new PBEKeySpec(password); in wrapKey() local
666 cipher.init(Cipher.WRAP_MODE, keyFact.generateSecret(pbeSpec), defParams); in wrapKey()
692 PBEKeySpec pbeSpec = new PBEKeySpec(password); in cryptData() local
/external/google-tv-pairing-protocol/java/jar/
Dbcprov-jdk15-143.jarMETA-INF/MANIFEST.MF META-INF/BCKEY.SF META-INF/BCKEY ...