Home
last modified time | relevance | path

Searched refs:keySize (Results 1 – 25 of 28) sorted by relevance

12

/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/
DPKCS5S1ParametersGenerator.java63 int keySize) in generateDerivedParameters() argument
65 keySize = keySize / 8; in generateDerivedParameters()
67 if (keySize > digest.getDigestSize()) in generateDerivedParameters()
70 "Can't generate a derived key " + keySize + " bytes long."); in generateDerivedParameters()
75 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters()
89 int keySize, in generateDerivedParameters() argument
92 keySize = keySize / 8; in generateDerivedParameters()
95 if ((keySize + ivSize) > digest.getDigestSize()) in generateDerivedParameters()
98 "Can't generate a derived key " + (keySize + ivSize) + " bytes long."); in generateDerivedParameters()
103 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
[all …]
DOpenSSLPBEParametersGenerator.java87 int keySize) in generateDerivedParameters() argument
89 keySize = keySize / 8; in generateDerivedParameters()
91 byte[] dKey = generateDerivedKey(keySize); in generateDerivedParameters()
93 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters()
107 int keySize, in generateDerivedParameters() argument
110 keySize = keySize / 8; in generateDerivedParameters()
113 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
115 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
127 int keySize) in generateDerivedMacParameters() argument
129 return generateDerivedParameters(keySize); in generateDerivedMacParameters()
DPKCS5S2ParametersGenerator.java109 int keySize) in generateDerivedParameters() argument
111 keySize = keySize / 8; in generateDerivedParameters()
113 byte[] dKey = generateDerivedKey(keySize); in generateDerivedParameters()
115 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters()
128 int keySize, in generateDerivedParameters() argument
131 keySize = keySize / 8; in generateDerivedParameters()
134 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
136 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
147 int keySize) in generateDerivedMacParameters() argument
149 return generateDerivedParameters(keySize); in generateDerivedMacParameters()
DPKCS12ParametersGenerator.java173 int keySize) in generateDerivedParameters() argument
175 keySize = keySize / 8; in generateDerivedParameters()
177 byte[] dKey = generateDerivedKey(KEY_MATERIAL, keySize); in generateDerivedParameters()
179 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters()
192 int keySize, in generateDerivedParameters() argument
195 keySize = keySize / 8; in generateDerivedParameters()
198 byte[] dKey = generateDerivedKey(KEY_MATERIAL, keySize); in generateDerivedParameters()
202 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), iv, 0, ivSize); in generateDerivedParameters()
213 int keySize) in generateDerivedMacParameters() argument
215 keySize = keySize / 8; in generateDerivedMacParameters()
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
DJCESecretKeyFactory.java111 private int keySize; field in JCESecretKeyFactory.PBEKeyFactory
120 int keySize, in PBEKeyFactory() argument
128 this.keySize = keySize; in PBEKeyFactory()
143 … return new JCEPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
148 param = Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
152 param = Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret()
155 … return new JCEPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
168 private int keySize; field in JCESecretKeyFactory.DESPBEKeyFactory
177 int keySize, in DESPBEKeyFactory() argument
185 this.keySize = keySize; in DESPBEKeyFactory()
[all …]
DJCEPBEKey.java19 int keySize; field in JCEPBEKey
33 int keySize, in JCEPBEKey() argument
42 this.keySize = keySize; in JCEPBEKey()
100 return keySize; in getKeySize()
DJCEKeyGenerator.java20 protected int keySize; field in JCEKeyGenerator
32 this.keySize = this.defaultKeySize = defaultKeySize; in JCEKeyGenerator()
55 int keySize, in engineInit() argument
65 engine.init(new KeyGenerationParameters(random, keySize)); in engineInit()
DPBE.java222 int keySize, in makePBEParameters() argument
242 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
246 param = generator.generateDerivedParameters(keySize); in makePBEParameters()
266 int keySize) in makePBEMacParameters() argument
283 param = generator.generateDerivedMacParameters(keySize); in makePBEMacParameters()
DJCEMac.java58 private int keySize = 160; field in JCEMac
70 int keySize) in JCEMac() argument
75 this.keySize = keySize; in JCEMac()
/external/webkit/Source/WebCore/platform/mac/
DSSLKeyGeneratorMac.cpp47 UInt32 keySize; in signedPublicKeyAndChallengeString() local
50 keySize = 2048; in signedPublicKeyAndChallengeString()
53 keySize = 1024; in signedPublicKeyAndChallengeString()
56 keySize = 512; in signedPublicKeyAndChallengeString()
65 …RetainPtr<CFStringRef> result(AdoptCF, wkSignedPublicKeyAndChallengeString(keySize, challengeStrin… in signedPublicKeyAndChallengeString()
DWebCoreSystemInterface.h120 extern CFStringRef (*wkSignedPublicKeyAndChallengeString)(unsigned keySize, CFStringRef challenge, …
DWebCoreSystemInterface.mm51 CFStringRef (*wkSignedPublicKeyAndChallengeString)(unsigned keySize, CFStringRef challenge, CFStrin…
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/
DPBEParametersGenerator.java75 public abstract CipherParameters generateDerivedParameters(int keySize); in generateDerivedParameters() argument
85 public abstract CipherParameters generateDerivedParameters(int keySize, int ivSize); in generateDerivedParameters() argument
94 public abstract CipherParameters generateDerivedMacParameters(int keySize); in generateDerivedMacParameters() argument
/external/icu4c/samples/legacy/
Dnewcol.cpp70 int32_t keySize = 0; in test_current() local
77 keySize = getSortKey_current("ja", data[i], -1, keys[i], 32); in test_current()
78 fprintf(stderr, "For i=%d, size of sortkey is %d\n", i, keySize); in test_current()
Doldcol.cpp86 int32_t keySize = 0; in test_legacy() local
94 keySize = getSortKey_legacy("ja", data[i], -1, keys[i], 32); in test_legacy()
95 fprintf(stderr, "For i=%d, size of sortkey is %d\n", i, keySize); in test_legacy()
Dlegacy.cpp49 void printKeys(const char *comment, uint8_t keys[][32], int32_t keySize) { in printKeys() argument
53 for(i = 0; i<keySize; i++) { in printKeys()
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator2.java35 int keySize; field in MyKeyPairGenerator2
59 keySize = keysize; in initialize()
DMyKeyPairGenerator1.java39 public int keySize; field in MyKeyPairGenerator1
68 keySize = keysize; in initialize()
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/symmetric/
DAES.java112 public KeyGen(int keySize) in KeyGen() argument
114 super("AES", keySize, new CipherKeyGenerator()); in KeyGen()
DDESede.java154 int keySize, in engineInit() argument
157 super.engineInit(keySize, random); in engineInit()
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/
DBlockCipherFactory.java26 public CipherEntry(String type, int blockSize, int keySize, String cipherClass) in CipherEntry() argument
30 this.keysize = keySize; in CipherEntry()
/external/dropbear/libtomcrypt/notes/
Dtech0006.txt65 keySize INTEGER, -- Curve size (in bits) divided by eight
73 keySize INTEGER, -- Curve size (in bits) divided by eight
/external/webkit/Source/WebKit/win/
DWebURLResponse.cpp441 DWORD keySize = sizeof(extension)/sizeof(extension[0]); in suggestedFileExtension() local
442 … err = RegQueryValueEx(subKey, TEXT("Extension"), 0, &keyType, (LPBYTE)extension, &keySize); in suggestedFileExtension()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKeyPairGenerator1Test.java421 ((MyKeyPairGenerator1) mKPG).keySize); in testKeyPairGenerator12()
/external/webkit/WebKitLibraries/
DWebKitSystemInterface.h29 CFStringRef WKSignedPublicKeyAndChallengeString(unsigned keySize, CFStringRef challenge, CFStringRe…

12