Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 148) sorted by relevance

123456

/openssl/providers/implementations/rands/
H A Ddrbg_hash.c188 && add_bytes(drbg, hash->V, hash->vtmp, hash->blocklen); in add_hash_to_v()
216 memcpy(hash->vtmp, hash->V, drbg->seedlen); in hash_gen()
224 if (!EVP_DigestFinal(hash->ctx, hash->vtmp, NULL)) in hash_gen()
310 memcpy(hash->V, hash->C, drbg->seedlen); in drbg_hash_reseed()
312 return hash_df1(drbg, hash->C, 0x00, hash->V, drbg->seedlen); in drbg_hash_reseed()
358 && add_bytes(drbg, hash->V, hash->C, drbg->seedlen) in drbg_hash_generate()
377 OPENSSL_cleanse(hash->V, sizeof(hash->V)); in drbg_hash_uninstantiate()
378 OPENSSL_cleanse(hash->C, sizeof(hash->C)); in drbg_hash_uninstantiate()
379 OPENSSL_cleanse(hash->vtmp, sizeof(hash->vtmp)); in drbg_hash_uninstantiate()
423 hash = OPENSSL_secure_zalloc(sizeof(*hash)); in drbg_hash_new()
[all …]
/openssl/crypto/lhash/
H A Dlhash.c119 unsigned long hash; in OPENSSL_LH_insert() local
136 nn->hash = hash; in OPENSSL_LH_insert()
149 unsigned long hash; in OPENSSL_LH_delete() local
175 unsigned long hash; in OPENSSL_LH_retrieve() local
247 unsigned long hash; in expand() local
274 hash = np->hash; in expand()
327 hash = lh->hashw(data, lh->hash); in getrn()
329 hash = lh->hash(data); in getrn()
331 *rhash = hash; in getrn()
333 nn = hash % lh->pmax; in getrn()
[all …]
H A Dlhash_local.h16 unsigned long hash; member
22 OPENSSL_LH_HASHFUNC hash; member
/openssl/crypto/hashtable/
H A Dhashtable.c91 uint64_t hash = 0xcbf29ce484222325ULL; in fnv1a_hash() local
95 hash ^= key[i]; in fnv1a_hash()
96 hash *= 0x00000100000001B3ULL; in fnv1a_hash()
98 return hash; in fnv1a_hash()
124 uint64_t hash; member
597 hash, h->atomic_lock)) in ossl_ht_insert_locked()
642 uint64_t hash; in ossl_ht_insert() local
678 uint64_t hash; in ossl_ht_get() local
725 uint64_t hash; in ossl_ht_delete() local
737 neigh_idx = hash & h->md->neighborhood_mask; in ossl_ht_delete()
[all …]
/openssl/crypto/sm2/
H A Dsm2_sign.c33 EVP_MD_CTX *hash = NULL; in ossl_sm2_compute_z_digest() local
52 hash = EVP_MD_CTX_new(); in ossl_sm2_compute_z_digest()
53 if (hash == NULL) { in ossl_sm2_compute_z_digest()
76 if (!EVP_DigestInit(hash, digest)) { in ossl_sm2_compute_z_digest()
92 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
97 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
145 EVP_MD_CTX_free(hash); in ossl_sm2_compute_z_digest()
155 EVP_MD_CTX *hash = EVP_MD_CTX_new(); in sm2_compute_msg_hash() local
167 if (hash == NULL) { in sm2_compute_msg_hash()
187 if (!EVP_DigestInit(hash, fetched_digest) in sm2_compute_msg_hash()
[all …]
H A Dsm2_crypt.c120 EVP_MD_CTX *hash = EVP_MD_CTX_new(); in ossl_sm2_encrypt() local
140 if (hash == NULL || C3_size <= 0) { in ossl_sm2_encrypt()
227 if (EVP_DigestInit(hash, fetched_digest) == 0 in ossl_sm2_encrypt()
229 || EVP_DigestUpdate(hash, msg, msg_len) == 0 in ossl_sm2_encrypt()
231 || EVP_DigestFinal(hash, C3, NULL) == 0) { in ossl_sm2_encrypt()
268 EVP_MD_CTX_free(hash); in ossl_sm2_encrypt()
296 EVP_MD_CTX *hash = NULL; in ossl_sm2_decrypt() local
378 hash = EVP_MD_CTX_new(); in ossl_sm2_decrypt()
379 if (hash == NULL) { in ossl_sm2_decrypt()
384 if (!EVP_DigestInit(hash, digest) in ossl_sm2_decrypt()
[all …]
/openssl/doc/man3/
H A DOPENSSL_LH_COMPFUNC.pod18 - dynamic hash table
86 This library implements type-checked dynamic hash tables. The hash
98 arbitrary data entries, and specifies the 'hash' and 'compare'
101 an unsigned long hash value for its key field. The hash value is
107 If your hash table
108 will contain items of some particular type and the I<hash> and
109 I<compare> callbacks hash/compare these types, then the
152 remaining entries in the hash table (see below).
175 /* Call "TYPE_cleanup" against all items in a hash table. */
178 /* Then the hash table itself can be deallocated */
[all …]
H A DOPENSSL_LH_stats.pod29 accessing the hash table.
31 OPENSSL_LH_stats() prints out statistics on the size of the hash table and how
37 hash table.
40 hash table. It prints the 'load' and the 'actual load'. The load is
41 the average number of data items per 'bucket' in the hash table. The
44 average number of searches that will need to find an item in the hash
H A DX509_LOOKUP_hash_dir.pod88 with a filename of the form I<hash>.I<N> for a certificate, or
89 I<hash>.B<r>I<N> for a CRL.
90 The I<hash> is the value returned by the L<X509_NAME_hash_ex(3)> function
92 The hash can also be obtained via the B<-hash> option of the
96 incremented consecutively for each certificate or CRL with the same I<hash>
99 more objects with the same hash beyond the first missing number in the
103 certificates with same subject name hash value.
108 When checking for new CRLs once one CRL for given hash value is
112 Note that the hash algorithm used for subject name hashing changed in OpenSSL
H A DHMAC.pod56 HMAC is a MAC (message authentication code), i.e. a keyed hash
57 function used for message authentication, which is based on a hash
61 I<data> using the hash function I<evp_md> and the key I<key> which is
65 the hash function, which is no more than B<EVP_MAX_MD_SIZE> bytes).
95 HMAC_Init_ex() initializes or reuses a B<HMAC_CTX> structure to use the hash
106 HMAC_Init() initializes a B<HMAC_CTX> structure to use the hash
114 must have space for the hash function output.
124 HMAC_size() returns the length in bytes of the underlying hash function output.
140 HMAC_size() returns the length in bytes of the underlying hash function output
/openssl/crypto/ess/
H A Dess_lib.c82 if (!ASN1_OCTET_STRING_set(cid->hash, cert_sha1, SHA_DIGEST_LENGTH)) { in ESS_CERT_ID_new_init()
176 unsigned char hash[EVP_MAX_MD_SIZE]; in ESS_CERT_ID_V2_new_init() local
177 unsigned int hash_len = sizeof(hash); in ESS_CERT_ID_V2_new_init()
180 memset(hash, 0, sizeof(hash)); in ESS_CERT_ID_V2_new_init()
204 if (!X509_digest(cert, hash_alg, hash, &hash_len)) { in ESS_CERT_ID_V2_new_init()
209 if (!ASN1_OCTET_STRING_set(cid->hash, hash, hash_len)) { in ESS_CERT_ID_V2_new_init()
310 cid_hash_len = cid != NULL ? cid->hash->length : cid_v2->hash->length; in find()
317 if (memcmp(cid != NULL ? cid->hash->data : cid_v2->hash->data, in find()
/openssl/apps/
H A Drehash.c82 unsigned int hash; member
129 unsigned int ndx = (type + hash) % OSSL_NELEM(hash_table); in add_entry()
132 if (bp->type == type && bp->hash == hash) in add_entry()
139 bp->hash = hash; in add_entry()
198 unsigned int hash = 0; in handle_symlink() local
208 hash <<= 4; in handle_symlink()
209 hash += OPENSSL_hexchar2int(ch); in handle_symlink()
229 return add_entry(type, hash, linktarget, NULL, 0, id); in handle_symlink()
427 BIO_snprintf(buf, buflen, "%08x.%s%d", bp->hash, in do_dir()
438 dirname, pathsep, bp->hash, in do_dir()
[all …]
/openssl/ssl/
H A Dt1_enc.c259 const EVP_MD *hash; in tls1_setup_key_block() local
280 s->s3.tmp.new_hash = hash; in tls1_setup_key_block()
332 unsigned char hash[EVP_MAX_MD_SIZE]; in tls1_final_finish_mac() local
343 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashlen)) { in tls1_final_finish_mac()
348 if (!tls1_PRF(s, str, slen, hash, hashlen, NULL, 0, NULL, 0, NULL, 0, in tls1_final_finish_mac()
354 OPENSSL_cleanse(hash, hashlen); in tls1_final_finish_mac()
363 unsigned char hash[EVP_MAX_MD_SIZE * 2]; in tls1_generate_master_secret() local
371 || !ssl_handshake_hash(s, hash, sizeof(hash), &hashlen)) { in tls1_generate_master_secret()
377 BIO_dump(trc_out, (char *)hash, hashlen); in tls1_generate_master_secret()
382 hash, hashlen, in tls1_generate_master_secret()
[all …]
H A Dtls13_enc.c271 unsigned char hash[EVP_MAX_MD_SIZE]; in tls13_final_finish_mac() local
288 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashlen)) { in tls13_final_finish_mac()
306 params, key, hashlen, hash, hashlen, in tls13_final_finish_mac()
325 const EVP_MD *hash; in tls13_setup_key_block() local
340 s->s3.tmp.new_hash = hash; in tls13_setup_key_block()
352 const unsigned char *hash, in derive_secret_key_and_iv() argument
471 unsigned char *hash = hashval; in tls13_change_cipher_state() local
603 hash = s->handshake_traffic_hash; in tls13_change_cipher_state()
615 hash = s->server_finished_hash; in tls13_change_cipher_state()
853 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material()
[all …]
/openssl/crypto/x509/
H A Dby_dir.c35 unsigned long hash; member
134 static void by_dir_hash_free(BY_DIR_HASH *hash) in by_dir_hash_free() argument
136 OPENSSL_free(hash); in by_dir_hash_free()
142 if ((*a)->hash > (*b)->hash) in by_dir_hash_cmp()
144 if ((*a)->hash < (*b)->hash) in by_dir_hash_cmp()
275 htmp.hash = h; in get_cert_by_subject_ex()
373 htmp.hash = h; in get_cert_by_subject_ex()
384 hent->hash = h; in get_cert_by_subject_ex()
/openssl/crypto/ct/
H A Dct_sct_ctx.c202 unsigned char **hash, size_t *hash_len) in ct_public_key_hash() argument
214 if (*hash != NULL && *hash_len >= SHA256_DIGEST_LENGTH) { in ct_public_key_hash()
215 md = *hash; in ct_public_key_hash()
230 if (md != *hash) { in ct_public_key_hash()
231 OPENSSL_free(*hash); in ct_public_key_hash()
232 *hash = md; in ct_public_key_hash()
/openssl/ssl/record/methods/
H A Dssl3_meth.c222 const EVP_MD_CTX *hash; in ssl3_mac() local
229 hash = rl->md_ctx; in ssl3_mac()
231 t = EVP_MD_CTX_get_size(hash); in ssl3_mac()
239 && ssl3_cbc_record_digest_supported(hash)) { in ssl3_mac()
270 if (ssl3_cbc_digest_record(EVP_MD_CTX_get0_md(hash), in ssl3_mac()
288 if (EVP_MD_CTX_copy_ex(md_ctx, hash) <= 0 in ssl3_mac()
296 || EVP_MD_CTX_copy_ex(md_ctx, hash) <= 0 in ssl3_mac()
/openssl/test/
H A Dca-and-certs.cnf37 subjectKeyIdentifier = hash
43 subjectKeyIdentifier = hash
49 subjectKeyIdentifier = hash
87 subjectKeyIdentifier = hash
/openssl/demos/certs/
H A Dca.cnf42 subjectKeyIdentifier=hash
51 subjectKeyIdentifier=hash
64 subjectKeyIdentifier=hash
74 subjectKeyIdentifier=hash
/openssl/doc/internal/man3/
H A Dossl_ht_new.pod68 I<ht_hash_fn> The function to generate a hash value for a key, may be NULL.
72 bucket size, which will be automatically expanded with the hash table load
89 ossl_ht_free() frees an allocated hash table. Each element in the table
106 ossl_ht_flush() empties a hash table. All elements will have their
112 ossl_ht_insert() inserts an B<HT_VALUE> element into the hash table, to be
122 ossl_ht_count() returns the number of elements within the hash table.
126 ossl_ht_foreach_until() iterates over all elements in the hash table, calling
139 ossl_ht_filter() iterates over all elements of the hash table, calling
234 Inserts a value to the hash table of type TYPE into the hash table using the
276 ossl_ht_count() returns the number of elements in the hash table
[all …]
/openssl/external/perl/Text-Template-1.56/lib/Text/
H A DTemplate.pm540 my $hash = $Text::Template::{ $s . "::" };
542 foreach my $key (keys %$hash) {
543 undef $hash->{$key};
546 %$hash = ();
565 for my $hash (@$hashlist) {
566 for my $name (keys %$hash) {
567 my $val = $hash->{$name};
/openssl/tools/
H A Dc_rehash.in233 while(exists $hashlist{"$hash.$crlmark$suffix"}) {
235 if ($hashlist{"$hash.$crlmark$suffix"} eq $fprint) {
244 print "link $fname -> $hash\n" if $verbose;
247 print "copy $fname -> $hash\n" if $verbose;
/openssl/include/crypto/
H A Dess.h34 ASN1_OCTET_STRING *hash; /* Always SHA-1 digest. */ member
60 ASN1_OCTET_STRING *hash; member
/openssl/crypto/encode_decode/
H A Ddecoder_pkey.c618 unsigned long hash = 17; in decoder_cache_entry_hash() local
620 hash = (hash * 23) in decoder_cache_entry_hash()
623 hash = (hash * 23) in decoder_cache_entry_hash()
626 hash = (hash * 23) in decoder_cache_entry_hash()
629 hash = (hash * 23) in decoder_cache_entry_hash()
633 hash ^= cache->selection; in decoder_cache_entry_hash()
635 return hash; in decoder_cache_entry_hash()
/openssl/external/perl/Text-Template-1.56/t/
H A Dwarnings.t41 $template->fill_in(package => 'MY', hash => { include => sub { 'XX' } });
44 $template->fill_in(package => 'MY', hash => { include => sub { 'XX' } });

Completed in 86 milliseconds

123456