Home
last modified time | relevance | path

Searched refs:lh (Results 1 – 8 of 8) sorted by relevance

/openssl-master/crypto/lhash/
A Dlhash.c112 if ((lh->up_load <= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)) && !expand(lh)) in OPENSSL_LH_insert()
159 (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes))) in OPENSSL_LH_delete()
230 p = lh->p; in expand()
246 lh->p++; in expand()
273 np = lh->b[lh->p + lh->pmax - 1]; in contract()
274 lh->b[lh->p + lh->pmax - 1] = NULL; /* 24/07-92 - eay - weird but :-( */ in contract()
286 lh->p = lh->pmax - 1; in contract()
289 lh->p--; in contract()
294 n1 = lh->b[(int)lh->p]; in contract()
296 lh->b[(int)lh->p] = np; in contract()
[all …]
A Dlh_stats.c24 void OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp) in OPENSSL_LH_stats() argument
32 OPENSSL_LH_stats_bio(lh, bp); in OPENSSL_LH_stats()
36 void OPENSSL_LH_node_stats(const OPENSSL_LHASH *lh, FILE *fp) in OPENSSL_LH_node_stats() argument
44 OPENSSL_LH_node_stats_bio(lh, bp); in OPENSSL_LH_node_stats()
56 OPENSSL_LH_node_usage_stats_bio(lh, bp); in OPENSSL_LH_node_usage_stats()
62 void OPENSSL_LH_stats_bio(const OPENSSL_LHASH *lh, BIO *out) in OPENSSL_LH_stats_bio() argument
87 for (i = 0; i < lh->num_nodes; i++) { in OPENSSL_LH_node_stats_bio()
88 for (n = lh->b[i], num = 0; n != NULL; n = n->next) in OPENSSL_LH_node_stats_bio()
101 for (i = 0; i < lh->num_nodes; i++) { in OPENSSL_LH_node_usage_stats_bio()
114 (int)(total / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio()
[all …]
/openssl-master/include/openssl/
A Dlhash.h.in82 int OPENSSL_LH_error(OPENSSL_LHASH *lh);
84 void OPENSSL_LH_free(OPENSSL_LHASH *lh);
85 void OPENSSL_LH_flush(OPENSSL_LHASH *lh);
86 void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data);
97 void OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp);
148 return (const OPENSSL_LHASH *)lh; \
152 return (OPENSSL_LHASH *)lh; \
178 OPENSSL_LH_free((OPENSSL_LHASH *)lh); \
182 OPENSSL_LH_flush((OPENSSL_LHASH *)lh); \
198 return OPENSSL_LH_error((OPENSSL_LHASH *)lh); \
[all …]
/openssl-master/util/perl/OpenSSL/
A DParseC.pm300 static ossl_inline void lh_$1_free(LHASH_OF($1) *lh);
301 static ossl_inline $1 *lh_$1_insert(LHASH_OF($1) *lh, $1 *d);
302 static ossl_inline $1 *lh_$1_delete(LHASH_OF($1) *lh, const $1 *d);
303 static ossl_inline $1 *lh_$1_retrieve(LHASH_OF($1) *lh, const $1 *d);
304 static ossl_inline int lh_$1_error(LHASH_OF($1) *lh);
305 static ossl_inline unsigned long lh_$1_num_items(LHASH_OF($1) *lh);
306 static ossl_inline void lh_$1_node_stats_bio(const LHASH_OF($1) *lh, BIO *out);
307 static ossl_inline void lh_$1_node_usage_stats_bio(const LHASH_OF($1) *lh,
309 static ossl_inline void lh_$1_stats_bio(const LHASH_OF($1) *lh, BIO *out);
310 static ossl_inline unsigned long lh_$1_get_down_load(LHASH_OF($1) *lh);
[all …]
/openssl-master/crypto/ec/
A Dec2_smpl.c512 BIGNUM *lh, *y2; in ossl_ec_GF2m_simple_is_on_curve() local
540 lh = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_is_on_curve()
541 if (lh == NULL) in ossl_ec_GF2m_simple_is_on_curve()
550 if (!BN_GF2m_add(lh, point->X, group->a)) in ossl_ec_GF2m_simple_is_on_curve()
552 if (!field_mul(group, lh, lh, point->X, ctx)) in ossl_ec_GF2m_simple_is_on_curve()
554 if (!BN_GF2m_add(lh, lh, point->Y)) in ossl_ec_GF2m_simple_is_on_curve()
556 if (!field_mul(group, lh, lh, point->X, ctx)) in ossl_ec_GF2m_simple_is_on_curve()
558 if (!BN_GF2m_add(lh, lh, group->b)) in ossl_ec_GF2m_simple_is_on_curve()
562 if (!BN_GF2m_add(lh, lh, y2)) in ossl_ec_GF2m_simple_is_on_curve()
564 ret = BN_is_zero(lh); in ossl_ec_GF2m_simple_is_on_curve()
/openssl-master/crypto/txt_db/
A Dtxt_db.c134 LHASH_OF(OPENSSL_STRING) *lh; in TXT_DB_get_by_index()
140 lh = db->index[idx]; in TXT_DB_get_by_index()
141 if (lh == NULL) { in TXT_DB_get_by_index()
145 ret = lh_OPENSSL_STRING_retrieve(lh, value); in TXT_DB_get_by_index()
/openssl-master/crypto/engine/
A Deng_table.c67 LHASH_OF(ENGINE_PILE) *lh; in int_table_check()
73 if ((lh = lh_ENGINE_PILE_new(engine_pile_hash, engine_pile_cmp)) == NULL) in int_table_check()
75 *t = (ENGINE_TABLE *)lh; in int_table_check()
/openssl-master/doc/man3/
A DOPENSSL_LH_COMPFUNC.pod45 void OPENSSL_LH_free(OPENSSL_LHASH *lh);
46 void OPENSSL_LH_flush(OPENSSL_LHASH *lh);
48 void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data);
49 void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data);
50 void *OPENSSL_LH_retrieve(OPENSSL_LHASH *lh, const void *data);
52 void OPENSSL_LH_doall(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNC func);
53 void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg);
55 int OPENSSL_LH_error(OPENSSL_LHASH *lh);

Completed in 18 milliseconds