Searched defs:keysize (Results 1 - 25 of 45) sorted by relevance

12

/external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/
H A DMyKeyGeneratorSpi.java53 protected void engineInit(int keysize, SecureRandom random) { argument
54 if (keysize <= 77) {
55 throw new IllegalArgumentException("Invalid keysize");
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DMyAlgorithmParameterGeneratorSpi.java38 protected void engineInit(int keysize, SecureRandom random) { argument
39 if (keysize < 0) {
40 throw new IllegalArgumentException("keysize < 0");
H A DMyKeyPairGenerator2.java55 public void initialize(int keysize, SecureRandom random) { argument
56 if (keysize < 64) {
57 throw new InvalidParameterException("Incorrect keysize parameter");
59 keySize = keysize;
H A DMyKeyPairGeneratorSpi.java38 public void initialize(int keysize, SecureRandom random) { argument
39 if (keysize < 100) {
41 "Invalid keysize: less than 100");
H A DMyKeyPairGenerator1.java61 public void initialize(int keysize, SecureRandom random) { argument
62 if ((keysize < 0) || ((keysize % 100) != 0)) {
63 throw new InvalidParameterException("Incorrect keysize parameter");
68 keySize = keysize;
/external/dropbear/
H A Dalgo.h55 unsigned long keysize; member in struct:dropbear_cipher
61 unsigned long keysize; member in struct:dropbear_hash
H A Ddropbearkey.c101 unsigned int keysize; local
197 keysize = bits / 8;
200 keysize = DSS_SIZE;
202 keysize = RSA_SIZE;
209 fprintf(stderr, "Will output %d bit %s secret key to '%s'\n", keysize*8,
222 key->rsakey = gen_rsa_priv_key(keysize); /* 128 bytes = 1024 bit */
227 key->dsskey = gen_dss_priv_key(keysize); /* 128 bytes = 1024 bit */
/external/dropbear/libtomcrypt/src/pk/ecc/
H A Decc_make_key.c30 @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) argument
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...]
/external/dropbear/libtomcrypt/src/ciphers/
H A Dxtea.c190 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
193 int xtea_keysize(int *keysize) argument
195 LTC_ARGCHK(keysize != NULL);
196 if (*keysize < 16) {
199 *keysize = 16;
H A Drc2.c341 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
344 int rc2_keysize(int *keysize) argument
346 LTC_ARGCHK(keysize != NULL);
347 if (*keysize < 8) {
349 } else if (*keysize > 128) {
350 *keysize = 128;
H A Dblowfish.c574 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
577 int blowfish_keysize(int *keysize) argument
579 LTC_ARGCHK(keysize != NULL);
581 if (*keysize < 8) {
583 } else if (*keysize > 56) {
584 *keysize = 56;
H A Dkasumi.c241 int kasumi_keysize(int *keysize) argument
243 LTC_ARGCHK(keysize != NULL);
244 if (*keysize >= 16) {
245 *keysize = 16;
H A Dkhazad.c837 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
840 int khazad_keysize(int *keysize) argument
842 LTC_ARGCHK(keysize != NULL);
843 if (*keysize >= 16) {
844 *keysize = 16;
H A Dkseed.c358 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
361 int kseed_keysize(int *keysize) argument
363 LTC_ARGCHK(keysize != NULL);
364 if (*keysize >= 16) {
365 *keysize = 16;
H A Dnoekeon.c284 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
287 int noekeon_keysize(int *keysize) argument
289 LTC_ARGCHK(keysize != NULL);
290 if (*keysize < 16) {
293 *keysize = 16;
H A Drc5.c301 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
304 int rc5_keysize(int *keysize) argument
306 LTC_ARGCHK(keysize != NULL);
307 if (*keysize < 8) {
309 } else if (*keysize > 128) {
310 *keysize = 128;
H A Drc6.c328 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
331 int rc6_keysize(int *keysize) argument
333 LTC_ARGCHK(keysize != NULL);
334 if (*keysize < 8) {
336 } else if (*keysize > 128) {
337 *keysize = 128;
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
H A Dsvga_state_vs.c49 unsigned keysize = svga_vs_key_size( a ); local
50 return memcmp( a, b, keysize );
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dprog_cache.c175 const void *key, GLuint keysize)
178 memcmp(cache->last->key, key, keysize) == 0) {
182 const GLuint hash = hash_key(key, keysize);
186 if (c->hash == hash && memcmp(c->key, key, keysize) == 0) {
200 const void *key, GLuint keysize,
203 const GLuint hash = hash_key(key, keysize);
208 c->key = malloc(keysize);
209 memcpy(c->key, key, keysize);
228 const void *key, GLuint keysize,
231 const GLuint hash = hash_key(key, keysize);
174 _mesa_search_program_cache(struct gl_program_cache *cache, const void *key, GLuint keysize) argument
198 _mesa_program_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_program *program) argument
226 _mesa_shader_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_shader_program *program) argument
[all...]
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/
H A DBlockCipherFactory.java23 int keysize; field in class:BlockCipherFactory.CipherEntry
30 this.keysize = keySize;
128 return ce.keysize;
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_state_vs.c49 unsigned keysize = svga_vs_key_size( a ); local
50 return memcmp( a, b, keysize );
/external/mesa3d/src/mesa/program/
H A Dprog_cache.c175 const void *key, GLuint keysize)
178 memcmp(cache->last->key, key, keysize) == 0) {
182 const GLuint hash = hash_key(key, keysize);
186 if (c->hash == hash && memcmp(c->key, key, keysize) == 0) {
200 const void *key, GLuint keysize,
203 const GLuint hash = hash_key(key, keysize);
208 c->key = malloc(keysize);
209 memcpy(c->key, key, keysize);
228 const void *key, GLuint keysize,
231 const GLuint hash = hash_key(key, keysize);
174 _mesa_search_program_cache(struct gl_program_cache *cache, const void *key, GLuint keysize) argument
198 _mesa_program_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_program *program) argument
226 _mesa_shader_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_shader_program *program) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/translate/
H A Dtranslate.h141 int keysize = translate_keysize(a); local
143 memset(ptr + keysize, 0, sizeof(*a) - keysize);
/external/chromium_org/third_party/smhasher/src/
H A DSpeedTest.cpp231 void TinySpeedTest ( pfHash hash, int hashsize, int keysize, uint32_t seed, bool verbose, double & /*outCycles*/ ) argument
235 if(verbose) printf("Small key speed test - %4d-byte keys - ",keysize);
237 double cycles = SpeedTest(hash,seed,trials,keysize,0);
/external/dropbear/libtomcrypt/src/ciphers/aes/
H A Daes.c736 @param keysize [in/out] The length of the recommended key (in bytes). This function will store the suitable size back in this variable.
739 int ECB_KS(int *keysize) argument
741 LTC_ARGCHK(keysize != NULL);
743 if (*keysize < 16)
745 if (*keysize < 24) {
746 *keysize = 16;
748 } else if (*keysize < 32) {
749 *keysize = 24;
752 *keysize = 32;

Completed in 600 milliseconds

12