HomeSort by relevance Sort by last modified time
    Searched full:keysize (Results 1 - 25 of 156) sorted by null

1 2 3 4 5 6 7

  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/
PKCS5S1ParametersGenerator.java 58 * @param keySize the size of the key we want (in bits)
63 int keySize)
65 keySize = keySize / 8;
67 if (keySize > digest.getDigestSize())
70 "Can't generate a derived key " + keySize + " bytes long.");
75 return new KeyParameter(dKey, 0, keySize);
83 * @param keySize the size of the key we want (in bits)
86 * @exception IllegalArgumentException if keySize + ivSize is larger than the base hash size.
89 int keySize,
    [all...]
OpenSSLPBEParametersGenerator.java 82 * @param keySize the size of the key we want (in bits)
87 int keySize)
89 keySize = keySize / 8;
91 byte[] dKey = generateDerivedKey(keySize);
93 return new KeyParameter(dKey, 0, keySize);
101 * @param keySize the size of the key we want (in bits)
104 * @exception IllegalArgumentException if keySize + ivSize is larger than the base hash size.
107 int keySize,
110 keySize = keySize / 8
    [all...]
PKCS5S2ParametersGenerator.java 105 * @param keySize the size of the key we want (in bits)
109 int keySize)
111 keySize = keySize / 8;
113 byte[] dKey = generateDerivedKey(keySize);
115 return new KeyParameter(dKey, 0, keySize);
123 * @param keySize the size of the key we want (in bits)
128 int keySize,
131 keySize = keySize / 8
    [all...]
PKCS12ParametersGenerator.java 169 * @param keySize the size of the key we want (in bits)
173 int keySize)
175 keySize = keySize / 8;
177 byte[] dKey = generateDerivedKey(KEY_MATERIAL, keySize);
179 return new KeyParameter(dKey, 0, keySize);
187 * @param keySize the size of the key we want (in bits)
192 int keySize,
195 keySize = keySize / 8
    [all...]
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
MyKeyPairGenerator2.java 35 int keySize;
55 public void initialize(int keysize, SecureRandom random) {
56 if (keysize < 64) {
57 throw new InvalidParameterException("Incorrect keysize parameter");
59 keySize = keysize;
MyKeyPairGenerator1.java 39 public int keySize;
61 public void initialize(int keysize, SecureRandom random) {
62 if ((keysize < 0) || ((keysize % 100) != 0)) {
63 throw new InvalidParameterException("Incorrect keysize parameter");
68 keySize = keysize;
MyAlgorithmParameterGeneratorSpi.java 38 protected void engineInit(int keysize, SecureRandom random) {
39 if (keysize < 0) {
40 throw new IllegalArgumentException("keysize < 0");
MyKeyPairGeneratorSpi.java 38 public void initialize(int keysize, SecureRandom random) {
39 if (keysize < 100) {
41 "Invalid keysize: less than 100");
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyKeyPairGenerator2.java 36 int keySize;
56 public void initialize(int keysize, SecureRandom random) {
57 if (keysize < 64) {
58 throw new InvalidParameterException("Incorrect keysize parameter");
60 keySize = keysize;
MyKeyPairGenerator1.java 40 public int keySize;
62 public void initialize(int keysize, SecureRandom random) {
63 if ((keysize < 0) || ((keysize % 100) != 0)) {
64 throw new InvalidParameterException("Incorrect keysize parameter");
69 keySize = keysize;
MyAlgorithmParameterGeneratorSpi.java 39 public void engineInit(int keysize, SecureRandom random) {
40 if (keysize < 0) {
41 throw new IllegalArgumentException("keysize < 0");
MyKeyPairGeneratorSpi.java 39 public void initialize(int keysize, SecureRandom random) {
40 if (keysize < 100) {
42 "Invalid keysize: less than 100");
  /libcore/luni/src/main/java/java/security/spec/
RSAKeyGenParameterSpec.java 38 private final int keysize; field in class:RSAKeyGenParameterSpec
46 * @param keysize
51 public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent) {
52 this.keysize = keysize;
62 return keysize;
  /external/dropbear/libtomcrypt/src/pk/ecc/
ecc_make_key.c 30 @param keysize The keysize for the new key (in octets from 20 to 65 bytes)
34 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key)
39 for (x = 0; (keysize > ltc_ecc_sets[x].size) && (ltc_ecc_sets[x].size != 0); x++);
40 keysize = ltc_ecc_sets[x].size;
42 if (keysize > ECC_MAXSIZE || ltc_ecc_sets[x].size == 0) {
56 int keysize; local
69 keysize = dp->size;
79 if (prng_descriptor[wprng].read(buf, (unsigned long)keysize, prng) != (unsigned long)keysize) {
    [all...]
  /libcore/support/src/test/java/tests/security/
AlgorithmParameterSymmetricHelper.java 36 private final int keySize;
39 public AlgorithmParameterSymmetricHelper(String algorithmName, int keySize) {
41 this.keySize = keySize;
44 public AlgorithmParameterSymmetricHelper(String algorithmName, String blockmode, int keySize) {
45 this(algorithmName, keySize);
59 generator.init(keySize);
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
JCEPBEKey.java 19 int keySize;
33 int keySize,
42 this.keySize = keySize;
100 return keySize;
JCESecretKeyFactory.java 111 private int keySize;
120 int keySize,
128 this.keySize = keySize;
143 return new JCEPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null);
148 param = Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize);
152 param = Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize);
155 return new JCEPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param);
168 private int keySize;
177 int keySize,
    [all...]
  /frameworks/base/libs/utils/
BlobCache.cpp 44 void BlobCache::set(const void* key, size_t keySize, const void* value,
46 if (mMaxKeySize < keySize) {
48 keySize, mMaxKeySize);
56 if (mMaxTotalSize < keySize + valueSize) {
58 "large: %d (limit: %d)", keySize + valueSize, mMaxTotalSize);
61 if (keySize == 0) {
62 LOGW("set: not caching because keySize is 0");
71 sp<Blob> dummyKey(new Blob(key, keySize, false));
79 sp<Blob> keyBlob(new Blob(key, keySize, true));
81 size_t newTotalSize = mTotalSize + keySize + valueSize
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/
PBEParametersGenerator.java 70 * generate derived parameters for a key of length keySize.
72 * @param keySize the length, in bits, of the key required.
75 public abstract CipherParameters generateDerivedParameters(int keySize);
78 * generate derived parameters for a key of length keySize, and
81 * @param keySize the length, in bits, of the key required.
85 public abstract CipherParameters generateDerivedParameters(int keySize, int ivSize);
88 * generate derived parameters for a key of length keySize, specifically
91 * @param keySize the length, in bits, of the key required.
94 public abstract CipherParameters generateDerivedMacParameters(int keySize);
  /external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/
MyKeyGeneratorSpi.java 53 protected void engineInit(int keysize, SecureRandom random) {
54 if (keysize <= 77) {
55 throw new IllegalArgumentException("Invalid keysize");
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
MyKeyGeneratorSpi.java 54 protected void engineInit(int keysize, SecureRandom random) {
55 if (keysize <= 77) {
56 throw new IllegalArgumentException("Invalid keysize");
  /external/webkit/Source/WebCore/platform/mac/
SSLKeyGeneratorMac.cpp 47 UInt32 keySize;
50 keySize = 2048;
53 keySize = 1024;
56 keySize = 512;
65 RetainPtr<CFStringRef> result(AdoptCF, wkSignedPublicKeyAndChallengeString(keySize, challengeStringCF.get(), keyDescription.get()));
  /libcore/luni/src/test/java/libcore/java/security/
KeyPairGeneratorTest.java 71 private static void putKeySize(String algorithm, int keySize) {
78 keySizes.add(keySize);
109 for (int keySize : keySizes) {
110 kpg.initialize(keySize);
114 kpg.initialize(keySize, (SecureRandom) null);
118 kpg.initialize(keySize, new SecureRandom());
  /libcore/luni/src/test/java/libcore/javax/crypto/
KeyGeneratorTest.java 74 private static void putKeySize(String algorithm, int keySize) {
81 keySizes.add(keySize);
138 for (int keySize : keySizes) {
139 kg.init(keySize);
142 kg.init(keySize, (SecureRandom) null);
145 kg.init(keySize, new SecureRandom());
  /external/icu4c/samples/legacy/
newcol.cpp 70 int32_t keySize = 0;
77 keySize = getSortKey_current("ja", data[i], -1, keys[i], 32);
78 fprintf(stderr, "For i=%d, size of sortkey is %d\n", i, keySize);

Completed in 440 milliseconds

1 2 3 4 5 6 7