/openssl-master/providers/implementations/rands/ |
A D | drbg_hash.c | 186 && add_bytes(drbg, hash->V, hash->vtmp, hash->blocklen); in add_hash_to_v() 214 memcpy(hash->vtmp, hash->V, drbg->seedlen); in hash_gen() 222 if (!EVP_DigestFinal(hash->ctx, hash->vtmp, NULL)) in hash_gen() 299 memcpy(hash->V, hash->C, drbg->seedlen); in drbg_hash_reseed() 301 return hash_df1(drbg, hash->C, 0x00, hash->V, drbg->seedlen); in drbg_hash_reseed() 347 && add_bytes(drbg, hash->V, hash->C, drbg->seedlen) in drbg_hash_generate() 366 OPENSSL_cleanse(hash->V, sizeof(hash->V)); in drbg_hash_uninstantiate() 367 OPENSSL_cleanse(hash->C, sizeof(hash->C)); in drbg_hash_uninstantiate() 368 OPENSSL_cleanse(hash->vtmp, sizeof(hash->vtmp)); in drbg_hash_uninstantiate() 392 hash = OPENSSL_secure_zalloc(sizeof(*hash)); in drbg_hash_new() [all …]
|
/openssl-master/crypto/lhash/ |
A D | lhash.c | 107 unsigned long hash; in OPENSSL_LH_insert() local 124 nn->hash = hash; in OPENSSL_LH_insert() 139 unsigned long hash; in OPENSSL_LH_delete() local 167 unsigned long hash; in OPENSSL_LH_retrieve() local 227 unsigned long hash; in expand() local 256 hash = np->hash; in expand() 308 unsigned long hash, nn; in getrn() local 311 hash = (*(lh->hash)) (data); in getrn() 313 *rhash = hash; in getrn() 315 nn = hash % lh->pmax; in getrn() [all …]
|
A D | lhash_local.h | 16 unsigned long hash; member 22 OPENSSL_LH_HASHFUNC hash; member
|
/openssl-master/crypto/sm2/ |
A D | sm2_sign.c | 33 EVP_MD_CTX *hash = NULL; in ossl_sm2_compute_z_digest() local 46 hash = EVP_MD_CTX_new(); in ossl_sm2_compute_z_digest() 48 if (hash == NULL || ctx == NULL) { in ossl_sm2_compute_z_digest() 66 if (!EVP_DigestInit(hash, digest)) { in ossl_sm2_compute_z_digest() 82 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest() 87 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest() 137 EVP_MD_CTX_free(hash); in ossl_sm2_compute_z_digest() 147 EVP_MD_CTX *hash = EVP_MD_CTX_new(); in sm2_compute_msg_hash() local 161 if (hash == NULL || z == NULL) { in sm2_compute_msg_hash() 177 if (!EVP_DigestInit(hash, fetched_digest) in sm2_compute_msg_hash() [all …]
|
A D | sm2_crypt.c | 121 EVP_MD_CTX *hash = EVP_MD_CTX_new(); in ossl_sm2_encrypt() local 141 if (hash == NULL || C3_size <= 0) { in ossl_sm2_encrypt() 222 if (EVP_DigestInit(hash, fetched_digest) == 0 in ossl_sm2_encrypt() 224 || EVP_DigestUpdate(hash, msg, msg_len) == 0 in ossl_sm2_encrypt() 226 || EVP_DigestFinal(hash, C3, NULL) == 0) { in ossl_sm2_encrypt() 263 EVP_MD_CTX_free(hash); in ossl_sm2_encrypt() 291 EVP_MD_CTX *hash = NULL; in ossl_sm2_decrypt() local 370 hash = EVP_MD_CTX_new(); in ossl_sm2_decrypt() 371 if (hash == NULL) { in ossl_sm2_decrypt() 376 if (!EVP_DigestInit(hash, digest) in ossl_sm2_decrypt() [all …]
|
/openssl-master/doc/man3/ |
A D | OPENSSL_LH_COMPFUNC.pod | 15 - dynamic hash table 59 This library implements type-checked dynamic hash tables. The hash 65 arbitrary data entries, and specifies the 'hash' and 'compare' 68 an unsigned long hash value for its key field. The hash value is 74 If your hash table 75 will contain items of some particular type and the I<hash> and 76 I<compare> callbacks hash/compare these types, then the 114 hash table (see below). 119 remaining entries in the hash table (see below). 142 /* Call "TYPE_cleanup" against all items in a hash table. */ [all …]
|
A D | OPENSSL_LH_stats.pod | 24 accessing the hash table. 26 OPENSSL_LH_stats() prints out statistics on the size of the hash table, how 31 hash table. 34 hash table. It prints the 'load' and the 'actual load'. The load is 35 the average number of data items per 'bucket' in the hash table. The 38 average number of searches that will need to find an item in the hash
|
A D | X509_LOOKUP_hash_dir.pod | 88 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
|
A D | HMAC.pod | 56 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). 92 HMAC_Init_ex() initializes or reuses a B<HMAC_CTX> structure to use the hash 103 HMAC_Init() initializes a B<HMAC_CTX> structure to use the hash 111 must have space for the hash function output. 121 HMAC_size() returns the length in bytes of the underlying hash function output. 137 HMAC_size() returns the length in bytes of the underlying hash function output
|
A D | MDC2_Init.pod | 5 MDC2, MDC2_Init, MDC2_Update, MDC2_Final - MDC2 hash function 29 MDC2 is a method to construct hash functions with 128 bit output from 51 hash functions directly. 55 MDC2() returns a pointer to the hash value.
|
/openssl-master/tools/ |
A D | c_rehash.in | 165 my ($hash, $fprint) = `"$openssl" x509 $x509hash -fingerprint -noout -in "$fname"`; 166 chomp $hash; 180 $hash .= ".$suffix"; 183 symlink $fname, $hash || warn "Can't symlink, $!"; 213 while(exists $hashlist{"$hash.r$suffix"}) { 215 if ($hashlist{"$hash.r$suffix"} eq $fprint) { 223 print "link $fname -> $hash\n" if $verbose; 226 print "cp $fname -> $hash\n" if $verbose;
|
/openssl-master/crypto/ess/ |
A D | ess_lib.c | 68 if (!ASN1_OCTET_STRING_set(cid->hash, cert_sha1, SHA_DIGEST_LENGTH)) in ESS_CERT_ID_new_init() 142 unsigned char hash[EVP_MAX_MD_SIZE]; in ESS_CERT_ID_V2_new_init() local 143 unsigned int hash_len = sizeof(hash); in ESS_CERT_ID_V2_new_init() 146 memset(hash, 0, sizeof(hash)); in ESS_CERT_ID_V2_new_init() 164 if (!X509_digest(cert, hash_alg, hash, &hash_len)) in ESS_CERT_ID_V2_new_init() 167 if (!ASN1_OCTET_STRING_set(cid->hash, hash, hash_len)) in ESS_CERT_ID_V2_new_init() 257 cid_hash_len = cid != NULL ? cid->hash->length : cid_v2->hash->length; in find() 264 if (memcmp(cid != NULL ? cid->hash->data : cid_v2->hash->data, in find()
|
/openssl-master/apps/ |
A D | rehash.c | 84 unsigned int hash; member 131 unsigned int ndx = (type + hash) % OSSL_NELEM(hash_table); in add_entry() 134 if (bp->type == type && bp->hash == hash) in add_entry() 141 bp->hash = hash; in add_entry() 194 unsigned int hash = 0; in handle_symlink() local 204 hash <<= 4; in handle_symlink() 205 hash += OPENSSL_hexchar2int(ch); in handle_symlink() 225 return add_entry(type, hash, linktarget, NULL, 0, id); in handle_symlink() 409 BIO_snprintf(buf, buflen, "%08x.%s%d", bp->hash, in do_dir() 420 dirname, pathsep, &n, bp->hash, in do_dir() [all …]
|
/openssl-master/crypto/x509/ |
A D | by_dir.c | 35 unsigned long hash; member 136 static void by_dir_hash_free(BY_DIR_HASH *hash) in by_dir_hash_free() argument 138 OPENSSL_free(hash); in by_dir_hash_free() 144 if ((*a)->hash > (*b)->hash) in by_dir_hash_cmp() 146 if ((*a)->hash < (*b)->hash) in by_dir_hash_cmp() 279 htmp.hash = h; in get_cert_by_subject_ex() 366 htmp.hash = h; in get_cert_by_subject_ex() 378 hent->hash = h; in get_cert_by_subject_ex()
|
/openssl-master/ssl/ |
A D | tls13_enc.c | 261 unsigned char hash[EVP_MAX_MD_SIZE]; in tls13_final_finish_mac() local 274 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashlen)) { in tls13_final_finish_mac() 292 params, key, hashlen, hash, hashlen, in tls13_final_finish_mac() 311 const EVP_MD *hash; in tls13_setup_key_block() local 324 s->s3.tmp.new_hash = hash; in tls13_setup_key_block() 332 const unsigned char *hash, in derive_secret_key_and_iv() argument 424 unsigned char *hash = hashval; in tls13_change_cipher_state() local 576 hash = s->handshake_traffic_hash; in tls13_change_cipher_state() 588 hash = s->server_finished_hash; in tls13_change_cipher_state() 826 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material() [all …]
|
A D | t1_enc.c | 527 const EVP_MD *hash; in tls1_setup_key_block() local 536 if (!ssl_cipher_get_evp(s->ctx, s->session, &c, &hash, &mac_type, in tls1_setup_key_block() 546 s->s3.tmp.new_hash = hash; in tls1_setup_key_block() 611 unsigned char hash[EVP_MAX_MD_SIZE]; in tls1_final_finish_mac() local 622 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashlen)) { in tls1_final_finish_mac() 633 OPENSSL_cleanse(hash, hashlen); in tls1_final_finish_mac() 641 unsigned char hash[EVP_MAX_MD_SIZE * 2]; in tls1_generate_master_secret() local 649 || !ssl_handshake_hash(s, hash, sizeof(hash), &hashlen)) { in tls1_generate_master_secret() 655 BIO_dump(trc_out, (char *)hash, hashlen); in tls1_generate_master_secret() 660 hash, hashlen, in tls1_generate_master_secret() [all …]
|
/openssl-master/crypto/ct/ |
A D | ct_sct_ctx.c | 205 unsigned char **hash, size_t *hash_len) in ct_public_key_hash() argument 217 if (*hash != NULL && *hash_len >= SHA256_DIGEST_LENGTH) { in ct_public_key_hash() 218 md = *hash; in ct_public_key_hash() 233 if (md != *hash) { in ct_public_key_hash() 234 OPENSSL_free(*hash); in ct_public_key_hash() 235 *hash = md; in ct_public_key_hash()
|
/openssl-master/test/ |
A D | ca-and-certs.cnf | 35 subjectKeyIdentifier = hash 41 subjectKeyIdentifier = hash 47 subjectKeyIdentifier = hash 85 subjectKeyIdentifier = hash
|
/openssl-master/crypto/ec/curve448/ |
A D | eddsa.c | 272 const uint8_t hash[64], const uint8_t *context, in ossl_c448_ed448_sign_prehash() 275 return ossl_c448_ed448_sign(ctx, signature, privkey, pubkey, hash, 64, 1, in ossl_c448_ed448_sign_prehash() 368 const uint8_t hash[64], const uint8_t *context, in ossl_c448_ed448_verify_prehash() 371 return ossl_c448_ed448_verify(ctx, signature, pubkey, hash, 64, 1, context, in ossl_c448_ed448_verify_prehash() 397 ossl_ed448ph_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig, const uint8_t hash[64], in ossl_ed448ph_sign() 402 hash, context, context_len, in ossl_ed448ph_sign() 407 ossl_ed448ph_verify(OSSL_LIB_CTX *ctx, const uint8_t hash[64], in ossl_ed448ph_verify() 412 return ossl_c448_ed448_verify_prehash(ctx, signature, public_key, hash, in ossl_ed448ph_verify()
|
A D | curve448_local.h | 14 ossl_ed448ph_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig, const uint8_t hash[64], 19 ossl_ed448ph_verify(OSSL_LIB_CTX *ctx, const uint8_t hash[64],
|
/openssl-master/demos/certs/ |
A D | ca.cnf | 42 subjectKeyIdentifier=hash 51 subjectKeyIdentifier=hash 64 subjectKeyIdentifier=hash 74 subjectKeyIdentifier=hash
|
/openssl-master/external/perl/Text-Template-1.56/lib/Text/ |
A D | Template.pm | 540 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-master/include/crypto/ |
A D | ess.h | 34 ASN1_OCTET_STRING *hash; /* Always SHA-1 digest. */ member 60 ASN1_OCTET_STRING *hash; member
|
/openssl-master/engines/ |
A D | e_capi.txt | 9 CAPI_R_CANT_CREATE_HASH_OBJECT:100:cant create hash object 12 CAPI_R_CANT_SET_HASH_VALUE:103:cant set hash value 23 CAPI_R_ERROR_SIGNING_HASH:114:error signing hash
|
/openssl-master/external/perl/Text-Template-1.56/t/ |
A D | warnings.t | 41 $template->fill_in(package => 'MY', hash => { include => sub { 'XX' } }); 44 $template->fill_in(package => 'MY', hash => { include => sub { 'XX' } });
|