Searched refs:evp_md (Results 1 - 25 of 29) sorted by relevance

12

/macosx-10.10/OpenSSH-189/openssh/
H A Dkexdh.c58 const EVP_MD *evp_md = EVP_sha1(); local
81 EVP_DigestInit(&md, evp_md);
88 dump_digest("hash", digest, EVP_MD_size(evp_md));
91 *hashlen = EVP_MD_size(evp_md);
H A Dkexecdh.c68 const EVP_MD *evp_md,
104 EVP_DigestInit(&md, evp_md);
111 dump_digest("hash", digest, EVP_MD_size(evp_md));
114 *hashlen = EVP_MD_size(evp_md);
67 kex_ecdh_hash( const EVP_MD *evp_md, const EC_GROUP *ec_group, char *client_version_string, char *server_version_string, char *ckexinit, int ckexinitlen, char *skexinit, int skexinitlen, u_char *serverhostkeyblob, int sbloblen, const EC_POINT *client_dh_pub, const EC_POINT *server_dh_pub, const BIGNUM *shared_secret, u_char **hash, u_int *hashlen) argument
H A Dssh-ecdsa.c51 const EVP_MD *evp_md; local
62 evp_md = key_ec_nid_to_evpmd(key->ecdsa_nid);
63 EVP_DigestInit(&md, evp_md);
100 const EVP_MD *evp_md; local
113 evp_md = key_ec_nid_to_evpmd(key->ecdsa_nid);
155 EVP_DigestInit(&md, evp_md);
H A Dkexgex.c47 const EVP_MD *evp_md,
93 EVP_DigestInit(&md, evp_md);
99 *hashlen = EVP_MD_size(evp_md);
46 kexgex_hash( const EVP_MD *evp_md, char *client_version_string, char *server_version_string, char *ckexinit, int ckexinitlen, char *skexinit, int skexinitlen, u_char *serverhostkeyblob, int sbloblen, int min, int wantbits, int max, BIGNUM *prime, BIGNUM *gen, BIGNUM *client_dh_pub, BIGNUM *server_dh_pub, BIGNUM *shared_secret, u_char **hash, u_int *hashlen) argument
H A Dschnorr.h47 const EVP_MD *evp_md, const BIGNUM *x, const BIGNUM *g_x,
55 const EVP_MD *evp_md, const BIGNUM *g_x, const u_char *id, u_int idlen,
H A Dssh-dss.c55 const EVP_MD *evp_md = EVP_sha1(); local
66 EVP_DigestInit(&md, evp_md);
118 const EVP_MD *evp_md = EVP_sha1(); local
180 EVP_DigestInit(&md, evp_md);
H A Dmac.c102 mac->evp_md = (*macs[which].mdfunc)();
103 if ((evp_len = EVP_MD_size(mac->evp_md)) <= 0)
140 if (mac->evp_md == NULL)
143 HMAC_Init(&mac->evp_ctx, mac->key, mac->key_len, mac->evp_md);
200 } else if (mac->evp_md != NULL)
202 mac->evp_md = NULL;
H A Dssh-rsa.c48 const EVP_MD *evp_md; local
61 if ((evp_md = EVP_get_digestbynid(nid)) == NULL) {
65 EVP_DigestInit(&md, evp_md);
116 const EVP_MD *evp_md; local
167 if ((evp_md = EVP_get_digestbynid(nid)) == NULL) {
172 EVP_DigestInit(&md, evp_md);
H A Dkex.c364 k->evp_md = EVP_sha1();
367 k->evp_md = EVP_sha1();
370 k->evp_md = EVP_sha1();
374 k->evp_md = evp_ssh_sha256();
378 k->evp_md = kex_ecdh_name_to_evpmd(k->name);
384 k->evp_md = EVP_sha1();
388 k->evp_md = EVP_sha1();
392 k->evp_md = EVP_sha1();
526 if ((mdsz = EVP_MD_size(kex->evp_md)) <= 0)
534 EVP_DigestInit(&md, kex->evp_md);
603 const EVP_MD *evp_md = EVP_md5(); local
[all...]
H A Dkex.h114 const EVP_MD *evp_md; member in struct:Mac
142 const EVP_MD *evp_md; member in struct:Kex
H A Dgss-genr.c103 const EVP_MD *evp_md = EVP_md5(); local
125 EVP_DigestInit(&md, evp_md);
132 encoded = xmalloc(EVP_MD_size(evp_md) * 2);
133 enclen = __b64_ntop(digest, EVP_MD_size(evp_md),
134 encoded, EVP_MD_size(evp_md) * 2);
H A Dschnorr.c62 * using the hash function defined by "evp_md". Returns signature as
67 const EVP_MD *evp_md, const BIGNUM *g_v, const BIGNUM *g_x,
93 if (hash_buffer(buffer_ptr(&b), buffer_len(&b), evp_md,
118 * using the hash function "evp_md".
128 const EVP_MD *evp_md, const BIGNUM *x, const BIGNUM *g_x,
178 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, g_v, g_x,
253 * 'grp_g' using hash "evp_md".
259 const EVP_MD *evp_md, const BIGNUM *g_x, const u_char *id, u_int idlen,
307 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, e, g_x,
66 schnorr_hash(const BIGNUM *p, const BIGNUM *q, const BIGNUM *g, const EVP_MD *evp_md, const BIGNUM *g_v, const BIGNUM *g_x, const u_char *id, u_int idlen) argument
127 schnorr_sign(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, const EVP_MD *evp_md, const BIGNUM *x, const BIGNUM *g_x, const u_char *id, u_int idlen, BIGNUM **r_p, BIGNUM **e_p) argument
258 schnorr_verify(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, const EVP_MD *evp_md, const BIGNUM *g_x, const u_char *id, u_int idlen, const BIGNUM *r, const BIGNUM *e) argument
H A Droaming_client.c101 const EVP_MD *evp_md = EVP_sha1(); local
115 EVP_DigestInit(&md, evp_md);
H A Dkexecdhc.c130 kex->evp_md,
H A Dkexecdhs.c123 kex->evp_md,
H A Dkexgexc.c177 kex->evp_md,
H A Dkexgexs.c171 kex->evp_md,
/macosx-10.10/Heimdal-398.1.2/lib/hcrypto/
H A Dhmac.h79 void * HMAC(const EVP_MD *evp_md, const void *key, size_t key_len,
/macosx-10.10/OpenSSH-189/osslshim/ossl/
H A Dossl-hmac.h101 void *HMAC(const EVP_MD *evp_md, const void *key, size_t key_len,
/macosx-10.10/OpenSSL098-52/src/crypto/hmac/
H A Dhmac.h99 unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
H A Dhmac.c157 unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, argument
166 HMAC_Init(&c,key,key_len,evp_md);
/macosx-10.10/OpenSSL098-52/src/include/openssl/
H A Dhmac.h99 unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
/macosx-10.10/OpenSSL098-52/src/fips/hmac/
H A Dfips_hmac.c167 unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, argument
176 HMAC_Init(&c,key,key_len,evp_md);
/macosx-10.10/OpenSSH-189/osslshim/tests/
H A Dtest_hmac.c51 const EVP_MD *evp_md = (*alg)(); local
52 unsigned mdlen = EVP_MD_size(evp_md);
57 HMAC_Init_ex(&ctx, key, keylen, evp_md, NULL);
61 if ((mdlen != EVP_MD_size(evp_md)) || (memcmp(out, md, mdlen) != 0)) {
H A Dtest_md.c53 const EVP_MD *evp_md = (*alg)(); local
54 uint8_t buf[EVP_MD_size(evp_md)];
57 if (NULL == md[i] || NULL == msg[i] || EVP_MD_size(evp_md) != md[i]->len) {
66 rv = EVP_DigestInit_ex(ctx, evp_md, NULL);
78 unsigned buf_size = (unsigned)EVP_MD_block_size(evp_md);
85 if ((buf_size != EVP_MD_size(evp_md)) ||

Completed in 148 milliseconds

12