HomeSort by relevance Sort by last modified time
    Searched refs:hash_size (Results 1 - 25 of 30) sorted by null

1 2

  /external/ppp/pppd/
spinlock.h 39 int tdb_create_rwlocks(int fd, unsigned int hash_size);
42 #define TDB_SPINLOCK_SIZE(hash_size) (((hash_size) + 1) * sizeof(tdb_rwlock_t))
46 #define tdb_create_rwlocks(fd, hash_size) 0
52 int tdb_create_rwlocks(int fd, unsigned int hash_size);
55 #define TDB_SPINLOCK_SIZE(hash_size) 0
spinlock.c 413 int tdb_create_rwlocks(int fd, unsigned int hash_size)
418 size = TDB_SPINLOCK_SIZE(hash_size);
423 for(i = 0; i < hash_size+1; i++) {
448 for(i = 0; i < tdb->header.hash_size+1; i++) {
455 int tdb_create_rwlocks(int fd, unsigned int hash_size) { return 0; }
tdb.h 83 u32 hash_size; /* number of hash entries */ member in struct:tdb_header
123 TDB_CONTEXT *tdb_open(const char *name, int hash_size, int tdb_flags,
125 TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
tdb.c 77 #define TDB_DATA_START(hash_size) (TDB_HASH_TOP(hash_size-1) + TDB_SPINLOCK_SIZE(hash_size))
102 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
258 if (list < -1 || list >= (int)tdb->header.hash_size) {
297 if (list < -1 || list >= (int)tdb->header.hash_size) {
298 TDB_LOG((tdb, 0, "tdb_unlock: list %d invalid (%d)\n", list, tdb->header.hash_size));
553 for (i=0;i<tdb->header.hash_size;i++) {
661 if (left > TDB_DATA_START(tdb->header.hash_size)) {
922 static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size)
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
ConnectionState.java 46 protected int hash_size; field in class:ConnectionState
69 return encCipher.getOutputSize(1+hash_size); // 1 byte for data
77 return encCipher.getOutputSize(content_size+hash_size);
88 return decCipher.getOutputSize(generic_cipher_size)-hash_size;
ConnectionStateSSLv3.java 66 hash_size = cipherSuite.getMACLength();
81 logger.println(" hash size: " + hash_size);
90 // 2*hash_size + 2*key_size + 2*iv_size
91 byte[] key_block = new byte[2*hash_size + 2*key_size + 2*iv_size];
99 byte[] client_mac_secret = new byte[hash_size];
100 byte[] server_mac_secret = new byte[hash_size];
106 System.arraycopy(key_block, 0, client_mac_secret, 0, hash_size);
107 System.arraycopy(key_block, hash_size,
108 server_mac_secret, 0, hash_size);
109 System.arraycopy(key_block, 2*hash_size, client_key, 0, key_size)
    [all...]
ConnectionStateTLS.java 87 hash_size = cipherSuite.getMACLength();
103 logger.println(" hash size: " + hash_size);
112 // 2*hash_size + 2*key_size + 2*iv_size
113 byte[] key_block = new byte[2*hash_size + 2*key_size + 2*iv_size];
122 byte[] client_mac_secret = new byte[hash_size];
123 byte[] server_mac_secret = new byte[hash_size];
129 System.arraycopy(key_block, 0, client_mac_secret, 0, hash_size);
130 System.arraycopy(key_block, hash_size,
131 server_mac_secret, 0, hash_size);
132 System.arraycopy(key_block, 2*hash_size, client_key, 0, key_size)
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/tls/
tlsv1_record.c 51 rl->hash_size = MD5_MAC_LEN;
54 rl->hash_size = SHA1_MAC_LEN;
177 rl->hash_size);
187 if (clen < rl->hash_size) {
359 if (*out_len < rl->hash_size) {
366 *out_len -= rl->hash_size;
369 rl->hash_size);
389 if (hlen != rl->hash_size ||
tlsv1_record.h 45 size_t hash_size; member in struct:tlsv1_record_layer
tlsv1_client.c 83 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len +
97 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size);
98 pos += conn->rl.hash_size;
100 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size);
101 pos += conn->rl.hash_size;
594 return 2 * (conn->rl.hash_size + conn->rl.key_material_len +
tlsv1_server.c 65 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len +
79 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size);
80 pos += conn->rl.hash_size;
82 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size);
83 pos += conn->rl.hash_size;
535 return 2 * (conn->rl.hash_size + conn->rl.key_material_len +
  /external/e2fsprogs/e2fsck/
revoke.c 94 int hash_size; member in struct:jbd_revoke_table_s
117 (block << (hash_shift - 12))) & (table->hash_size - 1);
200 int journal_init_revoke(journal_t *journal, int hash_size)
210 /* Check that the hash_size is a power of two */
211 J_ASSERT ((hash_size & (hash_size-1)) == 0);
213 journal->j_revoke->hash_size = hash_size;
216 tmp = hash_size;
222 kmalloc(hash_size * sizeof(struct list_head), GFP_KERNEL)
    [all...]
  /external/webkit/WebKitTools/android/flex-2.5.4a/
sym.c 154 /* hashfunct - compute the hash value for "str" and hash size "hash_size" */
156 int hashfunct( str, hash_size )
158 int hash_size;
169 hashval %= hash_size;
  /external/wpa_supplicant/
tlsv1_common.c 195 rl->hash_size = MD5_MAC_LEN;
198 rl->hash_size = SHA1_MAC_LEN;
321 rl->hash_size);
331 if (clen < rl->hash_size) {
502 if (*out_len < rl->hash_size) {
509 *out_len -= rl->hash_size;
512 rl->hash_size);
532 if (hlen != rl->hash_size ||
tlsv1_common.h 202 size_t hash_size; member in struct:tlsv1_record_layer
  /external/e2fsprogs/intl/
gettextP.h 109 nls_uint32 hash_size; member in struct:loaded_domain
loadmsgcat.c 1044 domain->hash_size = W (domain->must_swap, data->hash_tab_size);
1046 (domain->hash_size > 2
1123 memneed = domain->hash_size * sizeof (nls_uint32);
1200 mem += domain->hash_size * sizeof (nls_uint32);
    [all...]
dcigettext.c 749 nls_uint32 idx = hash_val % domain->hash_size;
750 nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2));
781 if (idx >= domain->hash_size - incr)
782 idx -= domain->hash_size - incr;
    [all...]
  /external/dnsmasq/src/
cache.c 26 static int bignames_left, hash_size; variable
108 /* hash_size is a power of two. */
114 else if (new_size <= hash_size || !(new = whine_malloc(new_size * sizeof(struct crec *))))
121 old_size = hash_size;
123 hash_size = new_size;
150 /* hash_size is a power of two */
151 return hash_table + ((val ^ (val >> 16)) & (hash_size - 1));
307 for (i = 0; i < hash_size; i++)
600 for (i=0; i<hash_size; i++)
673 for (i=0; i<hash_size; i++
    [all...]
  /external/e2fsprogs/lib/ext2fs/
tdb.c 140 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t))
141 #define TDB_DATA_START(hash_size) TDB_HASH_TOP(hash_size-1)
162 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
194 u32 hash_size; /* number of hash entries */ member in struct:tdb_header
421 if (list < -1 || list >= (int)tdb->header.hash_size) {
520 if (list < -1 || list >= (int)tdb->header.hash_size) {
521 TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_unlock: list %d invalid (%d)\n", list, tdb->header.hash_size));
646 0, 4*tdb->header.hash_size)) {
684 0, 4*tdb->header.hash_size)) {
    [all...]
tdb.h 145 struct tdb_context *tdb_open(const char *name, int hash_size, int tdb_flags,
147 struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
  /external/chromium/third_party/zlib/
deflate.c 200 s->head[s->hash_size-1] = NIL; \
201 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
283 s->hash_size = 1 << s->hash_bits;
284 s->hash_mask = s->hash_size - 1;
289 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
    [all...]
deflate.h 137 uInt hash_size; /* number of elements in hash table */ member in struct:internal_state
138 uInt hash_bits; /* log2(hash_size) */
139 uInt hash_mask; /* hash_size-1 */
  /external/qemu/distrib/zlib-1.2.3/
deflate.c 200 s->head[s->hash_size-1] = NIL; \
201 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
283 s->hash_size = 1 << s->hash_bits;
284 s->hash_mask = s->hash_size - 1;
289 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
922 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos))
    [all...]
  /external/zlib/
deflate.c 194 s->head[s->hash_size-1] = NIL; \
195 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
277 s->hash_size = 1 << s->hash_bits;
278 s->hash_mask = s->hash_size - 1;
283 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
    [all...]

Completed in 1062 milliseconds

1 2