Symbol: md
games/hack/hack.unix.c
342
struct monst *md;
games/hack/hack.unix.c
349
if(md = makemon(&pm_mail_daemon, u.ux, u.uy)) /* always succeeds */
games/hack/hack.unix.c
350
mdrush(md,0);
games/hack/hack.unix.c
353
if(md) {
games/hack/hack.unix.c
354
if(dist(md->mx,md->my) > 2)
games/hack/hack.unix.c
359
mdrush(md,1);
games/hack/hack.unix.c
360
mondead(md);
games/hack/hack.unix.c
369
mdrush(struct monst *md, boolean away)
games/hack/hack.unix.c
383
tmp_at(-1, md->data->mlet); /* open call */
games/hack/hack.unix.c
385
unpmon(md);
games/hack/hack.unix.c
386
tmp = fx; fx = md->mx; md->mx = tmp;
games/hack/hack.unix.c
387
tmp = fy; fy = md->my; md->my = tmp;
games/hack/hack.unix.c
389
while(fx != md->mx || fy != md->my) {
games/hack/hack.unix.c
393
d1 = DIST(fx,fy,md->mx,md->my);
games/hack/hack.unix.c
396
d2 = DIST(fx+dx,fy+dy,md->mx,md->my);
games/hack/hack.unix.c
408
md->mx = fx;
games/hack/hack.unix.c
409
md->my = fy;
games/hack/hack.unix.c
417
pmon(md);
lib/libcrypto/asn1/asn1_item.c
125
unsigned char *md, unsigned int *len)
lib/libcrypto/asn1/asn1_item.c
134
if (!EVP_Digest(str, i, md, len, type, NULL)) {
lib/libcrypto/asn1/asn1_item.c
248
const EVP_MD *md;
lib/libcrypto/asn1/asn1_item.c
256
if ((md = EVP_MD_CTX_md(ctx)) == NULL) {
lib/libcrypto/asn1/asn1_item.c
261
if (!OBJ_find_sigid_by_algs(&sign_id, EVP_MD_nid(md),
lib/libcrypto/asn1/asn_mime.c
208
const EVP_MD *md;
lib/libcrypto/asn1/asn_mime.c
218
md = EVP_get_digestbynid(md_nid);
lib/libcrypto/asn1/asn_mime.c
219
if (md && md->md_ctrl) {
lib/libcrypto/asn1/asn_mime.c
222
rv = md->md_ctrl(NULL, EVP_MD_CTRL_MICALG, 0, &micstr);
lib/libcrypto/asn1/asn_moid.c
76
oid_module_init(CONF_IMODULE *md, const CONF *cnf)
lib/libcrypto/asn1/asn_moid.c
83
oid_section = CONF_imodule_get_value(md);
lib/libcrypto/asn1/asn_moid.c
99
oid_module_finish(CONF_IMODULE *md)
lib/libcrypto/asn1/x_algor.c
268
X509_ALGOR_set_evp_md(X509_ALGOR *alg, const EVP_MD *md)
lib/libcrypto/asn1/x_algor.c
271
int nid = EVP_MD_type(md);
lib/libcrypto/asn1/x_algor.c
273
if ((EVP_MD_flags(md) & EVP_MD_FLAG_DIGALGID_ABSENT) != 0)
lib/libcrypto/cms/cms.h
174
CMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md,
lib/libcrypto/cms/cms.h
262
EVP_PKEY *pk, const EVP_MD *md, unsigned int flags);
lib/libcrypto/cms/cms_dd.c
114
unsigned char md[EVP_MAX_MD_SIZE];
lib/libcrypto/cms/cms_dd.c
129
if (EVP_DigestFinal_ex(mctx, md, &mdlen) <= 0)
lib/libcrypto/cms/cms_dd.c
138
if (memcmp(md, dd->digest->data, mdlen))
lib/libcrypto/cms/cms_dd.c
143
if (!ASN1_STRING_set(dd->digest, md, mdlen))
lib/libcrypto/cms/cms_dd.c
69
cms_DigestedData_create(const EVP_MD *md)
lib/libcrypto/cms/cms_dd.c
89
if (!X509_ALGOR_set_evp_md(dd->digestAlgorithm, md))
lib/libcrypto/cms/cms_ess.c
216
const EVP_MD *md;
lib/libcrypto/cms/cms_ess.c
218
md = EVP_get_digestbyobj(si->digestAlgorithm->algorithm);
lib/libcrypto/cms/cms_ess.c
219
if (md == NULL)
lib/libcrypto/cms/cms_ess.c
221
if (!ASN1_item_digest(&CMS_Attributes_Verify_it, md,
lib/libcrypto/cms/cms_local.h
412
CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md);
lib/libcrypto/cms/cms_sd.c
340
const EVP_MD *md, unsigned int flags)
lib/libcrypto/cms/cms_sd.c
386
if (md == NULL)
lib/libcrypto/cms/cms_sd.c
387
md = cms_SignerInfo_default_digest_md(si);
lib/libcrypto/cms/cms_sd.c
388
if (md == NULL) {
lib/libcrypto/cms/cms_sd.c
393
if (!X509_ALGOR_set_evp_md(si->digestAlgorithm, md))
lib/libcrypto/cms/cms_sd.c
403
if (OBJ_obj2nid(aoid) == EVP_MD_type(md))
lib/libcrypto/cms/cms_sd.c
410
if (!X509_ALGOR_set_evp_md(alg, md))
lib/libcrypto/cms/cms_sd.c
463
if (EVP_PKEY_CTX_set_signature_md(si->pctx, md) <= 0)
lib/libcrypto/cms/cms_sd.c
465
} else if (EVP_DigestSignInit(si->mctx, &si->pctx, md,
lib/libcrypto/cms/cms_sd.c
671
unsigned char md[EVP_MAX_MD_SIZE];
lib/libcrypto/cms/cms_sd.c
674
if (!EVP_DigestFinal_ex(mctx, md, &mdlen))
lib/libcrypto/cms/cms_sd.c
677
V_ASN1_OCTET_STRING, md, mdlen))
lib/libcrypto/cms/cms_sd.c
688
unsigned char md[EVP_MAX_MD_SIZE];
lib/libcrypto/cms/cms_sd.c
692
if (!EVP_DigestFinal_ex(mctx, md, &mdlen))
lib/libcrypto/cms/cms_sd.c
700
if (EVP_PKEY_sign(pctx, sig, &siglen, md, mdlen) <= 0) {
lib/libcrypto/cms/cms_sd.c
753
const EVP_MD *md;
lib/libcrypto/cms/cms_sd.c
759
if ((md = cms_SignerInfo_signature_md(si)) == NULL)
lib/libcrypto/cms/cms_sd.c
774
if (!EVP_DigestSignInit(si->mctx, &si->pctx, md, NULL, si->pkey))
lib/libcrypto/cms/cms_sd.c
820
const EVP_MD *md;
lib/libcrypto/cms/cms_sd.c
825
if ((md = cms_SignerInfo_signature_md(si)) == NULL)
lib/libcrypto/cms/cms_sd.c
835
if (EVP_DigestVerifyInit(si->mctx, &si->pctx, md, NULL, si->pkey) <= 0)
lib/libcrypto/cms/cms_sd.c
944
const EVP_MD *md = EVP_MD_CTX_md(mctx);
lib/libcrypto/cms/cms_sd.c
951
if (EVP_PKEY_CTX_set_signature_md(pkctx, md) <= 0)
lib/libcrypto/cms/cms_smime.c
227
CMS_digest_create(BIO *in, const EVP_MD *md, unsigned int flags)
lib/libcrypto/cms/cms_smime.c
231
if (!md)
lib/libcrypto/cms/cms_smime.c
232
md = EVP_sha1();
lib/libcrypto/cms/cms_smime.c
233
cms = cms_DigestedData_create(md);
lib/libcrypto/conf/conf.h
97
typedef int conf_init_func(CONF_IMODULE *md, const CONF *cnf);
lib/libcrypto/conf/conf.h
98
typedef void conf_finish_func(CONF_IMODULE *md);
lib/libcrypto/conf/conf_local.h
82
const char *CONF_imodule_get_value(const CONF_IMODULE *md);
lib/libcrypto/ct/ct_sct_ctx.c
254
unsigned char *md = NULL, *der = NULL;
lib/libcrypto/ct/ct_sct_ctx.c
260
md = *hash;
lib/libcrypto/ct/ct_sct_ctx.c
262
md = malloc(SHA256_DIGEST_LENGTH);
lib/libcrypto/ct/ct_sct_ctx.c
263
if (md == NULL)
lib/libcrypto/ct/ct_sct_ctx.c
272
if (!EVP_Digest(der, der_len, md, &md_len, EVP_sha256(), NULL))
lib/libcrypto/ct/ct_sct_ctx.c
275
if (md != *hash) {
lib/libcrypto/ct/ct_sct_ctx.c
277
*hash = md;
lib/libcrypto/ct/ct_sct_ctx.c
281
md = NULL;
lib/libcrypto/ct/ct_sct_ctx.c
284
free(md);
lib/libcrypto/dsa/dsa_gen.c
109
unsigned char md[SHA256_DIGEST_LENGTH];
lib/libcrypto/dsa/dsa_gen.c
201
if (!EVP_Digest(seed, qsize, md, NULL, evpmd, NULL))
lib/libcrypto/dsa/dsa_gen.c
206
md[i] ^= buf2[i];
lib/libcrypto/dsa/dsa_gen.c
209
md[0] |= 0x80;
lib/libcrypto/dsa/dsa_gen.c
210
md[qsize - 1] |= 0x01;
lib/libcrypto/dsa/dsa_gen.c
211
if (!BN_bin2bn(md, qsize, q))
lib/libcrypto/dsa/dsa_gen.c
252
if (!EVP_Digest(buf, qsize, md ,NULL, evpmd,
lib/libcrypto/dsa/dsa_gen.c
257
if (!BN_bin2bn(md, qsize, r0))
lib/libcrypto/dsa/dsa_pmeth.c
119
dctx->md = sctx->md;
lib/libcrypto/dsa/dsa_pmeth.c
144
if (dctx->md != NULL) {
lib/libcrypto/dsa/dsa_pmeth.c
145
if (tbslen != EVP_MD_size(dctx->md))
lib/libcrypto/dsa/dsa_pmeth.c
167
if (dctx->md != NULL) {
lib/libcrypto/dsa/dsa_pmeth.c
168
if (tbslen != EVP_MD_size(dctx->md))
lib/libcrypto/dsa/dsa_pmeth.c
203
dctx->md = p2;
lib/libcrypto/dsa/dsa_pmeth.c
225
dctx->md = p2;
lib/libcrypto/dsa/dsa_pmeth.c
229
*(const EVP_MD **)p2 = dctx->md;
lib/libcrypto/dsa/dsa_pmeth.c
84
const EVP_MD *md; /* MD for the signature */
lib/libcrypto/dsa/dsa_pmeth.c
98
dctx->md = NULL;
lib/libcrypto/ec/ec.h
400
#define EVP_PKEY_CTX_set_ecdh_kdf_md(ctx, md) \
lib/libcrypto/ec/ec.h
403
EVP_PKEY_CTRL_EC_KDF_MD, 0, (void *)(md))
lib/libcrypto/ec/ec_local.h
278
size_t Zlen, const unsigned char *sinfo, size_t sinfolen, const EVP_MD *md);
lib/libcrypto/ec/ec_pmeth.c
126
dctx->md = sctx->md;
lib/libcrypto/ec/ec_pmeth.c
178
if (dctx->md)
lib/libcrypto/ec/ec_pmeth.c
179
type = EVP_MD_type(dctx->md);
lib/libcrypto/ec/ec_pmeth.c
199
if (dctx->md)
lib/libcrypto/ec/ec_pmeth.c
200
type = EVP_MD_type(dctx->md);
lib/libcrypto/ec/ec_pmeth.c
398
dctx->md = p2;
lib/libcrypto/ec/ec_pmeth.c
402
*(const EVP_MD **)p2 = dctx->md;
lib/libcrypto/ec/ec_pmeth.c
443
const EVP_MD *md;
lib/libcrypto/ec/ec_pmeth.c
444
if ((md = EVP_get_digestbyname(value)) == NULL) {
lib/libcrypto/ec/ec_pmeth.c
448
return EVP_PKEY_CTX_set_ecdh_kdf_md(ctx, md);
lib/libcrypto/ec/ec_pmeth.c
79
const EVP_MD *md;
lib/libcrypto/ecdh/ecdh.c
104
mdlen = EVP_MD_size(md);
lib/libcrypto/ecdh/ecdh.c
107
if (!EVP_DigestInit_ex(mctx, md, NULL))
lib/libcrypto/ecdh/ecdh.c
90
size_t Zlen, const unsigned char *sinfo, size_t sinfolen, const EVP_MD *md)
lib/libcrypto/evp/bio_md.c
185
EVP_MD *md;
lib/libcrypto/evp/bio_md.c
225
md = ptr;
lib/libcrypto/evp/bio_md.c
226
ret = EVP_DigestInit_ex(ctx, md, NULL);
lib/libcrypto/evp/evp.h
312
ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de);
lib/libcrypto/evp/evp.h
340
int EVP_MD_type(const EVP_MD *md);
lib/libcrypto/evp/evp.h
343
int EVP_MD_pkey_type(const EVP_MD *md);
lib/libcrypto/evp/evp.h
344
int EVP_MD_size(const EVP_MD *md);
lib/libcrypto/evp/evp.h
345
int EVP_MD_block_size(const EVP_MD *md);
lib/libcrypto/evp/evp.h
346
unsigned long EVP_MD_flags(const EVP_MD *md);
lib/libcrypto/evp/evp.h
429
#define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,0,(char *)md)
lib/libcrypto/evp/evp.h
454
int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s);
lib/libcrypto/evp/evp.h
455
int EVP_Digest(const void *data, size_t count, unsigned char *md,
lib/libcrypto/evp/evp.h
460
int EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s);
lib/libcrypto/evp/evp.h
468
int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,
lib/libcrypto/evp/evp.h
503
int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s,
lib/libcrypto/evp/evp.h
888
#define EVP_PKEY_CTX_set_signature_md(ctx, md) \
lib/libcrypto/evp/evp.h
890
EVP_PKEY_CTRL_MD, 0, (void *)md)
lib/libcrypto/evp/evp_digest.c
176
EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size)
lib/libcrypto/evp/evp_digest.c
180
ret = EVP_DigestFinal_ex(ctx, md, size);
lib/libcrypto/evp/evp_digest.c
188
EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size)
lib/libcrypto/evp/evp_digest.c
196
ret = ctx->digest->final(ctx, md);
lib/libcrypto/evp/evp_digest.c
210
unsigned char *md, unsigned int *size, const EVP_MD *type, ENGINE *impl)
lib/libcrypto/evp/evp_digest.c
219
EVP_DigestFinal_ex(&ctx, md, size);
lib/libcrypto/evp/evp_digest.c
464
EVP_MD_type(const EVP_MD *md)
lib/libcrypto/evp/evp_digest.c
466
return md->type;
lib/libcrypto/evp/evp_digest.c
471
EVP_MD_pkey_type(const EVP_MD *md)
lib/libcrypto/evp/evp_digest.c
473
return md->pkey_type;
lib/libcrypto/evp/evp_digest.c
478
EVP_MD_size(const EVP_MD *md)
lib/libcrypto/evp/evp_digest.c
480
if (!md) {
lib/libcrypto/evp/evp_digest.c
484
return md->md_size;
lib/libcrypto/evp/evp_digest.c
489
EVP_MD_flags(const EVP_MD *md)
lib/libcrypto/evp/evp_digest.c
491
return md->flags;
lib/libcrypto/evp/evp_digest.c
496
EVP_MD_block_size(const EVP_MD *md)
lib/libcrypto/evp/evp_digest.c
498
return md->block_size;
lib/libcrypto/evp/evp_key.c
138
EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,
lib/libcrypto/evp/evp_key.c
167
if (!EVP_DigestInit_ex(md_ctx, md, NULL))
lib/libcrypto/evp/evp_key.c
181
if (!EVP_DigestInit_ex(md_ctx, md, NULL))
lib/libcrypto/evp/evp_local.h
186
int (*final)(EVP_MD_CTX *ctx, unsigned char *md);
lib/libcrypto/evp/evp_pbe.c
186
const EVP_MD *md = NULL;
lib/libcrypto/evp/evp_pbe.c
219
if ((md = EVP_get_digestbynid(cfg->md_nid)) == NULL) {
lib/libcrypto/evp/evp_pbe.c
225
if (!cfg->keygen(ctx, pass, passlen, param, cipher, md, en_de)) {
lib/libcrypto/evp/evp_pbe.c
235
ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)
lib/libcrypto/evp/evp_pbe.c
255
mdsize = EVP_MD_size(md);
lib/libcrypto/evp/evp_pbe.c
283
if (!EVP_DigestInit_ex(md_ctx, md, NULL))
lib/libcrypto/evp/evp_pbe.c
292
if (!EVP_DigestInit_ex(md_ctx, md, NULL))
lib/libcrypto/evp/evp_pbe.c
420
ASN1_TYPE *param, const EVP_CIPHER *c, const EVP_MD *md, int en_de)
lib/libcrypto/evp/evp_pbe.c
464
pbe2->keyfunc->parameter, c, md, en_de);
lib/libcrypto/evp/evp_pbe.c
507
ASN1_TYPE *param, const EVP_CIPHER *c, const EVP_MD *md, int en_de)
lib/libcrypto/evp/evp_pbe.c
600
ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)
lib/libcrypto/evp/evp_pbe.c
631
iter, EVP_CIPHER_key_length(cipher), key, md)) {
lib/libcrypto/evp/evp_pbe.c
637
iter, EVP_CIPHER_iv_length(cipher), iv, md)) {
lib/libcrypto/evp/evp_pbe.c
77
ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de);
lib/libcrypto/evp/evp_pbe.c
79
ASN1_TYPE *param, const EVP_CIPHER *c, const EVP_MD *md, int en_de);
lib/libcrypto/evp/evp_pbe.c
84
ASN1_TYPE *param, const EVP_CIPHER *c, const EVP_MD *md, int en_de);
lib/libcrypto/evp/m_md4.c
89
final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_md4.c
91
return MD4_Final(md, ctx->md_data);
lib/libcrypto/evp/m_md5.c
89
final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_md5.c
91
return MD5_Final(md, ctx->md_data);
lib/libcrypto/evp/m_null.c
80
final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_ripemd.c
89
final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_ripemd.c
91
return RIPEMD160_Final(md, ctx->md_data);
lib/libcrypto/evp/m_sha1.c
135
sha224_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha1.c
137
return SHA224_Final(md, ctx->md_data);
lib/libcrypto/evp/m_sha1.c
174
sha256_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha1.c
176
return SHA256_Final(md, ctx->md_data);
lib/libcrypto/evp/m_sha1.c
216
sha384_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha1.c
218
return SHA384_Final(md, ctx->md_data);
lib/libcrypto/evp/m_sha1.c
255
sha512_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha1.c
257
return SHA512_Final(md, ctx->md_data);
lib/libcrypto/evp/m_sha1.c
294
sha512_224_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha1.c
296
return SHA512_224_Final(md, ctx->md_data);
lib/libcrypto/evp/m_sha1.c
333
sha512_256_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha1.c
335
return SHA512_256_Final(md, ctx->md_data);
lib/libcrypto/evp/m_sha1.c
89
sha1_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha1.c
91
return SHA1_Final(md, ctx->md_data);
lib/libcrypto/evp/m_sha3.c
114
sha3_384_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha3.c
116
return sha3_final(md, ctx->md_data);
lib/libcrypto/evp/m_sha3.c
153
sha3_512_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha3.c
155
return sha3_final(md, ctx->md_data);
lib/libcrypto/evp/m_sha3.c
36
sha3_224_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha3.c
38
return sha3_final(md, ctx->md_data);
lib/libcrypto/evp/m_sha3.c
75
sha3_256_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sha3.c
77
return sha3_final(md, ctx->md_data);
lib/libcrypto/evp/m_sigver.c
172
unsigned char md[EVP_MAX_MD_SIZE];
lib/libcrypto/evp/m_sigver.c
206
if (!EVP_DigestFinal_ex(md_ctx, md, &mdlen))
lib/libcrypto/evp/m_sigver.c
209
if (EVP_PKEY_sign(ctx->pctx, sigret, siglen, md, mdlen) <= 0)
lib/libcrypto/evp/m_sigver.c
243
unsigned char md[EVP_MAX_MD_SIZE];
lib/libcrypto/evp/m_sigver.c
250
r = EVP_DigestFinal_ex(&tmp_ctx, md, &mdlen);
lib/libcrypto/evp/m_sigver.c
254
return EVP_PKEY_verify(ctx->pctx, sig, siglen, md, mdlen);
lib/libcrypto/evp/m_sm3.c
43
sm3_final(EVP_MD_CTX *ctx, unsigned char *md)
lib/libcrypto/evp/m_sm3.c
45
return SM3_Final(md, ctx->md_data);
lib/libcrypto/evp/pmeth_lib.c
302
const EVP_MD *md;
lib/libcrypto/evp/pmeth_lib.c
304
if ((md = EVP_get_digestbyname(md_name)) == NULL) {
lib/libcrypto/evp/pmeth_lib.c
308
return EVP_PKEY_CTX_ctrl(ctx, -1, optype, cmd, 0, (void *)md);
lib/libcrypto/hmac/hm_pmeth.c
104
dctx->md = sctx->md;
lib/libcrypto/hmac/hm_pmeth.c
208
hctx->md = p2;
lib/libcrypto/hmac/hm_pmeth.c
213
if (!HMAC_Init_ex(&hctx->ctx, key->data, key->length, hctx->md,
lib/libcrypto/hmac/hm_pmeth.c
73
const EVP_MD *md; /* MD for HMAC use */
lib/libcrypto/hmac/hmac.c
119
if (!EVP_DigestInit_ex(&ctx->i_ctx, md, impl))
lib/libcrypto/hmac/hmac.c
121
if (!EVP_DigestUpdate(&ctx->i_ctx, pad, EVP_MD_block_size(md)))
lib/libcrypto/hmac/hmac.c
126
if (!EVP_DigestInit_ex(&ctx->o_ctx, md, impl))
lib/libcrypto/hmac/hmac.c
128
if (!EVP_DigestUpdate(&ctx->o_ctx, pad, EVP_MD_block_size(md)))
lib/libcrypto/hmac/hmac.c
142
if (ctx->md == NULL)
lib/libcrypto/hmac/hmac.c
150
HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len)
lib/libcrypto/hmac/hmac.c
155
if (ctx->md == NULL)
lib/libcrypto/hmac/hmac.c
164
if (!EVP_DigestFinal_ex(&ctx->md_ctx, md, len))
lib/libcrypto/hmac/hmac.c
206
ctx->md = NULL;
lib/libcrypto/hmac/hmac.c
220
dctx->md = sctx->md;
lib/libcrypto/hmac/hmac.c
248
return ctx->md;
lib/libcrypto/hmac/hmac.c
254
size_t n, unsigned char *md, unsigned int *md_len)
lib/libcrypto/hmac/hmac.c
268
if (!HMAC_Final(&c, md, md_len))
lib/libcrypto/hmac/hmac.c
271
return md;
lib/libcrypto/hmac/hmac.c
70
HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md,
lib/libcrypto/hmac/hmac.c
77
if (md != NULL && md != ctx->md && (key == NULL || len < 0))
lib/libcrypto/hmac/hmac.c
80
if (md != NULL) {
lib/libcrypto/hmac/hmac.c
82
ctx->md = md;
lib/libcrypto/hmac/hmac.c
83
} else if (ctx->md != NULL)
lib/libcrypto/hmac/hmac.c
84
md = ctx->md;
lib/libcrypto/hmac/hmac.c
90
j = EVP_MD_block_size(md);
lib/libcrypto/hmac/hmac.c
96
if (!EVP_DigestInit_ex(&ctx->md_ctx, md, impl))
lib/libcrypto/hmac/hmac.h
81
int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md,
lib/libcrypto/hmac/hmac.h
86
int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len);
lib/libcrypto/hmac/hmac.h
88
const unsigned char *d, size_t n, unsigned char *md, unsigned int *md_len)
lib/libcrypto/hmac/hmac_local.h
70
const EVP_MD *md;
lib/libcrypto/kdf/hkdf_evp.c
111
kctx->md = p2;
lib/libcrypto/kdf/hkdf_evp.c
235
if (kctx->md == NULL) {
lib/libcrypto/kdf/hkdf_evp.c
246
return HKDF(key, *keylen, kctx->md, kctx->key, kctx->key_len,
lib/libcrypto/kdf/hkdf_evp.c
251
*keylen = EVP_MD_size(kctx->md);
lib/libcrypto/kdf/hkdf_evp.c
254
return HKDF_extract(key, keylen, kctx->md, kctx->key,
lib/libcrypto/kdf/hkdf_evp.c
258
return HKDF_expand(key, *keylen, kctx->md, kctx->key,
lib/libcrypto/kdf/hkdf_evp.c
64
const EVP_MD *md;
lib/libcrypto/kdf/kdf.h
77
# define EVP_PKEY_CTX_set_tls1_prf_md(pctx, md) \
lib/libcrypto/kdf/kdf.h
79
EVP_PKEY_CTRL_TLS_MD, 0, (void *)(md))
lib/libcrypto/kdf/kdf.h
90
# define EVP_PKEY_CTX_set_hkdf_md(pctx, md) \
lib/libcrypto/kdf/kdf.h
92
EVP_PKEY_CTRL_HKDF_MD, 0, (void *)(md))
lib/libcrypto/kdf/tls1_prf.c
113
kctx->md = p2;
lib/libcrypto/kdf/tls1_prf.c
161
const EVP_MD *md = EVP_get_digestbyname(value);
lib/libcrypto/kdf/tls1_prf.c
162
if (md == NULL) {
lib/libcrypto/kdf/tls1_prf.c
166
kctx->md = md;
lib/libcrypto/kdf/tls1_prf.c
183
tls1_prf_P_hash(const EVP_MD *md, const unsigned char *secret, size_t secret_len,
lib/libcrypto/kdf/tls1_prf.c
193
if ((chunk = EVP_MD_size(md)) < 0)
lib/libcrypto/kdf/tls1_prf.c
209
if (!EVP_DigestSignInit(ctx_init, NULL, md, NULL, mac_key))
lib/libcrypto/kdf/tls1_prf.c
258
tls1_prf_alg(const EVP_MD *md, const unsigned char *secret, size_t secret_len,
lib/libcrypto/kdf/tls1_prf.c
266
if (EVP_MD_type(md) != NID_md5_sha1)
lib/libcrypto/kdf/tls1_prf.c
267
return tls1_prf_P_hash(md, secret, secret_len, seed, seed_len,
lib/libcrypto/kdf/tls1_prf.c
299
if (kctx->md == NULL) {
lib/libcrypto/kdf/tls1_prf.c
312
return tls1_prf_alg(kctx->md, kctx->secret, kctx->secret_len,
lib/libcrypto/kdf/tls1_prf.c
73
const EVP_MD *md;
lib/libcrypto/md4/md4.c
304
MD4_Final(unsigned char *md, MD4_CTX *c)
lib/libcrypto/md4/md4.c
326
crypto_store_htole32(&md[0 * 4], c->A);
lib/libcrypto/md4/md4.c
327
crypto_store_htole32(&md[1 * 4], c->B);
lib/libcrypto/md4/md4.c
328
crypto_store_htole32(&md[2 * 4], c->C);
lib/libcrypto/md4/md4.c
329
crypto_store_htole32(&md[3 * 4], c->D);
lib/libcrypto/md4/md4.c
336
MD4(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/md4/md4.c
343
MD4_Final(md, &c);
lib/libcrypto/md4/md4.c
345
return (md);
lib/libcrypto/md4/md4.h
96
int MD4_Final(unsigned char *md, MD4_CTX *c);
lib/libcrypto/md4/md4.h
97
unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/md5/md5.c
332
MD5_Final(unsigned char *md, MD5_CTX *c)
lib/libcrypto/md5/md5.c
354
crypto_store_htole32(&md[0 * 4], c->A);
lib/libcrypto/md5/md5.c
355
crypto_store_htole32(&md[1 * 4], c->B);
lib/libcrypto/md5/md5.c
356
crypto_store_htole32(&md[2 * 4], c->C);
lib/libcrypto/md5/md5.c
357
crypto_store_htole32(&md[3 * 4], c->D);
lib/libcrypto/md5/md5.c
364
MD5(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/md5/md5.c
371
MD5_Final(md, &c);
lib/libcrypto/md5/md5.c
373
return (md);
lib/libcrypto/md5/md5.h
90
int MD5_Final(unsigned char *md, MD5_CTX *c);
lib/libcrypto/md5/md5.h
91
unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/ocsp/ocsp.h
184
#define ASN1_BIT_STRING_digest(data,type,md,len) \
lib/libcrypto/ocsp/ocsp.h
185
ASN1_item_digest(&ASN1_BIT_STRING_it,type,data,md,len)
lib/libcrypto/ocsp/ocsp_lib.c
114
unsigned char md[EVP_MAX_MD_SIZE];
lib/libcrypto/ocsp/ocsp_lib.c
126
if (!X509_NAME_digest(issuerName, dgst, md, &i)) {
lib/libcrypto/ocsp/ocsp_lib.c
130
if (!ASN1_OCTET_STRING_set(cid->issuerNameHash, md, i))
lib/libcrypto/ocsp/ocsp_lib.c
134
if (!EVP_Digest(issuerKey->data, issuerKey->length, md, &i, dgst, NULL))
lib/libcrypto/ocsp/ocsp_lib.c
137
if (!ASN1_OCTET_STRING_set(cid->issuerKeyHash, md, i))
lib/libcrypto/ocsp/ocsp_local.h
271
#define OCSP_REQUEST_sign(o,pkey,md) \
lib/libcrypto/ocsp/ocsp_local.h
274
(o)->optionalSignature->signature,o->tbsRequest, (pkey), (md))
lib/libcrypto/ocsp/ocsp_local.h
276
#define OCSP_BASICRESP_sign(o,pkey,md,d) \
lib/libcrypto/ocsp/ocsp_local.h
278
(o)->signature,(o)->tbsResponseData,(pkey),(md))
lib/libcrypto/ocsp/ocsp_srv.c
254
unsigned char md[SHA_DIGEST_LENGTH];
lib/libcrypto/ocsp/ocsp_srv.c
256
X509_pubkey_digest(signer, EVP_sha1(), md, NULL);
lib/libcrypto/ocsp/ocsp_srv.c
259
if (!(ASN1_OCTET_STRING_set(rid->value.byKey, md,
lib/libcrypto/ocsp/ocsp_vfy.c
334
unsigned char md[EVP_MAX_MD_SIZE];
lib/libcrypto/ocsp/ocsp_vfy.c
349
if (!X509_NAME_digest(iname, dgst, md, NULL))
lib/libcrypto/ocsp/ocsp_vfy.c
351
if (memcmp(md, cid->issuerNameHash->data, mdlen))
lib/libcrypto/ocsp/ocsp_vfy.c
353
X509_pubkey_digest(cert, dgst, md, NULL);
lib/libcrypto/ocsp/ocsp_vfy.c
354
if (memcmp(md, cid->issuerKeyHash->data, mdlen))
lib/libcrypto/pkcs7/pk7_asn1.c
1042
const EVP_MD *type, unsigned char *md, unsigned int *len)
lib/libcrypto/pkcs7/pk7_asn1.c
1045
(char *)data, md, len));
lib/libcrypto/pkcs7/pk7_asn1.c
894
.offset = offsetof(PKCS7_DIGEST, md),
lib/libcrypto/pkcs7/pk7_attr.c
212
PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si, const unsigned char *md,
lib/libcrypto/pkcs7/pk7_attr.c
220
if (!ASN1_STRING_set(os, md, md_len))
lib/libcrypto/pkcs7/pk7_doit.c
110
const EVP_MD *md;
lib/libcrypto/pkcs7/pk7_doit.c
117
md = EVP_get_digestbyobj(alg->algorithm);
lib/libcrypto/pkcs7/pk7_doit.c
118
if (md == NULL) {
lib/libcrypto/pkcs7/pk7_doit.c
123
if (BIO_set_md(btmp, md) <= 0) {
lib/libcrypto/pkcs7/pk7_doit.c
315
xa = p7->d.digest->md;
lib/libcrypto/pkcs7/pk7_doit.c
827
OBJ_obj2nid(p7->d.digest->md->algorithm)))
lib/libcrypto/pkcs7/pk7_doit.c
877
const EVP_MD *md = NULL;
lib/libcrypto/pkcs7/pk7_doit.c
879
md = EVP_get_digestbyobj(si->digest_alg->algorithm);
lib/libcrypto/pkcs7/pk7_doit.c
880
if (md == NULL)
lib/libcrypto/pkcs7/pk7_doit.c
884
if (EVP_DigestSignInit(&mctx, &pctx, md, NULL, si->pkey) <= 0)
lib/libcrypto/pkcs7/pk7_lib.c
456
PKCS7_set_digest(PKCS7 *p7, const EVP_MD *md)
lib/libcrypto/pkcs7/pk7_lib.c
459
if (!(p7->d.digest->md->parameter = ASN1_TYPE_new())) {
lib/libcrypto/pkcs7/pk7_lib.c
463
p7->d.digest->md->parameter->type = V_ASN1_NULL;
lib/libcrypto/pkcs7/pk7_lib.c
464
p7->d.digest->md->algorithm = OBJ_nid2obj(EVP_MD_nid(md));
lib/libcrypto/pkcs7/pk7_smime.c
157
const EVP_MD *md, int flags)
lib/libcrypto/pkcs7/pk7_smime.c
167
if (!(si = PKCS7_add_signature(p7, signcert, pkey, md))) {
lib/libcrypto/pkcs7/pkcs7.h
147
X509_ALGOR *md; /* md used */
lib/libcrypto/pkcs7/pkcs7.h
265
const EVP_MD *type, unsigned char *md, unsigned int *len);
lib/libcrypto/pkcs7/pkcs7.h
350
int PKCS7_set_digest(PKCS7 *p7, const EVP_MD *md);
lib/libcrypto/pkcs7/pkcs7.h
379
X509 *signcert, EVP_PKEY *pkey, const EVP_MD *md,
lib/libcrypto/pkcs7/pkcs7.h
398
const unsigned char *md, int mdlen);
lib/libcrypto/ripemd/ripemd.c
453
RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c)
lib/libcrypto/ripemd/ripemd.c
475
crypto_store_htole32(&md[0 * 4], c->A);
lib/libcrypto/ripemd/ripemd.c
476
crypto_store_htole32(&md[1 * 4], c->B);
lib/libcrypto/ripemd/ripemd.c
477
crypto_store_htole32(&md[2 * 4], c->C);
lib/libcrypto/ripemd/ripemd.c
478
crypto_store_htole32(&md[3 * 4], c->D);
lib/libcrypto/ripemd/ripemd.c
479
crypto_store_htole32(&md[4 * 4], c->E);
lib/libcrypto/ripemd/ripemd.c
486
RIPEMD160(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/ripemd/ripemd.c
493
RIPEMD160_Final(md, &c);
lib/libcrypto/ripemd/ripemd.c
495
return (md);
lib/libcrypto/ripemd/ripemd.h
97
int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
lib/libcrypto/ripemd/ripemd.h
99
unsigned char *md)
lib/libcrypto/rsa/rsa.h
171
#define EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md) \
lib/libcrypto/rsa/rsa.h
173
EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md))
lib/libcrypto/rsa/rsa.h
175
#define EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx, md) \
lib/libcrypto/rsa/rsa.h
177
EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md))
lib/libcrypto/rsa/rsa.h
179
#define EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \
lib/libcrypto/rsa/rsa.h
181
EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)(md))
lib/libcrypto/rsa/rsa.h
199
#define EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md) \
lib/libcrypto/rsa/rsa.h
201
EVP_PKEY_OP_KEYGEN, EVP_PKEY_CTRL_MD, 0, (void *)(md))
lib/libcrypto/rsa/rsa.h
337
const EVP_MD *md, const EVP_MD *mgf1md);
lib/libcrypto/rsa/rsa.h
340
int plen, const EVP_MD *md, const EVP_MD *mgf1md);
lib/libcrypto/rsa/rsa_ameth.c
1000
if (EVP_PKEY_CTX_get_rsa_oaep_md(pkey_ctx, &md) <= 0)
lib/libcrypto/rsa/rsa_ameth.c
1011
if (!rsa_md_to_algor(md, &oaep->hashFunc))
lib/libcrypto/rsa/rsa_ameth.c
1121
const EVP_MD *mgf1md = NULL, *md = NULL;
lib/libcrypto/rsa/rsa_ameth.c
1147
md = rsa_algor_to_md(oaep->hashFunc);
lib/libcrypto/rsa/rsa_ameth.c
1148
if (md == NULL)
lib/libcrypto/rsa/rsa_ameth.c
1179
if (EVP_PKEY_CTX_set_rsa_oaep_md(pkctx, md) <= 0)
lib/libcrypto/rsa/rsa_ameth.c
536
const EVP_MD *md;
lib/libcrypto/rsa/rsa_ameth.c
578
if (!rsa_pss_get_param(pkey->pkey.rsa->pss, &md, &mgf1md,
lib/libcrypto/rsa/rsa_ameth.c
583
*(int *)arg2 = EVP_MD_type(md);
lib/libcrypto/rsa/rsa_ameth.c
601
rsa_md_to_algor(const EVP_MD *md, X509_ALGOR **out_alg)
lib/libcrypto/rsa/rsa_ameth.c
610
if (md == NULL || EVP_MD_type(md) == NID_sha1)
lib/libcrypto/rsa/rsa_ameth.c
619
if (!X509_ALGOR_set_evp_md(alg, md))
lib/libcrypto/rsa/rsa_ameth.c
687
const EVP_MD *md;
lib/libcrypto/rsa/rsa_ameth.c
691
md = EVP_get_digestbyobj(alg->algorithm);
lib/libcrypto/rsa/rsa_ameth.c
692
if (md == NULL)
lib/libcrypto/rsa/rsa_ameth.c
694
return md;
lib/libcrypto/rsa/rsa_ameth.c
775
const EVP_MD *mgf1md = NULL, *md = NULL;
lib/libcrypto/rsa/rsa_ameth.c
786
if (!rsa_pss_get_param(pss, &md, &mgf1md, &saltlen)) {
lib/libcrypto/rsa/rsa_ameth.c
793
if (!EVP_DigestVerifyInit(ctx, &pkey_ctx, md, NULL, pkey))
lib/libcrypto/rsa/rsa_ameth.c
799
if (EVP_MD_type(md) != EVP_MD_type(checkmd)) {
lib/libcrypto/rsa/rsa_ameth.c
861
const EVP_MD *md, *mgf1md;
lib/libcrypto/rsa/rsa_ameth.c
873
if (!rsa_pss_get_param(pss, &md, &mgf1md, &salt_len))
lib/libcrypto/rsa/rsa_ameth.c
876
if ((md_nid = EVP_MD_type(md)) == NID_undef)
lib/libcrypto/rsa/rsa_ameth.c
878
if ((md_len = EVP_MD_size(md)) <= 0)
lib/libcrypto/rsa/rsa_ameth.c
992
const EVP_MD *md, *mgf1md;
lib/libcrypto/rsa/rsa_oaep.c
107
if (md == NULL)
lib/libcrypto/rsa/rsa_oaep.c
108
md = EVP_sha1();
lib/libcrypto/rsa/rsa_oaep.c
110
mgf1md = md;
lib/libcrypto/rsa/rsa_oaep.c
112
if ((mdlen = EVP_MD_size(md)) <= 0)
lib/libcrypto/rsa/rsa_oaep.c
129
if (!EVP_Digest((void *)param, plen, db, NULL, md, NULL))
lib/libcrypto/rsa/rsa_oaep.c
175
int plen, const EVP_MD *md, const EVP_MD *mgf1md)
lib/libcrypto/rsa/rsa_oaep.c
184
if (md == NULL)
lib/libcrypto/rsa/rsa_oaep.c
185
md = EVP_sha1();
lib/libcrypto/rsa/rsa_oaep.c
187
mgf1md = md;
lib/libcrypto/rsa/rsa_oaep.c
189
if ((mdlen = EVP_MD_size(md)) <= 0)
lib/libcrypto/rsa/rsa_oaep.c
251
if (!EVP_Digest((void *)param, plen, phash, NULL, md, NULL))
lib/libcrypto/rsa/rsa_oaep.c
330
unsigned char md[EVP_MAX_MD_SIZE];
lib/libcrypto/rsa/rsa_oaep.c
354
if (!EVP_DigestFinal_ex(md_ctx, md, NULL))
lib/libcrypto/rsa/rsa_oaep.c
356
memcpy(mask + outlen, md, len - outlen);
lib/libcrypto/rsa/rsa_oaep.c
98
const EVP_MD *md, const EVP_MD *mgf1md)
lib/libcrypto/rsa/rsa_pmeth.c
149
dctx->md = sctx->md;
lib/libcrypto/rsa/rsa_pmeth.c
195
if (rctx->md) {
lib/libcrypto/rsa/rsa_pmeth.c
196
if (tbslen != (size_t)EVP_MD_size(rctx->md)) {
lib/libcrypto/rsa/rsa_pmeth.c
212
RSA_X931_hash_id(EVP_MD_type(rctx->md));
lib/libcrypto/rsa/rsa_pmeth.c
218
ret = RSA_sign(EVP_MD_type(rctx->md), tbs, tbslen, sig,
lib/libcrypto/rsa/rsa_pmeth.c
227
tbs, rctx->md, rctx->mgf1md, rctx->saltlen))
lib/libcrypto/rsa/rsa_pmeth.c
251
if (rctx->md) {
lib/libcrypto/rsa/rsa_pmeth.c
261
RSA_X931_hash_id(EVP_MD_type(rctx->md))) {
lib/libcrypto/rsa/rsa_pmeth.c
265
if (ret != EVP_MD_size(rctx->md)) {
lib/libcrypto/rsa/rsa_pmeth.c
274
ret = int_rsa_verify(EVP_MD_type(rctx->md), NULL, 0,
lib/libcrypto/rsa/rsa_pmeth.c
300
if (rctx->md) {
lib/libcrypto/rsa/rsa_pmeth.c
302
return RSA_verify(EVP_MD_type(rctx->md), tbs, tbslen,
lib/libcrypto/rsa/rsa_pmeth.c
304
if (tbslen != (size_t)EVP_MD_size(rctx->md)) {
lib/libcrypto/rsa/rsa_pmeth.c
321
ret = RSA_verify_PKCS1_PSS_mgf1(rsa, tbs, rctx->md,
lib/libcrypto/rsa/rsa_pmeth.c
361
rctx->md, rctx->mgf1md))
lib/libcrypto/rsa/rsa_pmeth.c
390
ret, ret, rctx->oaep_label, rctx->oaep_label_len, rctx->md,
lib/libcrypto/rsa/rsa_pmeth.c
403
check_padding_md(const EVP_MD *md, int padding)
lib/libcrypto/rsa/rsa_pmeth.c
405
if (md == NULL)
lib/libcrypto/rsa/rsa_pmeth.c
414
if (RSA_X931_hash_id(EVP_MD_type(md)) == -1) {
lib/libcrypto/rsa/rsa_pmeth.c
421
switch(EVP_MD_type(md)) {
lib/libcrypto/rsa/rsa_pmeth.c
456
if (!check_padding_md(rctx->md, p1))
lib/libcrypto/rsa/rsa_pmeth.c
462
if (!rctx->md)
lib/libcrypto/rsa/rsa_pmeth.c
463
rctx->md = EVP_sha1();
lib/libcrypto/rsa/rsa_pmeth.c
470
if (!rctx->md)
lib/libcrypto/rsa/rsa_pmeth.c
471
rctx->md = EVP_sha1();
lib/libcrypto/rsa/rsa_pmeth.c
502
rctx->min_saltlen > EVP_MD_size(rctx->md)) ||
lib/libcrypto/rsa/rsa_pmeth.c
537
*(const EVP_MD **)p2 = rctx->md;
lib/libcrypto/rsa/rsa_pmeth.c
539
rctx->md = p2;
lib/libcrypto/rsa/rsa_pmeth.c
546
if (EVP_MD_type(rctx->md) == EVP_MD_type(p2))
lib/libcrypto/rsa/rsa_pmeth.c
551
rctx->md = p2;
lib/libcrypto/rsa/rsa_pmeth.c
555
*(const EVP_MD **)p2 = rctx->md;
lib/libcrypto/rsa/rsa_pmeth.c
569
*(const EVP_MD **)p2 = rctx->md;
lib/libcrypto/rsa/rsa_pmeth.c
770
if (rctx->md == NULL && rctx->mgf1md == NULL &&
lib/libcrypto/rsa/rsa_pmeth.c
774
rsa->pss = rsa_pss_params_create(rctx->md, rctx->mgf1md,
lib/libcrypto/rsa/rsa_pmeth.c
854
const EVP_MD *md;
lib/libcrypto/rsa/rsa_pmeth.c
868
if (!rsa_pss_get_param(rsa->pss, &md, &mgf1md, &min_saltlen))
lib/libcrypto/rsa/rsa_pmeth.c
872
max_saltlen = RSA_size(rsa) - EVP_MD_size(md);
lib/libcrypto/rsa/rsa_pmeth.c
886
rctx->md = md;
lib/libcrypto/rsa/rsa_pmeth.c
89
const EVP_MD *md;
lib/libcrypto/rsa/rsa_sign.c
233
const EVP_MD *md;
lib/libcrypto/rsa/rsa_sign.c
235
if ((md = EVP_get_digestbynid(type)) == NULL) {
lib/libcrypto/rsa/rsa_sign.c
239
if ((m_len = EVP_MD_size(md)) > (size_t)decrypt_len) {
lib/libcrypto/sha/sha.h
100
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
123
int SHA224_Final(unsigned char *md, SHA256_CTX *c);
lib/libcrypto/sha/sha.h
124
unsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
130
int SHA256_Final(unsigned char *md, SHA256_CTX *c);
lib/libcrypto/sha/sha.h
131
unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
172
int SHA384_Final(unsigned char *md, SHA512_CTX *c);
lib/libcrypto/sha/sha.h
173
unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
179
int SHA512_Final(unsigned char *md, SHA512_CTX *c);
lib/libcrypto/sha/sha.h
180
unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha.h
99
int SHA1_Final(unsigned char *md, SHA_CTX *c);
lib/libcrypto/sha/sha1.c
470
SHA1_Final(unsigned char *md, SHA_CTX *c)
lib/libcrypto/sha/sha1.c
492
crypto_store_htobe32(&md[0 * 4], c->h0);
lib/libcrypto/sha/sha1.c
493
crypto_store_htobe32(&md[1 * 4], c->h1);
lib/libcrypto/sha/sha1.c
494
crypto_store_htobe32(&md[2 * 4], c->h2);
lib/libcrypto/sha/sha1.c
495
crypto_store_htobe32(&md[3 * 4], c->h3);
lib/libcrypto/sha/sha1.c
496
crypto_store_htobe32(&md[4 * 4], c->h4);
lib/libcrypto/sha/sha1.c
503
SHA1(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha1.c
510
SHA1_Final(md, &c);
lib/libcrypto/sha/sha1.c
514
return (md);
lib/libcrypto/sha/sha256.c
317
SHA224_Final(unsigned char *md, SHA256_CTX *c)
lib/libcrypto/sha/sha256.c
319
return SHA256_Final(md, c);
lib/libcrypto/sha/sha256.c
324
SHA224(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha256.c
330
SHA256_Final(md, &c);
lib/libcrypto/sha/sha256.c
334
return (md);
lib/libcrypto/sha/sha256.c
421
SHA256_Final(unsigned char *md, SHA256_CTX *c)
lib/libcrypto/sha/sha256.c
455
crypto_store_htobe32(md, c->h[nn]);
lib/libcrypto/sha/sha256.c
456
md += 4;
lib/libcrypto/sha/sha256.c
462
crypto_store_htobe32(md, c->h[nn]);
lib/libcrypto/sha/sha256.c
463
md += 4;
lib/libcrypto/sha/sha256.c
471
crypto_store_htobe32(md, c->h[nn]);
lib/libcrypto/sha/sha256.c
472
md += 4;
lib/libcrypto/sha/sha256.c
482
SHA256(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha256.c
488
SHA256_Final(md, &c);
lib/libcrypto/sha/sha256.c
492
return (md);
lib/libcrypto/sha/sha3.c
135
uint8_t *md = _md;
lib/libcrypto/sha/sha3.c
143
md[i] = ctx->state.b[i];
lib/libcrypto/sha/sha3_internal.h
71
int sha3_final(void *md, sha3_ctx *ctx);
lib/libcrypto/sha/sha512.c
344
SHA384_Final(unsigned char *md, SHA512_CTX *c)
lib/libcrypto/sha/sha512.c
346
return SHA512_Final(md, c);
lib/libcrypto/sha/sha512.c
351
SHA384(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha512.c
357
SHA512_Final(md, &c);
lib/libcrypto/sha/sha512.c
361
return (md);
lib/libcrypto/sha/sha512.c
442
SHA512_Final(unsigned char *md, SHA512_CTX *c)
lib/libcrypto/sha/sha512.c
461
if (md == NULL)
lib/libcrypto/sha/sha512.c
468
crypto_store_htobe64(md, c->h[n]);
lib/libcrypto/sha/sha512.c
469
md += 8;
lib/libcrypto/sha/sha512.c
471
crypto_store_htobe32(md, c->h[n] >> 32);
lib/libcrypto/sha/sha512.c
475
crypto_store_htobe64(md, c->h[n]);
lib/libcrypto/sha/sha512.c
476
md += 8;
lib/libcrypto/sha/sha512.c
481
crypto_store_htobe64(md, c->h[n]);
lib/libcrypto/sha/sha512.c
482
md += 8;
lib/libcrypto/sha/sha512.c
487
crypto_store_htobe64(md, c->h[n]);
lib/libcrypto/sha/sha512.c
488
md += 8;
lib/libcrypto/sha/sha512.c
500
SHA512(const unsigned char *d, size_t n, unsigned char *md)
lib/libcrypto/sha/sha512.c
506
SHA512_Final(md, &c);
lib/libcrypto/sha/sha512.c
510
return (md);
lib/libcrypto/sha/sha512.c
541
SHA512_224_Final(unsigned char *md, SHA512_CTX *c)
lib/libcrypto/sha/sha512.c
543
return SHA512_Final(md, c);
lib/libcrypto/sha/sha512.c
573
SHA512_256_Final(unsigned char *md, SHA512_CTX *c)
lib/libcrypto/sha/sha512.c
575
return SHA512_Final(md, c);
lib/libcrypto/sha/sha_internal.h
29
int SHA512_224_Final(unsigned char *md, SHA512_CTX *c);
lib/libcrypto/sha/sha_internal.h
34
int SHA512_256_Final(unsigned char *md, SHA512_CTX *c);
lib/libcrypto/sm2/sm2_pmeth.c
147
const EVP_MD *md = (dctx->md == NULL) ? EVP_sm3() : dctx->md;
lib/libcrypto/sm2/sm2_pmeth.c
150
if (!SM2_ciphertext_size(ctx->pkey->pkey.ec, md, inlen, outlen))
lib/libcrypto/sm2/sm2_pmeth.c
156
return SM2_encrypt(ctx->pkey->pkey.ec, md, in, inlen, out, outlen);
lib/libcrypto/sm2/sm2_pmeth.c
164
const EVP_MD *md = (dctx->md == NULL) ? EVP_sm3() : dctx->md;
lib/libcrypto/sm2/sm2_pmeth.c
167
if (!SM2_plaintext_size(ctx->pkey->pkey.ec, md, inlen, outlen))
lib/libcrypto/sm2/sm2_pmeth.c
173
return SM2_decrypt(ctx->pkey->pkey.ec, md, in, inlen, out, outlen);
lib/libcrypto/sm2/sm2_pmeth.c
222
const EVP_MD* md;
lib/libcrypto/sm2/sm2_pmeth.c
231
if ((md = EVP_MD_CTX_md(dctx->md_ctx)) == NULL) {
lib/libcrypto/sm2/sm2_pmeth.c
236
if ((md_len = EVP_MD_size(md)) < 0) {
lib/libcrypto/sm2/sm2_pmeth.c
241
if (sm2_compute_userid_digest(za, md, dctx->uid, dctx->uid_len,
lib/libcrypto/sm2/sm2_pmeth.c
269
dctx->md = p2;
lib/libcrypto/sm2/sm2_pmeth.c
37
const EVP_MD *md;
lib/libcrypto/sm2/sm2_pmeth.c
96
dctx->md = sctx->md;
lib/libcrypto/sm3/sm3.c
326
SM3_Final(unsigned char *md, SM3_CTX *c)
lib/libcrypto/sm3/sm3.c
348
crypto_store_htobe32(&md[0 * 4], c->A);
lib/libcrypto/sm3/sm3.c
349
crypto_store_htobe32(&md[1 * 4], c->B);
lib/libcrypto/sm3/sm3.c
350
crypto_store_htobe32(&md[2 * 4], c->C);
lib/libcrypto/sm3/sm3.c
351
crypto_store_htobe32(&md[3 * 4], c->D);
lib/libcrypto/sm3/sm3.c
352
crypto_store_htobe32(&md[4 * 4], c->E);
lib/libcrypto/sm3/sm3.c
353
crypto_store_htobe32(&md[5 * 4], c->F);
lib/libcrypto/sm3/sm3.c
354
crypto_store_htobe32(&md[6 * 4], c->G);
lib/libcrypto/sm3/sm3.c
355
crypto_store_htobe32(&md[7 * 4], c->H);
lib/libcrypto/sm3/sm3.h
43
int SM3_Final(unsigned char *md, SM3_CTX *c);
lib/libcrypto/ts/ts.h
382
int TS_RESP_CTX_add_md(TS_RESP_CTX *ctx, const EVP_MD *md);
lib/libcrypto/ts/ts_conf.c
373
const EVP_MD *md;
lib/libcrypto/ts/ts_conf.c
374
if (!(md = EVP_get_digestbyname(extval))) {
lib/libcrypto/ts/ts_conf.c
378
if (!TS_RESP_CTX_add_md(ctx, md))
lib/libcrypto/ts/ts_rsp_sign.c
281
TS_RESP_CTX_add_md(TS_RESP_CTX *ctx, const EVP_MD *md)
lib/libcrypto/ts/ts_rsp_sign.c
287
if (!sk_EVP_MD_push(ctx->mds, (EVP_MD *)md))
lib/libcrypto/ts/ts_rsp_sign.c
542
EVP_MD *md = NULL;
lib/libcrypto/ts/ts_rsp_sign.c
557
for (i = 0; !md && i < sk_EVP_MD_num(ctx->mds); ++i) {
lib/libcrypto/ts/ts_rsp_sign.c
560
md = current_md;
lib/libcrypto/ts/ts_rsp_sign.c
562
if (!md) {
lib/libcrypto/ts/ts_rsp_sign.c
581
if (digest->length != EVP_MD_size(md)) {
lib/libcrypto/ts/ts_rsp_verify.c
420
const EVP_MD *md = EVP_sha256();
lib/libcrypto/ts/ts_rsp_verify.c
423
md = EVP_get_digestbyobj(cid->hash_alg->algorithm);
lib/libcrypto/ts/ts_rsp_verify.c
424
if (md == NULL)
lib/libcrypto/ts/ts_rsp_verify.c
427
if (!X509_digest(cert, md, cert_digest, &len))
lib/libcrypto/ts/ts_rsp_verify.c
699
const EVP_MD *md;
lib/libcrypto/ts/ts_rsp_verify.c
715
if ((md = EVP_get_digestbyobj((md_alg)->algorithm)) == NULL) {
lib/libcrypto/ts/ts_rsp_verify.c
721
if ((length = EVP_MD_size(md)) < 0)
lib/libcrypto/ts/ts_rsp_verify.c
729
if (!EVP_DigestInit(&md_ctx, md))
lib/libcrypto/x509/x509.h
348
int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
lib/libcrypto/x509/x509.h
350
int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);
lib/libcrypto/x509/x509.h
352
int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md);
lib/libcrypto/x509/x509.h
354
int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md);
lib/libcrypto/x509/x509.h
357
unsigned char *md, unsigned int *len);
lib/libcrypto/x509/x509.h
359
unsigned char *md, unsigned int *len);
lib/libcrypto/x509/x509.h
361
unsigned char *md, unsigned int *len);
lib/libcrypto/x509/x509.h
363
unsigned char *md, unsigned int *len);
lib/libcrypto/x509/x509.h
365
unsigned char *md, unsigned int *len);
lib/libcrypto/x509/x509.h
473
X509_REQ * X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
lib/libcrypto/x509/x509.h
652
unsigned char *md, unsigned int *len);
lib/libcrypto/x509/x509_cmp.c
111
if (!EVP_DigestFinal_ex(md_ctx, &(md[0]), NULL))
lib/libcrypto/x509/x509_cmp.c
114
ret = (((unsigned long)md[0]) | ((unsigned long)md[1] << 8L) |
lib/libcrypto/x509/x509_cmp.c
115
((unsigned long)md[2] << 16L) | ((unsigned long)md[3] << 24L)) &
lib/libcrypto/x509/x509_cmp.c
266
unsigned char md[SHA_DIGEST_LENGTH];
lib/libcrypto/x509/x509_cmp.c
270
if (!EVP_Digest(x->canon_enc, x->canon_enclen, md, NULL, EVP_sha1(),
lib/libcrypto/x509/x509_cmp.c
274
ret = (((unsigned long)md[0]) | ((unsigned long)md[1] << 8L) |
lib/libcrypto/x509/x509_cmp.c
275
((unsigned long)md[2] << 16L) | ((unsigned long)md[3] << 24L)) &
lib/libcrypto/x509/x509_cmp.c
291
unsigned char md[16];
lib/libcrypto/x509/x509_cmp.c
300
EVP_DigestFinal_ex(md_ctx, md, NULL))
lib/libcrypto/x509/x509_cmp.c
301
ret = (((unsigned long)md[0]) |
lib/libcrypto/x509/x509_cmp.c
302
((unsigned long)md[1] << 8L) |
lib/libcrypto/x509/x509_cmp.c
303
((unsigned long)md[2] << 16L) |
lib/libcrypto/x509/x509_cmp.c
304
((unsigned long)md[3] << 24L)) &
lib/libcrypto/x509/x509_cmp.c
95
unsigned char md[16];
lib/libcrypto/x509/x509_local.h
375
int X509_ALGOR_set_evp_md(X509_ALGOR *alg, const EVP_MD *md);
lib/libcrypto/x509/x509_siginfo.c
47
const EVP_MD *md;
lib/libcrypto/x509/x509_siginfo.c
86
if ((md = EVP_get_digestbynid(md_nid)) == NULL)
lib/libcrypto/x509/x509_siginfo.c
90
if ((security_bits = EVP_MD_size(md)) <= 0)
lib/libcrypto/x509/x_all.c
430
X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
lib/libcrypto/x509/x_all.c
435
x->cert_info, pkey, md);
lib/libcrypto/x509/x_all.c
450
X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md)
lib/libcrypto/x509/x_all.c
453
x->sig_alg, NULL, x->signature, x->req_info, pkey, md);
lib/libcrypto/x509/x_all.c
466
X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md)
lib/libcrypto/x509/x_all.c
470
x->sig_alg, x->signature, x->crl, pkey, md);
lib/libcrypto/x509/x_all.c
484
NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md)
lib/libcrypto/x509/x_all.c
487
x->sig_algor, NULL, x->signature, x->spkac, pkey, md);
lib/libcrypto/x509/x_all.c
492
X509_pubkey_digest(const X509 *data, const EVP_MD *type, unsigned char *md,
lib/libcrypto/x509/x_all.c
499
return EVP_Digest(key->data, key->length, md, len, type, NULL);
lib/libcrypto/x509/x_all.c
504
X509_digest(const X509 *data, const EVP_MD *type, unsigned char *md,
lib/libcrypto/x509/x_all.c
507
return ASN1_item_digest(&X509_it, type, (void *)data, md, len);
lib/libcrypto/x509/x_all.c
512
X509_CRL_digest(const X509_CRL *data, const EVP_MD *type, unsigned char *md,
lib/libcrypto/x509/x_all.c
515
return ASN1_item_digest(&X509_CRL_it, type, (void *)data, md, len);
lib/libcrypto/x509/x_all.c
520
X509_REQ_digest(const X509_REQ *data, const EVP_MD *type, unsigned char *md,
lib/libcrypto/x509/x_all.c
523
return ASN1_item_digest(&X509_REQ_it, type, (void *)data, md, len);
lib/libcrypto/x509/x_all.c
528
X509_NAME_digest(const X509_NAME *data, const EVP_MD *type, unsigned char *md,
lib/libcrypto/x509/x_all.c
531
return ASN1_item_digest(&X509_NAME_it, type, (void *)data, md, len);
lib/libfido2/src/assert.c
376
const EVP_MD *md = NULL;
lib/libfido2/src/assert.c
392
(md = EVP_sha256()) == NULL ||
lib/libfido2/src/assert.c
394
EVP_DigestInit_ex(ctx, md, NULL) != 1 ||
lib/libfido2/src/cbor.c
692
const EVP_MD *md = NULL;
lib/libfido2/src/cbor.c
711
if ((md = EVP_sha256()) == NULL || HMAC(md, key.ptr,
lib/libfido2/src/cbor.c
741
const EVP_MD *md = NULL;
lib/libfido2/src/cbor.c
759
(md = EVP_sha256()) == NULL ||
lib/libfido2/src/cbor.c
760
HMAC_Init_ex(ctx, key.ptr, (int)key.len, md, NULL) == 0 ||
lib/libfido2/src/cred.c
250
const EVP_MD *md = NULL;
lib/libfido2/src/cred.c
255
(md = EVP_sha256()) == NULL ||
lib/libfido2/src/cred.c
257
EVP_DigestInit_ex(ctx, md, NULL) != 1 ||
lib/libfido2/src/ecdh.c
22
const EVP_MD *md;
lib/libfido2/src/ecdh.c
26
if ((md = EVP_sha256()) == NULL ||
lib/libfido2/src/ecdh.c
27
HKDF(key, SHA256_DIGEST_LENGTH, md, secret->ptr, secret->len, salt,
lib/libfido2/src/ecdh.c
38
EVP_MD *md = NULL;
lib/libfido2/src/ecdh.c
50
(md = EVP_MD_meth_dup(const_md)) == NULL ||
lib/libfido2/src/ecdh.c
56
EVP_PKEY_CTX_set_hkdf_md(ctx, md) < 1 ||
lib/libfido2/src/ecdh.c
70
if (md != NULL)
lib/libfido2/src/ecdh.c
71
EVP_MD_meth_free(md);
lib/libfido2/src/rs1.c
28
EVP_MD *md = NULL;
lib/libfido2/src/rs1.c
36
if ((md = rs1_get_EVP_MD()) == NULL) {
lib/libfido2/src/rs1.c
44
EVP_PKEY_CTX_set_signature_md(pctx, md) != 1) {
lib/libfido2/src/rs256.c
224
EVP_MD *md = NULL;
lib/libfido2/src/rs256.c
232
if ((md = rs256_get_EVP_MD()) == NULL) {
lib/libfido2/src/rs256.c
240
EVP_PKEY_CTX_set_signature_md(pctx, md) != 1) {
lib/libfido2/src/tpm.c
149
const EVP_MD *md = NULL;
lib/libfido2/src/tpm.c
154
(md = EVP_sha1()) == NULL ||
lib/libfido2/src/tpm.c
156
EVP_DigestInit_ex(ctx, md, NULL) != 1 ||
lib/libpcap/pcap-bpf.c
283
if (p->md.must_do_on_close != 0) {
lib/libpcap/pcap-bpf.c
289
if (p->md.must_do_on_close & MUST_CLEAR_RFMON) {
lib/libpcap/pcap-bpf.c
344
p->md.must_do_on_close = 0;
lib/libpcap/pcap-bpf.c
540
if (p->md.timeout) {
lib/libpcap/pcap-bpf.c
542
to.tv_sec = p->md.timeout / 1000;
lib/libpcap/pcap-bpf.c
543
to.tv_usec = (p->md.timeout * 1000) % 1000000;
lib/libpcap/pcap-bpf.c
750
p->md.must_do_on_close |= MUST_CLEAR_RFMON;
lib/libpcap/pcap-int.h
90
struct pcap_md md;
lib/libpcap/pcap.c
221
p->md.timeout = timeout_ms;
lib/libpcap/pcap.c
609
p->md.next = pcaps_to_close;
lib/libpcap/pcap.c
619
prevpc = pc, pc = pc->md.next) {
lib/libpcap/pcap.c
628
pcaps_to_close = pc->md.next;
lib/libpcap/pcap.c
633
prevpc->md.next = pc->md.next;
lib/libskey/skeysubr.c
91
MD5_CTX md;
lib/libskey/skeysubr.c
95
MD5Init(&md);
lib/libskey/skeysubr.c
96
MD5Update(&md, (unsigned char *)buf, buflen);
lib/libskey/skeysubr.c
97
MD5Final((unsigned char *)results, &md);
lib/libssl/s3_lib.c
1719
*nid = EVP_MD_type(sigalg->md());
lib/libssl/s3_lib.c
1732
*nid = EVP_MD_type(sigalg->md());
lib/libssl/ssl.h
623
typedef int (*SSL_psk_use_session_cb_func)(SSL *ssl, const EVP_MD *md,
lib/libssl/ssl_ciph.c
400
ssl_cipher_get_evp(SSL *s, const EVP_CIPHER **enc, const EVP_MD **md,
lib/libssl/ssl_ciph.c
406
*md = NULL;
lib/libssl/ssl_ciph.c
446
*md = EVP_md5();
lib/libssl/ssl_ciph.c
449
*md = EVP_sha1();
lib/libssl/ssl_ciph.c
452
*md = EVP_sha256();
lib/libssl/ssl_ciph.c
455
*md = EVP_sha384();
lib/libssl/ssl_ciph.c
458
if (*enc == NULL || *md == NULL)
lib/libssl/ssl_ciph.c
472
*mac_secret_size = EVP_MD_size(*md);
lib/libssl/ssl_ciph.c
509
ssl_get_handshake_evp_md(SSL *s, const EVP_MD **md)
lib/libssl/ssl_ciph.c
513
*md = NULL;
lib/libssl/ssl_ciph.c
520
*md = EVP_sha256();
lib/libssl/ssl_ciph.c
523
*md = EVP_sha384();
lib/libssl/ssl_clnt.c
1406
if (!EVP_DigestVerifyInit(md_ctx, &pctx, sigalg->md(),
lib/libssl/ssl_clnt.c
1997
if (!EVP_DigestSignInit(mctx, &pctx, sigalg->md(), NULL, pkey)) {
lib/libssl/ssl_lib.c
2427
*pmd = sigalg->md();
lib/libssl/ssl_local.h
1255
const EVP_MD **md, int *mac_pkey_type, int *mac_secret_size);
lib/libssl/ssl_local.h
1257
int ssl_get_handshake_evp_md(SSL *s, const EVP_MD **md);
lib/libssl/ssl_sigalgs.c
101
.md = EVP_sha384,
lib/libssl/ssl_sigalgs.c
108
.md = EVP_sha512,
lib/libssl/ssl_sigalgs.c
115
.md = EVP_sha224,
lib/libssl/ssl_sigalgs.c
121
.md = EVP_sha224,
lib/libssl/ssl_sigalgs.c
127
.md = EVP_sha1,
lib/libssl/ssl_sigalgs.c
133
.md = EVP_sha1,
lib/libssl/ssl_sigalgs.c
139
.md = EVP_md5_sha1,
lib/libssl/ssl_sigalgs.c
288
EVP_PKEY_size(pkey) < (2 * EVP_MD_size(sigalg->md()) + 2))
lib/libssl/ssl_sigalgs.c
34
.md = EVP_sha512,
lib/libssl/ssl_sigalgs.c
40
.md = EVP_sha512,
lib/libssl/ssl_sigalgs.c
47
.md = EVP_sha384,
lib/libssl/ssl_sigalgs.c
53
.md = EVP_sha384,
lib/libssl/ssl_sigalgs.c
60
.md = EVP_sha256,
lib/libssl/ssl_sigalgs.c
66
.md = EVP_sha256,
lib/libssl/ssl_sigalgs.c
73
.md = EVP_sha256,
lib/libssl/ssl_sigalgs.c
80
.md = EVP_sha384,
lib/libssl/ssl_sigalgs.c
87
.md = EVP_sha512,
lib/libssl/ssl_sigalgs.c
94
.md = EVP_sha256,
lib/libssl/ssl_sigalgs.h
58
const EVP_MD *(*md)(void);
lib/libssl/ssl_srvr.c
1436
const EVP_MD *md = NULL;
lib/libssl/ssl_srvr.c
1497
&md, &sigalg)) == NULL) {
lib/libssl/ssl_srvr.c
1512
if (!EVP_DigestSignInit(md_ctx, &pctx, md, NULL, pkey)) {
lib/libssl/ssl_srvr.c
1968
if (!EVP_DigestVerifyInit(mctx, &pctx, sigalg->md(),
lib/libssl/ssl_transcript.c
27
const EVP_MD *md;
lib/libssl/ssl_transcript.c
32
if (!ssl_get_handshake_evp_md(s, &md)) {
lib/libssl/ssl_transcript.c
41
if (!EVP_DigestInit_ex(s->s3->handshake_hash, md, NULL)) {
lib/libssl/t1_enc.c
160
tls1_P_hash(const EVP_MD *md, const unsigned char *secret, size_t secret_len,
lib/libssl/t1_enc.c
173
chunk = EVP_MD_size(md);
lib/libssl/t1_enc.c
182
if (!EVP_DigestSignInit(ctx, NULL, md, NULL, mac_key))
lib/libssl/t1_enc.c
198
if (!EVP_DigestSignInit(ctx, NULL, md, NULL, mac_key))
lib/libssl/t1_enc.c
227
if (!EVP_DigestSignInit(ctx, NULL, md, NULL, mac_key))
lib/libssl/t1_enc.c
252
const EVP_MD *md;
lib/libssl/t1_enc.c
257
if (!ssl_get_handshake_evp_md(s, &md))
lib/libssl/t1_enc.c
260
if (EVP_MD_type(md) == NID_md5_sha1) {
lib/libssl/t1_enc.c
280
if (!tls1_P_hash(md, secret, secret_len, seed1, seed1_len,
lib/libssl/tls13_client.c
695
if (!EVP_DigestVerifyInit(mdctx, &pctx, sigalg->md(), NULL, pkey))
lib/libssl/tls13_client.c
959
if (!EVP_DigestSignInit(mdctx, &pctx, sigalg->md(), NULL, pkey))
lib/libssl/tls13_server.c
743
if (!EVP_DigestSignInit(mdctx, &pctx, sigalg->md(), NULL, pkey))
lib/libssl/tls13_server.c
986
if (!EVP_DigestVerifyInit(mdctx, &pctx, sigalg->md(), NULL, pkey))
regress/lib/libcrypto/asn1/x509_algor.c
26
int X509_ALGOR_set_evp_md(X509_ALGOR *alg, const EVP_MD *md);
regress/lib/libcrypto/ec/ec_asn1_test.c
2494
char md[SHA_DIGEST_LENGTH];
regress/lib/libcrypto/ec/ec_asn1_test.c
2507
SHA1(bin, bin_len, md);
regress/lib/libcrypto/ec/ec_asn1_test.c
2510
if (BN_bin2bn(md, sizeof(md), out) == NULL)
regress/lib/libcrypto/evp/evp_test.c
1043
if (EVP_PKEY_CTX_set_tls1_prf_md(pkey_ctx, test->md()) <= 0)
regress/lib/libcrypto/evp/evp_test.c
572
evp_md_do_all_cb(const EVP_MD *md, const char *from, const char *to, void *arg)
regress/lib/libcrypto/evp/evp_test.c
574
evp_do_all_cb_common("digest", md, from, to, arg);
regress/lib/libcrypto/evp/evp_test.c
940
const EVP_MD *(*md)(void);
regress/lib/libcrypto/evp/evp_test.c
946
.md = EVP_md5_sha1,
regress/lib/libcrypto/evp/evp_test.c
969
.md = EVP_sha256,
regress/lib/libcrypto/evp/evp_test.c
992
.md = EVP_sha384,
regress/lib/libcrypto/evp/evptest.c
264
unsigned char md[EVP_MAX_MD_SIZE];
regress/lib/libcrypto/evp/evptest.c
292
if (!EVP_DigestFinal_ex(ctx, md, &mdn)) {
regress/lib/libcrypto/evp/evptest.c
305
if (memcmp(md, ciphertext, cn)) {
regress/lib/libcrypto/evp/evptest.c
307
hexdump(stderr, "Got",md,cn);
regress/lib/libcrypto/hmac/hmactest.c
135
static char *pt(unsigned char *md, unsigned int len);
regress/lib/libcrypto/hmac/hmactest.c
326
pt(unsigned char *md, unsigned int len)
regress/lib/libcrypto/hmac/hmactest.c
332
snprintf(buf + i * 2, sizeof(buf) - i * 2, "%02x", md[i]);
regress/lib/libcrypto/md/md_test.c
206
const EVP_MD *md;
regress/lib/libcrypto/md/md_test.c
211
if (!md_hash_from_algorithm(st->algorithm, &md_func, &md, &out_len)) {
regress/lib/libcrypto/md/md_test.c
232
if (!EVP_Digest(st->in, st->in_len, out, NULL, md, NULL)) {
regress/lib/libcrypto/md/md_test.c
243
if (!EVP_DigestInit_ex(hash, md, NULL)) {
regress/lib/libcrypto/sha/sha_test.c
686
const EVP_MD *md;
regress/lib/libcrypto/sha/sha_test.c
691
md = EVP_sha1();
regress/lib/libcrypto/sha/sha_test.c
695
md = EVP_sha224();
regress/lib/libcrypto/sha/sha_test.c
699
md = EVP_sha256();
regress/lib/libcrypto/sha/sha_test.c
703
md = EVP_sha384();
regress/lib/libcrypto/sha/sha_test.c
707
md = EVP_sha512();
regress/lib/libcrypto/sha/sha_test.c
711
md = EVP_sha3_224();
regress/lib/libcrypto/sha/sha_test.c
715
md = EVP_sha3_256();
regress/lib/libcrypto/sha/sha_test.c
719
md = EVP_sha3_384();
regress/lib/libcrypto/sha/sha_test.c
723
md = EVP_sha3_512();
regress/lib/libcrypto/sha/sha_test.c
732
*out_md = md;
regress/lib/libcrypto/sha/sha_test.c
743
const EVP_MD *md;
regress/lib/libcrypto/sha/sha_test.c
752
if (!sha_hash_from_algorithm(st->algorithm, &sha_func, &md))
regress/lib/libcrypto/sha/sha_test.c
755
out_len = EVP_MD_size(md);
regress/lib/libcrypto/sha/sha_test.c
769
if (!EVP_Digest(st->in, st->in_len, out, NULL, md, NULL)) {
regress/lib/libcrypto/sha/sha_test.c
781
if (!EVP_DigestInit_ex(hash, md, NULL)) {
regress/lib/libcrypto/sha/sha_test.c
837
const EVP_MD *md;
regress/lib/libcrypto/sha/sha_test.c
848
if (!sha_hash_from_algorithm(st->algorithm, NULL, &md))
regress/lib/libcrypto/sha/sha_test.c
851
out_len = EVP_MD_size(md);
regress/lib/libcrypto/sha/sha_test.c
854
if (!EVP_DigestInit_ex(hash, md, NULL)) {
sbin/iked/ca.c
1080
len = sizeof(md);
sbin/iked/ca.c
1081
ca_subjectpubkey_digest(x509, md, &len);
sbin/iked/ca.c
1091
if (ibuf_add(env->sc_certreq, md, len) != 0) {
sbin/iked/ca.c
1186
uint8_t md[EVP_MAX_MD_SIZE];
sbin/iked/ca.c
1196
len = sizeof(md);
sbin/iked/ca.c
1197
ca_subjectpubkey_digest(ca, md, &len);
sbin/iked/ca.c
1199
if (len == siglen && memcmp(md, sig, len) == 0)
sbin/iked/ca.c
1352
ca_subjectpubkey_digest(X509 *x509, uint8_t *md, unsigned int *size)
sbin/iked/ca.c
1372
if (!EVP_Digest(buf, buflen, md, size, EVP_sha1(), NULL)) {
sbin/iked/ca.c
972
uint8_t md[EVP_MAX_MD_SIZE];
sbin/iked/chap_ms.c
157
uint8_t md[SHA_DIGEST_LENGTH];
sbin/iked/chap_ms.c
173
EVP_DigestFinal(ctx, md, &mdlen);
sbin/iked/chap_ms.c
176
memcpy(challenge, md, MSCHAP_CHALLENGE_SZ);
sbin/iked/chap_ms.c
203
uint8_t md[SHA_DIGEST_LENGTH], *ptr;
sbin/iked/chap_ms.c
231
EVP_DigestFinal(ctx, md, &mdlen);
sbin/iked/chap_ms.c
237
EVP_DigestUpdate(ctx, md, sizeof(md));
sbin/iked/chap_ms.c
240
EVP_DigestFinal(ctx, md, &mdlen);
sbin/iked/chap_ms.c
254
*ptr++ = hex[md[i] >> 4];
sbin/iked/chap_ms.c
255
*ptr++ = hex[md[i] & 0x0f];
sbin/iked/chap_ms.c
263
uint8_t md[SHA_DIGEST_LENGTH];
sbin/iked/chap_ms.c
279
EVP_DigestFinal(ctx, md, &mdlen);
sbin/iked/chap_ms.c
282
memcpy(masterkey, md, 16);
sbin/iked/chap_ms.c
290
uint8_t md[SHA_DIGEST_LENGTH];
sbin/iked/chap_ms.c
329
EVP_DigestFinal(ctx, md, &mdlen);
sbin/iked/chap_ms.c
332
memcpy(sessionkey, md, sessionkeylen);
sbin/iked/crypto.c
182
const EVP_MD *md = NULL;
sbin/iked/crypto.c
189
md = EVP_md5();
sbin/iked/crypto.c
193
md = EVP_sha1();
sbin/iked/crypto.c
197
md = EVP_sha256();
sbin/iked/crypto.c
201
md = EVP_sha384();
sbin/iked/crypto.c
205
md = EVP_sha512();
sbin/iked/crypto.c
223
md = EVP_md5();
sbin/iked/crypto.c
228
md = EVP_sha1();
sbin/iked/crypto.c
233
md = EVP_sha256();
sbin/iked/crypto.c
238
md = EVP_sha384();
sbin/iked/crypto.c
243
md = EVP_sha512();
sbin/iked/crypto.c
276
if (!isaead && md == NULL)
sbin/iked/crypto.c
286
hash->hash_priv = md;
sbin/iked/ikev2.c
2326
uint8_t md[SHA_DIGEST_LENGTH];
sbin/iked/ikev2.c
2327
unsigned int mdlen = sizeof(md);
sbin/iked/ikev2.c
2417
EVP_DigestFinal_ex(ctx, md, &mdlen);
sbin/iked/ikev2.c
2422
memcpy(ptr, md, mdlen);
sbin/iked/ikev2_pld.c
1053
uint8_t *buf, md[SHA_DIGEST_LENGTH];
sbin/iked/ikev2_pld.c
1081
if (left != sizeof(md)) {
sbin/iked/ikev2_pld.c
1083
" (%zu != %zu)", __func__, left, sizeof(md));
sbin/iked/ikev2_pld.c
1086
if (ikev2_nat_detection(env, msg, md, sizeof(md), type,
sbin/iked/ikev2_pld.c
1089
if (memcmp(buf, md, left) != 0) {
sbin/iked/ikev2_pld.c
1099
print_hex(md, 0, sizeof(md));
sbin/unwind/libunbound/services/modstack.c
132
char md[256];
sbin/unwind/libunbound/services/modstack.c
133
char * s = md;
sbin/unwind/libunbound/services/modstack.c
134
snprintf(md, sizeof(md), "%s", module_conf);
sbin/unwind/libunbound/sldns/keyraw.c
704
const EVP_MD* md)
sbin/unwind/libunbound/sldns/keyraw.c
710
if(!EVP_DigestInit_ex(ctx, md, NULL) ||
sbin/unwind/libunbound/sldns/keyraw.h
142
unsigned char* dest, const EVP_MD* md);
sbin/unwind/libunbound/util/alloc.c
678
uint8_t* md = NULL;
sbin/unwind/libunbound/util/alloc.c
680
sldns_status s = sldns_pkt2wire(&md, p, &ms);
sbin/unwind/libunbound/util/alloc.c
681
if(md) {
sbin/unwind/libunbound/util/alloc.c
685
if(!*dest) { free(md); return LDNS_STATUS_MEM_ERR; }
sbin/unwind/libunbound/util/alloc.c
686
memcpy(*dest, md, ms);
sbin/unwind/libunbound/util/alloc.c
687
free(md);
sbin/unwind/libunbound/util/storage/lruhash.c
524
lruhash_setmarkdel(struct lruhash* table, lruhash_markdelfunc_type md)
sbin/unwind/libunbound/util/storage/lruhash.c
527
table->markdelfunc = md;
sbin/unwind/libunbound/util/storage/lruhash.h
304
void lruhash_setmarkdel(struct lruhash* table, lruhash_markdelfunc_type md);
sbin/unwind/libunbound/util/storage/slabhash.c
225
void slabhash_setmarkdel(struct slabhash* sl, lruhash_markdelfunc_type md)
sbin/unwind/libunbound/util/storage/slabhash.c
229
lruhash_setmarkdel(sl->array[i], md);
sbin/unwind/libunbound/util/storage/slabhash.h
196
void slabhash_setmarkdel(struct slabhash* table, lruhash_markdelfunc_type md);
sbin/unwind/libunbound/validator/val_secalgo.c
168
static struct secalgo_hash* secalgo_hash_create_md(const EVP_MD* md)
sbin/unwind/libunbound/validator/val_secalgo.c
171
if(!md)
sbin/unwind/libunbound/validator/val_secalgo.c
181
if(!EVP_DigestInit_ex(h->ctx, md, NULL)) {
sbin/unwind/libunbound/validator/val_secalgo.c
270
const EVP_MD* md = EVP_get_digestbyname("md_gost94");
sbin/unwind/libunbound/validator/val_secalgo.c
271
if(!md)
sbin/unwind/libunbound/validator/val_secalgo.c
273
return sldns_digest_evp(data, (unsigned int)len, dest, md);
sys/arch/amd64/amd64/mem.c
271
struct mem_range_desc *md;
sys/arch/amd64/amd64/mem.c
289
md = mallocarray(nd, sizeof(struct mem_range_desc),
sys/arch/amd64/amd64/mem.c
291
error = mem_range_attr_get(md, &nd);
sys/arch/amd64/amd64/mem.c
293
error = copyout(md, mo->mo_desc,
sys/arch/amd64/amd64/mem.c
295
free(md, M_MEMDESC, nd * sizeof(struct mem_range_desc));
sys/arch/amd64/amd64/mem.c
303
md = malloc(sizeof(struct mem_range_desc), M_MEMDESC, M_WAITOK);
sys/arch/amd64/amd64/mem.c
304
error = copyin(mo->mo_desc, md, sizeof(struct mem_range_desc));
sys/arch/amd64/amd64/mem.c
306
md->mr_owner[sizeof(md->mr_owner) - 1] = 0;
sys/arch/amd64/amd64/mem.c
308
error = mem_range_attr_set(md, &mo->mo_arg[0]);
sys/arch/amd64/amd64/mem.c
309
free(md, M_MEMDESC, sizeof(struct mem_range_desc));
sys/arch/amd64/stand/libsa/softraid_amd64.c
131
struct sr_metadata *md;
sys/arch/amd64/stand/libsa/softraid_amd64.c
142
md = alloc(SR_META_SIZE * DEV_BSIZE);
sys/arch/amd64/stand/libsa/softraid_amd64.c
162
bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/amd64/stand/libsa/softraid_amd64.c
165
error = dip->diskio(F_READ, dip, off, SR_META_SIZE, md);
sys/arch/amd64/stand/libsa/softraid_amd64.c
170
if (md->ssdi.ssd_magic != SR_MAGIC)
sys/arch/amd64/stand/libsa/softraid_amd64.c
176
if (md->ssdi.ssd_level == SR_KEYDISK_LEVEL) {
sys/arch/amd64/stand/libsa/softraid_amd64.c
177
srprobe_keydisk_load(md);
sys/arch/amd64/stand/libsa/softraid_amd64.c
182
mc = (struct sr_meta_chunk *)(md + 1);
sys/arch/amd64/stand/libsa/softraid_amd64.c
183
mc += md->ssdi.ssd_chunk_id;
sys/arch/amd64/stand/libsa/softraid_amd64.c
195
bc->sbc_chunk_id = md->ssdi.ssd_chunk_id;
sys/arch/amd64/stand/libsa/softraid_amd64.c
196
bc->sbc_ondisk = md->ssd_ondisk;
sys/arch/amd64/stand/libsa/softraid_amd64.c
200
if (bcmp(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/amd64/stand/libsa/softraid_amd64.c
201
sizeof(md->ssdi.ssd_uuid)) == 0)
sys/arch/amd64/stand/libsa/softraid_amd64.c
208
bv->sbv_level = md->ssdi.ssd_level;
sys/arch/amd64/stand/libsa/softraid_amd64.c
209
bv->sbv_volid = md->ssdi.ssd_volid;
sys/arch/amd64/stand/libsa/softraid_amd64.c
210
bv->sbv_chunk_no = md->ssdi.ssd_chunk_no;
sys/arch/amd64/stand/libsa/softraid_amd64.c
211
bv->sbv_flags = md->ssdi.ssd_vol_flags;
sys/arch/amd64/stand/libsa/softraid_amd64.c
212
bv->sbv_size = md->ssdi.ssd_size;
sys/arch/amd64/stand/libsa/softraid_amd64.c
213
bv->sbv_secsize = md->ssdi.ssd_secsize;
sys/arch/amd64/stand/libsa/softraid_amd64.c
214
bv->sbv_data_blkno = md->ssd_data_blkno;
sys/arch/amd64/stand/libsa/softraid_amd64.c
215
bcopy(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/amd64/stand/libsa/softraid_amd64.c
216
sizeof(md->ssdi.ssd_uuid));
sys/arch/amd64/stand/libsa/softraid_amd64.c
221
srprobe_meta_opt_load(md, &bv->sbv_meta_opt);
sys/arch/amd64/stand/libsa/softraid_amd64.c
308
explicit_bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/amd64/stand/libsa/softraid_amd64.c
309
free(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/arm64/dev/agintc.c
1917
struct agintc_msi_device *md;
sys/arch/arm64/dev/agintc.c
1926
md = malloc(sizeof(*md), M_DEVBUF, M_ZERO | M_WAITOK);
sys/arch/arm64/dev/agintc.c
1927
md->md_deviceid = deviceid;
sys/arch/arm64/dev/agintc.c
1928
md->md_itt = agintc_dmamem_alloc(sc->sc_dmat,
sys/arch/arm64/dev/agintc.c
1930
LIST_INSERT_HEAD(&sc->sc_msi_devices, md, md_list);
sys/arch/arm64/dev/agintc.c
1936
cmd.dw2 = AGINTC_DMA_DVA(md->md_itt) | GITS_CMD_VALID;
sys/arch/arm64/dev/agintc.c
1940
return md;
sys/arch/arm64/dev/agintc.c
1946
struct agintc_msi_device *md;
sys/arch/arm64/dev/agintc.c
1948
LIST_FOREACH(md, &sc->sc_msi_devices, md_list) {
sys/arch/arm64/dev/agintc.c
1949
if (md->md_deviceid == deviceid)
sys/arch/arm64/dev/agintc.c
1950
return md;
sys/arch/arm64/dev/agintc.c
2011
struct agintc_msi_device *md;
sys/arch/arm64/dev/agintc.c
2021
md = agintc_msi_find_device(sc, deviceid);
sys/arch/arm64/dev/agintc.c
2022
if (md == NULL)
sys/arch/arm64/dev/agintc.c
2026
if (eventid > 0 && (md->md_events & (1U << eventid)))
sys/arch/arm64/dev/agintc.c
2029
if ((md->md_events & (1U << eventid)) == 0) {
sys/arch/arm64/dev/agintc.c
2030
md->md_events |= (1U << eventid);
sys/arch/arm64/stand/efiboot/softraid_arm64.c
134
struct sr_metadata *md;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
144
md = alloc(SR_META_SIZE * DEV_BSIZE);
sys/arch/arm64/stand/efiboot/softraid_arm64.c
159
bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/arm64/stand/efiboot/softraid_arm64.c
162
error = dip->diskio(F_READ, dip, off, SR_META_SIZE, md);
sys/arch/arm64/stand/efiboot/softraid_arm64.c
167
if (md->ssdi.ssd_magic != SR_MAGIC)
sys/arch/arm64/stand/efiboot/softraid_arm64.c
173
if (md->ssdi.ssd_level == SR_KEYDISK_LEVEL) {
sys/arch/arm64/stand/efiboot/softraid_arm64.c
174
srprobe_keydisk_load(md);
sys/arch/arm64/stand/efiboot/softraid_arm64.c
179
mc = (struct sr_meta_chunk *)(md + 1);
sys/arch/arm64/stand/efiboot/softraid_arm64.c
180
mc += md->ssdi.ssd_chunk_id;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
189
bc->sbc_chunk_id = md->ssdi.ssd_chunk_id;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
190
bc->sbc_ondisk = md->ssd_ondisk;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
194
if (bcmp(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/arm64/stand/efiboot/softraid_arm64.c
195
sizeof(md->ssdi.ssd_uuid)) == 0)
sys/arch/arm64/stand/efiboot/softraid_arm64.c
202
bv->sbv_level = md->ssdi.ssd_level;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
203
bv->sbv_volid = md->ssdi.ssd_volid;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
204
bv->sbv_chunk_no = md->ssdi.ssd_chunk_no;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
205
bv->sbv_flags = md->ssdi.ssd_vol_flags;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
206
bv->sbv_size = md->ssdi.ssd_size;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
207
bv->sbv_secsize = md->ssdi.ssd_secsize;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
208
bv->sbv_data_blkno = md->ssd_data_blkno;
sys/arch/arm64/stand/efiboot/softraid_arm64.c
209
bcopy(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/arm64/stand/efiboot/softraid_arm64.c
210
sizeof(md->ssdi.ssd_uuid));
sys/arch/arm64/stand/efiboot/softraid_arm64.c
215
srprobe_meta_opt_load(md, &bv->sbv_meta_opt);
sys/arch/arm64/stand/efiboot/softraid_arm64.c
302
explicit_bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/arm64/stand/efiboot/softraid_arm64.c
303
free(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/i386/i386/mem.c
279
struct mem_range_desc *md;
sys/arch/i386/i386/mem.c
298
md = mallocarray(nd, sizeof(struct mem_range_desc),
sys/arch/i386/i386/mem.c
300
error = mem_range_attr_get(md, &nd);
sys/arch/i386/i386/mem.c
302
error = copyout(md, mo->mo_desc,
sys/arch/i386/i386/mem.c
304
free(md, M_MEMDESC, nd * sizeof(struct mem_range_desc));
sys/arch/i386/i386/mem.c
312
md = malloc(sizeof(struct mem_range_desc), M_MEMDESC, M_WAITOK);
sys/arch/i386/i386/mem.c
313
error = copyin(mo->mo_desc, md, sizeof(struct mem_range_desc));
sys/arch/i386/i386/mem.c
315
md->mr_owner[sizeof(md->mr_owner) - 1] = 0;
sys/arch/i386/i386/mem.c
317
error = mem_range_attr_set(md, &mo->mo_arg[0]);
sys/arch/i386/i386/mem.c
318
free(md, M_MEMDESC, sizeof(struct mem_range_desc));
sys/arch/i386/stand/libsa/softraid_i386.c
127
struct sr_metadata *md;
sys/arch/i386/stand/libsa/softraid_i386.c
138
md = alloc(SR_META_SIZE * DEV_BSIZE);
sys/arch/i386/stand/libsa/softraid_i386.c
158
bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/i386/stand/libsa/softraid_i386.c
161
error = dip->diskio(F_READ, dip, off, SR_META_SIZE, md);
sys/arch/i386/stand/libsa/softraid_i386.c
166
if (md->ssdi.ssd_magic != SR_MAGIC)
sys/arch/i386/stand/libsa/softraid_i386.c
172
if (md->ssdi.ssd_level == SR_KEYDISK_LEVEL) {
sys/arch/i386/stand/libsa/softraid_i386.c
173
srprobe_keydisk_load(md);
sys/arch/i386/stand/libsa/softraid_i386.c
178
mc = (struct sr_meta_chunk *)(md + 1);
sys/arch/i386/stand/libsa/softraid_i386.c
179
mc += md->ssdi.ssd_chunk_id;
sys/arch/i386/stand/libsa/softraid_i386.c
191
bc->sbc_chunk_id = md->ssdi.ssd_chunk_id;
sys/arch/i386/stand/libsa/softraid_i386.c
192
bc->sbc_ondisk = md->ssd_ondisk;
sys/arch/i386/stand/libsa/softraid_i386.c
196
if (bcmp(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/i386/stand/libsa/softraid_i386.c
197
sizeof(md->ssdi.ssd_uuid)) == 0)
sys/arch/i386/stand/libsa/softraid_i386.c
204
bv->sbv_level = md->ssdi.ssd_level;
sys/arch/i386/stand/libsa/softraid_i386.c
205
bv->sbv_volid = md->ssdi.ssd_volid;
sys/arch/i386/stand/libsa/softraid_i386.c
206
bv->sbv_chunk_no = md->ssdi.ssd_chunk_no;
sys/arch/i386/stand/libsa/softraid_i386.c
207
bv->sbv_flags = md->ssdi.ssd_vol_flags;
sys/arch/i386/stand/libsa/softraid_i386.c
208
bv->sbv_size = md->ssdi.ssd_size;
sys/arch/i386/stand/libsa/softraid_i386.c
209
bv->sbv_data_blkno = md->ssd_data_blkno;
sys/arch/i386/stand/libsa/softraid_i386.c
210
bcopy(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/i386/stand/libsa/softraid_i386.c
211
sizeof(md->ssdi.ssd_uuid));
sys/arch/i386/stand/libsa/softraid_i386.c
216
srprobe_meta_opt_load(md, &bv->sbv_meta_opt);
sys/arch/i386/stand/libsa/softraid_i386.c
302
explicit_bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/i386/stand/libsa/softraid_i386.c
303
free(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
134
struct sr_metadata *md;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
144
md = alloc(SR_META_SIZE * DEV_BSIZE);
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
159
bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
162
error = dip->diskio(F_READ, dip, off, SR_META_SIZE, md);
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
167
if (md->ssdi.ssd_magic != SR_MAGIC)
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
173
if (md->ssdi.ssd_level == SR_KEYDISK_LEVEL) {
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
174
srprobe_keydisk_load(md);
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
179
mc = (struct sr_meta_chunk *)(md + 1);
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
180
mc += md->ssdi.ssd_chunk_id;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
189
bc->sbc_chunk_id = md->ssdi.ssd_chunk_id;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
190
bc->sbc_ondisk = md->ssd_ondisk;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
194
if (bcmp(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
195
sizeof(md->ssdi.ssd_uuid)) == 0)
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
202
bv->sbv_level = md->ssdi.ssd_level;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
203
bv->sbv_volid = md->ssdi.ssd_volid;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
204
bv->sbv_chunk_no = md->ssdi.ssd_chunk_no;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
205
bv->sbv_flags = md->ssdi.ssd_vol_flags;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
206
bv->sbv_size = md->ssdi.ssd_size;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
207
bv->sbv_secsize = md->ssdi.ssd_secsize;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
208
bv->sbv_data_blkno = md->ssd_data_blkno;
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
209
bcopy(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
210
sizeof(md->ssdi.ssd_uuid));
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
215
srprobe_meta_opt_load(md, &bv->sbv_meta_opt);
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
302
explicit_bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/riscv64/stand/efiboot/softraid_riscv64.c
303
free(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/sh/sh/db_disasm.c
1019
int rm, type, md;
sys/arch/sh/sh/db_disasm.c
1023
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
1027
switch (md) {
sys/arch/sh/sh/db_disasm.c
1043
switch (md) {
sys/arch/sh/sh/db_disasm.c
1050
snprintf(buf, bufsiz, "ldc r%d, r%d_bank", rm, md);
sys/arch/sh/sh/db_disasm.c
1053
snprintf(buf, bufsiz, "ldc r%d, r%d_bank", rm, md + 4);
sys/arch/sh/sh/db_disasm.c
1084
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
1088
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
1090
switch (md) {
sys/arch/sh/sh/db_disasm.c
1109
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
1113
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
1115
switch (md) {
sys/arch/sh/sh/db_disasm.c
1134
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
1138
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
1140
switch (md) {
sys/arch/sh/sh/db_disasm.c
1159
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
1163
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
1165
switch (md) {
sys/arch/sh/sh/db_disasm.c
1195
int type, md, rn, disp;
sys/arch/sh/sh/db_disasm.c
1198
md = (insn & 0x0300) >> 8;
sys/arch/sh/sh/db_disasm.c
1205
switch (md) {
sys/arch/sh/sh/db_disasm.c
1221
switch (md) {
sys/arch/sh/sh/db_disasm.c
1236
switch (md) {
sys/arch/sh/sh/db_disasm.c
1256
switch (md) {
sys/arch/sh/sh/db_disasm.c
1309
int type, md, imm;
sys/arch/sh/sh/db_disasm.c
1312
md = (insn & 0x0300) >> 8;
sys/arch/sh/sh/db_disasm.c
1317
switch (md) {
sys/arch/sh/sh/db_disasm.c
1335
switch (md) {
sys/arch/sh/sh/db_disasm.c
1354
switch (md) {
sys/arch/sh/sh/db_disasm.c
1370
switch (md) {
sys/arch/sh/sh/db_disasm.c
1414
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
1418
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
1420
switch (md) {
sys/arch/sh/sh/db_disasm.c
1439
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
1443
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
1445
switch (md) {
sys/arch/sh/sh/db_disasm.c
1464
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
1468
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
1470
switch (md) {
sys/arch/sh/sh/db_disasm.c
1500
int rn, type, md;
sys/arch/sh/sh/db_disasm.c
1504
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
1508
switch (md) {
sys/arch/sh/sh/db_disasm.c
1524
switch (md) {
sys/arch/sh/sh/db_disasm.c
1537
switch (md) {
sys/arch/sh/sh/db_disasm.c
1540
snprintf(buf, bufsiz, "fldi%d fr%d", md, rn);
sys/arch/sh/sh/db_disasm.c
211
int rn, type, md;
sys/arch/sh/sh/db_disasm.c
215
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
219
switch (md) {
sys/arch/sh/sh/db_disasm.c
235
switch (md) {
sys/arch/sh/sh/db_disasm.c
242
snprintf(buf, bufsiz, "stc r%d_bank, r%d", md, rn);
sys/arch/sh/sh/db_disasm.c
245
snprintf(buf, bufsiz, "stc r%d_bank, r%d", md + 4, rn);
sys/arch/sh/sh/db_disasm.c
253
int rn, type, md;
sys/arch/sh/sh/db_disasm.c
257
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
261
switch (md) {
sys/arch/sh/sh/db_disasm.c
271
switch (md) {
sys/arch/sh/sh/db_disasm.c
283
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
287
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
289
switch (md) {
sys/arch/sh/sh/db_disasm.c
308
int n1, type, md;
sys/arch/sh/sh/db_disasm.c
312
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
319
switch (md) {
sys/arch/sh/sh/db_disasm.c
335
switch (md) {
sys/arch/sh/sh/db_disasm.c
375
int rn, type, md;
sys/arch/sh/sh/db_disasm.c
379
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
383
switch (md) {
sys/arch/sh/sh/db_disasm.c
396
switch (md) {
sys/arch/sh/sh/db_disasm.c
434
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
438
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
440
switch (md) {
sys/arch/sh/sh/db_disasm.c
472
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
476
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
478
switch (md) {
sys/arch/sh/sh/db_disasm.c
494
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
498
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
500
switch (md) {
sys/arch/sh/sh/db_disasm.c
519
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
523
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
525
switch (md) {
sys/arch/sh/sh/db_disasm.c
544
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
548
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
550
switch (md) {
sys/arch/sh/sh/db_disasm.c
569
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
573
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
575
switch (md) {
sys/arch/sh/sh/db_disasm.c
591
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
595
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
597
switch (md) {
sys/arch/sh/sh/db_disasm.c
616
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
620
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
622
switch (md) {
sys/arch/sh/sh/db_disasm.c
638
int rn, rm, md;
sys/arch/sh/sh/db_disasm.c
642
md = (insn & 0x0003);
sys/arch/sh/sh/db_disasm.c
644
switch (md) {
sys/arch/sh/sh/db_disasm.c
705
int rn, type, md;
sys/arch/sh/sh/db_disasm.c
709
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
713
switch (md) {
sys/arch/sh/sh/db_disasm.c
726
switch (md) {
sys/arch/sh/sh/db_disasm.c
741
int rn, type, md;
sys/arch/sh/sh/db_disasm.c
745
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
749
switch (md) {
sys/arch/sh/sh/db_disasm.c
765
switch (md) {
sys/arch/sh/sh/db_disasm.c
772
snprintf(buf, bufsiz, "stc.l r%d_bank, @-r%d", md, rn);
sys/arch/sh/sh/db_disasm.c
775
snprintf(buf, bufsiz, "stc.l r%d_bank, @-r%d", md + 4, rn);
sys/arch/sh/sh/db_disasm.c
822
int rm, type, md;
sys/arch/sh/sh/db_disasm.c
826
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
830
switch (md) {
sys/arch/sh/sh/db_disasm.c
843
switch (md) {
sys/arch/sh/sh/db_disasm.c
858
int rm, type, md;
sys/arch/sh/sh/db_disasm.c
862
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
866
switch (md) {
sys/arch/sh/sh/db_disasm.c
882
switch (md) {
sys/arch/sh/sh/db_disasm.c
889
snprintf(buf, bufsiz, "ldc.l @r%d+, r%d_bank", rm, md);
sys/arch/sh/sh/db_disasm.c
892
snprintf(buf, bufsiz, "ldc.l @r%d+, r%d_bank", rm, md + 4);
sys/arch/sh/sh/db_disasm.c
942
int rm, type, md;
sys/arch/sh/sh/db_disasm.c
946
md = (insn & 0x0030) >> 4;
sys/arch/sh/sh/db_disasm.c
950
switch (md) {
sys/arch/sh/sh/db_disasm.c
963
switch (md) {
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
129
struct sr_metadata *md;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
141
md = alloc(SR_META_SIZE * DEV_BSIZE);
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
158
bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
162
SR_META_SIZE * DEV_BSIZE, md, &read);
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
167
if (md->ssdi.ssd_magic != SR_MAGIC)
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
173
if (md->ssdi.ssd_level == SR_KEYDISK_LEVEL) {
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
174
srprobe_keydisk_load(md);
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
179
mc = (struct sr_meta_chunk *)(md + 1);
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
180
mc += md->ssdi.ssd_chunk_id;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
194
bc->sbc_chunk_id = md->ssdi.ssd_chunk_id;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
195
bc->sbc_ondisk = md->ssd_ondisk;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
199
if (bcmp(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
200
sizeof(md->ssdi.ssd_uuid)) == 0)
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
207
bv->sbv_level = md->ssdi.ssd_level;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
208
bv->sbv_volid = md->ssdi.ssd_volid;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
209
bv->sbv_chunk_no = md->ssdi.ssd_chunk_no;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
210
bv->sbv_flags = md->ssdi.ssd_vol_flags;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
211
bv->sbv_size = md->ssdi.ssd_size;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
212
bv->sbv_data_blkno = md->ssd_data_blkno;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
213
bcopy(&md->ssdi.ssd_uuid, &bv->sbv_uuid,
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
214
sizeof(md->ssdi.ssd_uuid));
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
219
srprobe_meta_opt_load(md, &bv->sbv_meta_opt);
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
307
explicit_bzero(md, SR_META_SIZE * DEV_BSIZE);
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
308
free(md, SR_META_SIZE * DEV_BSIZE);
sys/dev/fdt/mvsw.c
166
struct mii_bus *md = sc->sc_mdio;
sys/dev/fdt/mvsw.c
167
return md->md_readreg(md->md_cookie, sc->sc_reg, reg);
sys/dev/fdt/mvsw.c
173
struct mii_bus *md = sc->sc_mdio;
sys/dev/fdt/mvsw.c
174
md->md_writereg(md->md_cookie, sc->sc_reg, reg, val);
sys/dev/ic/arcofi.c
805
arcofi_query_devinfo(void *v, mixer_devinfo_t *md)
sys/dev/ic/arcofi.c
807
switch (md->index) {
sys/dev/ic/arcofi.c
813
md->type = AUDIO_MIXER_VALUE;
sys/dev/ic/arcofi.c
814
md->mixer_class = ARCOFI_CLASS_INPUT;
sys/dev/ic/arcofi.c
815
md->prev = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
816
md->next = ARCOFI_PORT_AUDIO_IN_MUTE;
sys/dev/ic/arcofi.c
817
strlcpy(md->label.name, AudioNline,
sys/dev/ic/arcofi.c
818
sizeof md->label.name);
sys/dev/ic/arcofi.c
821
md->type = AUDIO_MIXER_VALUE;
sys/dev/ic/arcofi.c
822
md->mixer_class = ARCOFI_CLASS_OUTPUT;
sys/dev/ic/arcofi.c
823
md->prev = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
824
md->next = ARCOFI_PORT_AUDIO_OUT_MUTE;
sys/dev/ic/arcofi.c
825
strlcpy(md->label.name, AudioNline,
sys/dev/ic/arcofi.c
826
sizeof md->label.name);
sys/dev/ic/arcofi.c
829
md->type = AUDIO_MIXER_VALUE;
sys/dev/ic/arcofi.c
830
md->mixer_class = ARCOFI_CLASS_OUTPUT;
sys/dev/ic/arcofi.c
831
md->prev = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
832
md->next = ARCOFI_PORT_AUDIO_SPKR_MUTE;
sys/dev/ic/arcofi.c
833
strlcpy(md->label.name, AudioNspeaker,
sys/dev/ic/arcofi.c
834
sizeof md->label.name);
sys/dev/ic/arcofi.c
837
md->un.v.num_channels = 1;
sys/dev/ic/arcofi.c
838
strlcpy(md->un.v.units.name, AudioNvolume,
sys/dev/ic/arcofi.c
839
sizeof md->un.v.units.name);
sys/dev/ic/arcofi.c
843
md->type = AUDIO_MIXER_ENUM;
sys/dev/ic/arcofi.c
844
md->mixer_class = ARCOFI_CLASS_INPUT;
sys/dev/ic/arcofi.c
845
md->prev = ARCOFI_PORT_AUDIO_IN_VOLUME;
sys/dev/ic/arcofi.c
846
md->next = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
849
md->type = AUDIO_MIXER_ENUM;
sys/dev/ic/arcofi.c
850
md->mixer_class = ARCOFI_CLASS_OUTPUT;
sys/dev/ic/arcofi.c
851
md->prev = ARCOFI_PORT_AUDIO_OUT_VOLUME;
sys/dev/ic/arcofi.c
852
md->next = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
855
md->type = AUDIO_MIXER_ENUM;
sys/dev/ic/arcofi.c
856
md->mixer_class = ARCOFI_CLASS_OUTPUT;
sys/dev/ic/arcofi.c
857
md->prev = ARCOFI_PORT_AUDIO_SPKR_VOLUME;
sys/dev/ic/arcofi.c
858
md->next = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
861
strlcpy(md->label.name, AudioNmute, sizeof md->label.name);
sys/dev/ic/arcofi.c
862
md->un.e.num_mem = 2;
sys/dev/ic/arcofi.c
863
strlcpy(md->un.e.member[0].label.name, AudioNoff,
sys/dev/ic/arcofi.c
864
sizeof md->un.e.member[0].label.name);
sys/dev/ic/arcofi.c
865
md->un.e.member[0].ord = 0;
sys/dev/ic/arcofi.c
866
strlcpy(md->un.e.member[1].label.name, AudioNon,
sys/dev/ic/arcofi.c
867
sizeof md->un.e.member[1].label.name);
sys/dev/ic/arcofi.c
868
md->un.e.member[1].ord = 1;
sys/dev/ic/arcofi.c
873
md->type = AUDIO_MIXER_CLASS;
sys/dev/ic/arcofi.c
874
md->mixer_class = ARCOFI_CLASS_INPUT;
sys/dev/ic/arcofi.c
875
md->prev = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
876
md->next = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
877
strlcpy(md->label.name, AudioCinputs,
sys/dev/ic/arcofi.c
878
sizeof md->label.name);
sys/dev/ic/arcofi.c
881
md->type = AUDIO_MIXER_CLASS;
sys/dev/ic/arcofi.c
882
md->mixer_class = ARCOFI_CLASS_OUTPUT;
sys/dev/ic/arcofi.c
883
md->prev = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
884
md->next = AUDIO_MIXER_LAST;
sys/dev/ic/arcofi.c
885
strlcpy(md->label.name, AudioCoutputs,
sys/dev/ic/arcofi.c
886
sizeof md->label.name);
sys/dev/ofw/ofw_misc.c
1004
mii_register(struct mii_bus *md)
sys/dev/ofw/ofw_misc.c
1006
LIST_INSERT_HEAD(&mii_busses, md, md_list);
sys/dev/ofw/ofw_misc.c
1012
struct mii_bus *md;
sys/dev/ofw/ofw_misc.c
1014
LIST_FOREACH(md, &mii_busses, md_list) {
sys/dev/ofw/ofw_misc.c
1015
if (md->md_node == node)
sys/dev/ofw/ofw_misc.c
1016
return md;
sys/dev/ofw/ofw_misc.c
1232
mbox_register(struct mbox_device *md)
sys/dev/ofw/ofw_misc.c
1234
md->md_cells = OF_getpropint(md->md_node, "#mbox-cells", 0);
sys/dev/ofw/ofw_misc.c
1235
md->md_phandle = OF_getpropint(md->md_node, "phandle", 0);
sys/dev/ofw/ofw_misc.c
1236
if (md->md_phandle == 0)
sys/dev/ofw/ofw_misc.c
1239
LIST_INSERT_HEAD(&mbox_devices, md, md_list);
sys/dev/ofw/ofw_misc.c
1245
struct mbox_device *md;
sys/dev/ofw/ofw_misc.c
1250
LIST_FOREACH(md, &mbox_devices, md_list) {
sys/dev/ofw/ofw_misc.c
1251
if (md->md_phandle == phandle)
sys/dev/ofw/ofw_misc.c
1255
if (md && md->md_channel) {
sys/dev/ofw/ofw_misc.c
1256
cookie = md->md_channel(md->md_cookie, &cells[1], client);
sys/dev/ofw/ofw_misc.c
1259
mc->mc_md = md;
sys/dev/ofw/ofw_misc.c
1326
struct mbox_device *md = mc->mc_md;
sys/dev/ofw/ofw_misc.c
1328
if (md->md_send)
sys/dev/ofw/ofw_misc.c
1329
return md->md_send(mc->mc_cookie, data, len);
sys/dev/ofw/ofw_misc.c
1337
struct mbox_device *md = mc->mc_md;
sys/dev/ofw/ofw_misc.c
1339
if (md->md_recv)
sys/dev/ofw/ofw_misc.c
1340
return md->md_recv(mc->mc_cookie, data, len);
sys/dev/pci/drm/i915/display/intel_fb.c
376
const struct intel_modifier_desc *md = lookup_modifier_or_null(modifier);
sys/dev/pci/drm/i915/display/intel_fb.c
378
if (WARN_ON(!md))
sys/dev/pci/drm/i915/display/intel_fb.c
381
return md;
sys/dev/pci/drm/i915/display/intel_fb.c
400
const struct intel_modifier_desc *md;
sys/dev/pci/drm/i915/display/intel_fb.c
403
md = lookup_modifier_or_null(fb_modifier);
sys/dev/pci/drm/i915/display/intel_fb.c
404
if (!md)
sys/dev/pci/drm/i915/display/intel_fb.c
437
const struct intel_modifier_desc *md = lookup_modifier_or_null(modifier);
sys/dev/pci/drm/i915/display/intel_fb.c
439
if (!md || !md->formats)
sys/dev/pci/drm/i915/display/intel_fb.c
442
return lookup_format_info(md->formats, md->format_count, pixel_format);
sys/dev/pci/drm/i915/display/intel_fb.c
517
const struct intel_modifier_desc *md = lookup_modifier_or_null(modifier);
sys/dev/pci/drm/i915/display/intel_fb.c
519
if (!md)
sys/dev/pci/drm/i915/display/intel_fb.c
522
return plane_caps_contain_any(md->plane_caps,
sys/dev/pci/drm/i915/display/intel_fb.c
539
static bool check_modifier_display_ver_range(const struct intel_modifier_desc *md,
sys/dev/pci/drm/i915/display/intel_fb.c
542
return md->display_ver.from <= display_ver_until &&
sys/dev/pci/drm/i915/display/intel_fb.c
543
display_ver_from <= md->display_ver.until;
sys/dev/pci/drm/i915/display/intel_fb.c
548
const struct intel_modifier_desc *md)
sys/dev/pci/drm/i915/display/intel_fb.c
552
if (!IS_DISPLAY_VER(display, md->display_ver.from, md->display_ver.until))
sys/dev/pci/drm/i915/display/intel_fb.c
555
if (!plane_caps_contain_all(plane_caps, md->plane_caps))
sys/dev/pci/drm/i915/display/intel_fb.c
562
if (intel_fb_is_ccs_modifier(md->modifier) &&
sys/dev/pci/drm/i915/display/intel_fb.c
563
HAS_FLAT_CCS(i915) != !md->ccs.packed_aux_planes)
sys/dev/pci/drm/i915/display/intel_fb.c
566
if (md->modifier == I915_FORMAT_MOD_4_TILED_BMG_CCS &&
sys/dev/pci/drm/i915/display/intel_fb.c
570
if (md->modifier == I915_FORMAT_MOD_4_TILED_LNL_CCS &&
sys/dev/pci/drm/i915/display/intel_fb.c
631
static bool format_is_yuv_semiplanar(const struct intel_modifier_desc *md,
sys/dev/pci/drm/i915/display/intel_fb.c
637
if (hweight8(md->ccs.planar_aux_planes) == 2)
sys/dev/pci/drm/i915/display/intel_fb.c
657
static u8 ccs_aux_plane_mask(const struct intel_modifier_desc *md,
sys/dev/pci/drm/i915/display/intel_fb.c
660
if (format_is_yuv_semiplanar(md, format))
sys/dev/pci/drm/i915/display/intel_fb.c
661
return md->ccs.planar_aux_planes;
sys/dev/pci/drm/i915/display/intel_fb.c
663
return md->ccs.packed_aux_planes;
sys/dev/pci/drm/i915/display/intel_fb.c
676
const struct intel_modifier_desc *md = lookup_modifier(fb->modifier);
sys/dev/pci/drm/i915/display/intel_fb.c
678
return ccs_aux_plane_mask(md, fb->format) & BIT(color_plane);
sys/dev/pci/drm/i915/display/intel_fb.c
691
const struct intel_modifier_desc *md = lookup_modifier(fb->modifier);
sys/dev/pci/drm/i915/display/intel_fb.c
693
return check_modifier_display_ver_range(md, 12, 14) &&
sys/dev/pci/drm/i915/display/intel_fb.c
694
ccs_aux_plane_mask(md, fb->format) & BIT(color_plane);
sys/dev/pci/drm/i915/display/intel_fb.c
707
const struct intel_modifier_desc *md = lookup_modifier(fb->modifier);
sys/dev/pci/drm/i915/display/intel_fb.c
709
if (!md->ccs.cc_planes)
sys/dev/pci/drm/i915/display/intel_fb.c
712
drm_WARN_ON_ONCE(fb->dev, hweight8(md->ccs.cc_planes) > 1);
sys/dev/pci/drm/i915/display/intel_fb.c
714
return ilog2((int)md->ccs.cc_planes);
sys/dev/pci/drm/i915/display/intel_fb.c
759
const struct intel_modifier_desc *md = lookup_modifier(fb->modifier);
sys/dev/pci/drm/i915/display/intel_fb.c
762
if (md->ccs.packed_aux_planes | md->ccs.planar_aux_planes)
sys/dev/pci/drm/i915/display/intel_fb.c
765
format_is_yuv_semiplanar(md, fb->format))
sys/dev/pci/if_mwx.c
1638
struct mwx_queue_data *md = &q->mq_data[i];
sys/dev/pci/if_mwx.c
1639
bus_dmamap_destroy(sc->sc_dmat, md->md_map);
sys/dev/pci/if_mwx.c
1640
m_freem(md->md_mbuf);
sys/dev/pci/if_mwx.c
1669
struct mwx_queue_data *md;
sys/dev/pci/if_mwx.c
1698
md = &q->mq_data[i];
sys/dev/pci/if_mwx.c
1699
if (md->md_mbuf != NULL) {
sys/dev/pci/if_mwx.c
1700
bus_dmamap_sync(sc->sc_dmat, md->md_map, 0,
sys/dev/pci/if_mwx.c
1701
md->md_map->dm_mapsize,
sys/dev/pci/if_mwx.c
1703
bus_dmamap_unload(sc->sc_dmat, md->md_map);
sys/dev/pci/if_mwx.c
1704
m_freem(md->md_mbuf);
sys/dev/pci/if_mwx.c
1705
md->md_mbuf = NULL;
sys/dev/pci/if_mwx.c
1711
mwx_buf_fill(struct mwx_softc *sc, struct mwx_queue_data *md,
sys/dev/pci/if_mwx.c
1724
rv = bus_dmamap_load_mbuf(sc->sc_dmat, md->md_map, m,
sys/dev/pci/if_mwx.c
1732
bus_dmamap_sync(sc->sc_dmat, md->md_map, 0,
sys/dev/pci/if_mwx.c
1733
md->md_map->dm_mapsize, BUS_DMASYNC_PREREAD);
sys/dev/pci/if_mwx.c
1735
md->md_mbuf = m;
sys/dev/pci/if_mwx.c
1737
KASSERT(md->md_map->dm_nsegs == 1);
sys/dev/pci/if_mwx.c
1738
KASSERT(md->md_map->dm_segs[0].ds_addr <= UINT32_MAX);
sys/dev/pci/if_mwx.c
1739
buf0 = md->md_map->dm_segs[0].ds_addr;
sys/dev/pci/if_mwx.c
1740
len0 = md->md_map->dm_segs[0].ds_len;
sys/dev/pci/if_mwx.c
1889
struct mwx_queue_data *md;
sys/dev/pci/if_mwx.c
1894
md = &q->mq_data[idx];
sys/dev/pci/if_mwx.c
1897
rv = bus_dmamap_load_mbuf(sc->sc_dmat, md->md_map, m,
sys/dev/pci/if_mwx.c
1900
rv = bus_dmamap_load_mbuf(sc->sc_dmat, md->md_map, m,
sys/dev/pci/if_mwx.c
1905
nsegs = md->md_map->dm_nsegs;
sys/dev/pci/if_mwx.c
1909
bus_dmamap_unload(sc->sc_dmat, md->md_map);
sys/dev/pci/if_mwx.c
1913
bus_dmamap_sync(sc->sc_dmat, md->md_map, 0, md->md_map->dm_mapsize,
sys/dev/pci/if_mwx.c
1915
md->md_mbuf = m;
sys/dev/pci/if_mwx.c
1916
md->md_txwi = NULL;
sys/dev/pci/if_mwx.c
1924
KASSERT(md->md_map->dm_segs[i].ds_addr <= UINT32_MAX);
sys/dev/pci/if_mwx.c
1925
buf0 = md->md_map->dm_segs[i].ds_addr;
sys/dev/pci/if_mwx.c
1926
len0 = md->md_map->dm_segs[i].ds_len;
sys/dev/pci/if_mwx.c
1930
KASSERT(md->md_map->dm_segs[i + 1].ds_addr <=
sys/dev/pci/if_mwx.c
1932
buf1 = md->md_map->dm_segs[i + 1].ds_addr;
sys/dev/pci/if_mwx.c
1933
len1 = md->md_map->dm_segs[i + 1].ds_len;
sys/dev/pci/if_mwx.c
1949
md = &q->mq_data[idx];
sys/dev/pci/if_mwx.c
1966
struct mwx_queue_data *md;
sys/dev/pci/if_mwx.c
1972
md = &q->mq_data[idx];
sys/dev/pci/if_mwx.c
1977
bus_dmamap_unload(sc->sc_dmat, md->md_map);
sys/dev/pci/if_mwx.c
1981
md->md_txwi = mt;
sys/dev/pci/if_mwx.c
1982
md->md_mbuf = NULL;
sys/dev/pci/if_mwx.c
2013
struct mwx_queue_data *md;
sys/dev/pci/if_mwx.c
2027
md = &q->mq_data[idx];
sys/dev/pci/if_mwx.c
2030
if (md->md_mbuf != NULL) {
sys/dev/pci/if_mwx.c
2031
bus_dmamap_sync(sc->sc_dmat, md->md_map, 0,
sys/dev/pci/if_mwx.c
2032
md->md_map->dm_mapsize, BUS_DMASYNC_POSTWRITE);
sys/dev/pci/if_mwx.c
2033
bus_dmamap_unload(sc->sc_dmat, md->md_map);
sys/dev/pci/if_mwx.c
2034
m_freem(md->md_mbuf);
sys/dev/pci/if_mwx.c
2035
md->md_mbuf = NULL;
sys/dev/pci/if_mwx.c
2037
if (md->md_txwi != NULL) {
sys/dev/pci/if_mwx.c
2039
md->md_txwi = NULL;
sys/dev/pci/if_mwx.c
2129
struct mwx_queue_data *md;
sys/dev/pci/if_mwx.c
2146
md = &q->mq_data[idx];
sys/dev/pci/if_mwx.c
2149
bus_dmamap_sync(sc->sc_dmat, md->md_map, 0,
sys/dev/pci/if_mwx.c
2150
md->md_map->dm_mapsize, BUS_DMASYNC_POSTREAD);
sys/dev/pci/if_mwx.c
2151
bus_dmamap_unload(sc->sc_dmat, md->md_map);
sys/dev/pci/if_mwx.c
2154
m = md->md_mbuf;
sys/dev/pci/if_mwx.c
2155
md->md_mbuf = NULL;
sys/dev/softraid.c
1017
struct sr_metadata *md = NULL;
sys/dev/softraid.c
1070
md = malloc(SR_META_SIZE * DEV_BSIZE, M_DEVBUF, M_ZERO | M_NOWAIT);
sys/dev/softraid.c
1071
if (md == NULL) {
sys/dev/softraid.c
1106
if (sr_meta_native_read(fake_sd, rawdev, md, NULL)) {
sys/dev/softraid.c
1115
if (md->ssdi.ssd_magic != SR_MAGIC) {
sys/dev/softraid.c
1122
if (sr_meta_validate(fake_sd, rawdev, md, NULL) == 0) {
sys/dev/softraid.c
1128
memcpy(bc->sbc_metadata, md, sizeof(struct sr_metadata));
sys/dev/softraid.c
1142
free(md, M_DEVBUF, SR_META_SIZE * DEV_BSIZE);
sys/dev/softraid.c
1616
struct sr_metadata *md = NULL;
sys/dev/softraid.c
1624
md = malloc(SR_META_SIZE * DEV_BSIZE, M_DEVBUF, M_ZERO | M_NOWAIT);
sys/dev/softraid.c
1625
if (md == NULL) {
sys/dev/softraid.c
1637
if (sr_meta_native_read(sd, ch_entry->src_dev_mm, md, NULL)) {
sys/dev/softraid.c
1642
if (md->ssdi.ssd_magic == SR_MAGIC) {
sys/dev/softraid.c
1645
md->ssdi.ssd_chunk_id;
sys/dev/softraid.c
1647
memcpy(&uuid, &md->ssdi.ssd_uuid, sizeof uuid);
sys/dev/softraid.c
1648
expected = md->ssdi.ssd_chunk_no;
sys/dev/softraid.c
1649
version = md->ssd_ondisk;
sys/dev/softraid.c
1652
} else if (bcmp(&md->ssdi.ssd_uuid, &uuid,
sys/dev/softraid.c
1657
if (md->ssd_ondisk != version) {
sys/dev/softraid.c
1659
version = MAX(md->ssd_ondisk, version);
sys/dev/softraid.c
1681
if (sr_meta_native_read(sd, ch_entry->src_dev_mm, md,
sys/dev/softraid.c
1684
if (md->ssd_ondisk != version)
sys/dev/softraid.c
1697
free(md, M_DEVBUF, SR_META_SIZE * DEV_BSIZE);
sys/dev/softraid.c
1703
struct sr_metadata *md, void *fm)
sys/dev/softraid.c
1709
DEVNAME(sc), dev, md);
sys/dev/softraid.c
1711
return (sr_meta_rw(sd, dev, md, B_READ));
sys/dev/softraid.c
1716
struct sr_metadata *md, void *fm)
sys/dev/softraid.c
1722
DEVNAME(sc), dev, md);
sys/dev/softraid.c
1724
return (sr_meta_rw(sd, dev, md, B_WRITE));
sys/dev/softraid.c
477
sr_meta_rw(struct sr_discipline *sd, dev_t dev, void *md, long flags)
sys/dev/softraid.c
482
DEVNAME(sd->sd_sc), dev, md, flags);
sys/dev/softraid.c
484
if (md == NULL) {
sys/dev/softraid.c
490
rv = sr_rw(sd->sd_sc, dev, md, SR_META_SIZE * DEV_BSIZE,
sys/dev/usb/if_umb.c
356
struct mbim_descriptor *md;
sys/dev/usb/if_umb.c
457
md = (struct mbim_descriptor *)desc;
sys/dev/usb/if_umb.c
458
v = UGETW(md->bcdMBIMVersion);
sys/dev/usb/if_umb.c
461
sc->sc_ctrl_len = UGETW(md->wMaxControlMessage);
sys/dev/usb/if_umb.c
471
maxpktlen = UGETW(md->wMaxSegmentSize);
sys/dev/usb/if_umb.c
477
md->bmNetworkCapabilities);
sys/net/bpf.c
1424
struct m_hdr mh, md;
sys/net/bpf.c
1439
md.mh_flags = 0;
sys/net/bpf.c
1440
md.mh_next = NULL;
sys/net/bpf.c
1441
md.mh_len = buflen;
sys/net/bpf.c
1442
md.mh_data = (void *)buf;
sys/net/bpf.c
1444
*mp = (struct mbuf *)&md;
sys/net/bpf.c
1511
struct m_hdr mh, md;
sys/net/bpf.c
1530
mh.mh_next = (struct mbuf *)&md;
sys/net/bpf.c
1532
md.mh_flags = 0;
sys/net/bpf.c
1533
md.mh_data = m->m_data + ETHER_HDR_LEN;
sys/net/bpf.c
1534
md.mh_len = m->m_len - ETHER_HDR_LEN;
sys/net/bpf.c
1535
md.mh_next = m->m_next;
sys/netinet/ip_carp.c
381
unsigned char md[20], u_int8_t ctx)
sys/netinet/ip_carp.c
389
SHA1Final(md, &sha1ctx);
sys/netinet/ip_carp.c
394
SHA1Update(&sha1ctx, md, 20);
sys/netinet/ip_carp.c
395
SHA1Final(md, &sha1ctx);
sys/netinet/ip_carp.c
400
unsigned char md[20])
sys/netinet/ip_carp.c
407
if (!timingsafe_bcmp(md, md2, sizeof(md2)))
sys/netinet6/mld6.c
454
struct mbuf *mh, *md;
sys/netinet6/mld6.c
490
MGET(md, M_DONTWAIT, MT_DATA);
sys/netinet6/mld6.c
491
if (md == NULL) {
sys/netinet6/mld6.c
496
mh->m_next = md;
sys/netinet6/mld6.c
515
md->m_len = sizeof(struct mld_hdr);
sys/netinet6/mld6.c
516
mldh = mtod(md, struct mld_hdr *);
sys/nfs/nfs_srvsubs.c
100
fromcp = mtod(md, caddr_t);
sys/nfs/nfs_srvsubs.c
101
rem = md->m_len;
sys/nfs/nfs_srvsubs.c
111
*mdp = md;
sys/nfs/nfs_srvsubs.c
77
struct mbuf *md;
sys/nfs/nfs_srvsubs.c
91
md = *mdp;
sys/nfs/nfs_srvsubs.c
92
rem = mtod(md, caddr_t) + md->m_len - fromcp;
sys/nfs/nfs_srvsubs.c
95
md = md->m_next;
sys/nfs/nfs_srvsubs.c
96
if (md == NULL) {
sys/nfs/nfs_subs.c
944
struct mbuf *md;
sys/nfs/nfs_subs.c
953
md = *mdp;
sys/nfs/nfs_subs.c
954
avail = (mtod(md, caddr_t) + md->m_len) - *dposp;
usr.bin/mg/display.c
789
int n, md;
usr.bin/mg/display.c
825
for (md = 0; ; ) {
usr.bin/mg/display.c
826
n += vtputs(bp->b_modes[md]->p_name, wp);
usr.bin/mg/display.c
827
if (++md > bp->b_nmodes)
usr.bin/mg/kbd.c
177
int md = curbp->b_nmodes;
usr.bin/mg/kbd.c
182
curmap = curbp->b_modes[md]->p_map;
usr.bin/mg/kbd.c
203
if (--md < 0)
usr.bin/mg/kbd.c
205
curmap = curbp->b_modes[md]->p_map;
usr.bin/openssl/apps.h
241
int do_X509_sign(BIO *err, X509 *x, EVP_PKEY *pkey, const EVP_MD *md,
usr.bin/openssl/apps.h
243
int do_X509_REQ_sign(BIO *err, X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md,
usr.bin/openssl/apps.h
245
int do_X509_CRL_sign(BIO *err, X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md,
usr.bin/openssl/ca.c
1006
if (cfg.md == NULL)
usr.bin/openssl/ca.c
1007
cfg.md = NCONF_get_string(conf, cfg.section,
usr.bin/openssl/ca.c
1009
if (cfg.md == NULL) {
usr.bin/openssl/ca.c
1013
if (strcmp(cfg.md, "default") == 0) {
usr.bin/openssl/ca.c
1018
cfg.md = (char *)OBJ_nid2sn(default_nid);
usr.bin/openssl/ca.c
1020
if (cfg.md == NULL)
usr.bin/openssl/ca.c
1022
if ((dgst = EVP_get_digestbyname(cfg.md)) == NULL) {
usr.bin/openssl/ca.c
1024
"message digest type\n", cfg.md);
usr.bin/openssl/ca.c
182
char *md;
usr.bin/openssl/ca.c
450
.opt.arg = &cfg.md,
usr.bin/openssl/crl.c
382
unsigned char md[EVP_MAX_MD_SIZE];
usr.bin/openssl/crl.c
384
if (!X509_CRL_digest(x, digest, md, &n)) {
usr.bin/openssl/crl.c
391
BIO_printf(bio_out, "%02X%c", md[j],
usr.bin/openssl/dgst.c
124
if ((cfg.md = EVP_get_digestbyname(name)) == NULL)
usr.bin/openssl/dgst.c
355
cfg.md = EVP_get_digestbyname(pname);
usr.bin/openssl/dgst.c
477
r = EVP_DigestVerifyInit(mctx, &pctx, cfg.md,
usr.bin/openssl/dgst.c
480
r = EVP_DigestSignInit(mctx, &pctx, cfg.md,
usr.bin/openssl/dgst.c
505
if (cfg.md == NULL)
usr.bin/openssl/dgst.c
506
cfg.md = EVP_sha256();
usr.bin/openssl/dgst.c
507
if (!BIO_set_md(bmd, cfg.md)) {
usr.bin/openssl/dgst.c
541
if (cfg.md == NULL) {
usr.bin/openssl/dgst.c
544
cfg.md = EVP_MD_CTX_md(tctx);
usr.bin/openssl/dgst.c
561
md_name = EVP_MD_name(cfg.md);
usr.bin/openssl/dgst.c
90
const EVP_MD *md;
usr.bin/openssl/enc.c
210
.opt.arg = &cfg.md,
usr.bin/openssl/enc.c
415
if (cfg.md != NULL &&
usr.bin/openssl/enc.c
416
(dgst = EVP_get_digestbyname(cfg.md)) == NULL) {
usr.bin/openssl/enc.c
419
cfg.md);
usr.bin/openssl/enc.c
89
char *md;
usr.bin/openssl/passwd.c
307
EVP_MD_CTX *md = NULL, *md2 = NULL;
usr.bin/openssl/passwd.c
322
if ((md = EVP_MD_CTX_new()) == NULL)
usr.bin/openssl/passwd.c
324
if (!EVP_DigestInit_ex(md, EVP_md5(), NULL))
usr.bin/openssl/passwd.c
326
if (!EVP_DigestUpdate(md, passwd, passwd_len))
usr.bin/openssl/passwd.c
328
if (!EVP_DigestUpdate(md, "$", 1))
usr.bin/openssl/passwd.c
330
if (!EVP_DigestUpdate(md, magic, strlen(magic)))
usr.bin/openssl/passwd.c
332
if (!EVP_DigestUpdate(md, "$", 1))
usr.bin/openssl/passwd.c
334
if (!EVP_DigestUpdate(md, salt_out, salt_len))
usr.bin/openssl/passwd.c
351
if (!EVP_DigestUpdate(md, buf, sizeof buf))
usr.bin/openssl/passwd.c
354
if (!EVP_DigestUpdate(md, buf, i))
usr.bin/openssl/passwd.c
359
if (!EVP_DigestUpdate(md, (n & 1) ? "\0" : passwd, 1))
usr.bin/openssl/passwd.c
363
if (!EVP_DigestFinal_ex(md, buf, NULL))
usr.bin/openssl/passwd.c
424
EVP_MD_CTX_free(md);
usr.bin/openssl/passwd.c
428
EVP_MD_CTX_free(md);
usr.bin/openssl/req.c
1737
const EVP_MD * md, STACK_OF(OPENSSL_STRING) * sigopts)
usr.bin/openssl/req.c
1746
md = EVP_md_null();
usr.bin/openssl/req.c
1749
if (!EVP_DigestSignInit(ctx, &pkctx, md, NULL, pkey))
usr.bin/openssl/req.c
1763
do_X509_sign(BIO * err, X509 * x, EVP_PKEY * pkey, const EVP_MD * md,
usr.bin/openssl/req.c
1772
rv = do_sign_init(err, mctx, pkey, md, sigopts);
usr.bin/openssl/req.c
1783
do_X509_REQ_sign(BIO * err, X509_REQ * x, EVP_PKEY * pkey, const EVP_MD * md,
usr.bin/openssl/req.c
1792
rv = do_sign_init(err, mctx, pkey, md, sigopts);
usr.bin/openssl/req.c
1804
do_X509_CRL_sign(BIO * err, X509_CRL * x, EVP_PKEY * pkey, const EVP_MD * md,
usr.bin/openssl/req.c
1813
rv = do_sign_init(err, mctx, pkey, md, sigopts);
usr.bin/openssl/speed.c
1024
unsigned char md[EVP_MAX_MD_SIZE];
usr.bin/openssl/speed.c
1622
EVP_Digest(&(buf[0]), (unsigned long) lengths[j], md, NULL, EVP_md4(), NULL);
usr.bin/openssl/speed.c
1635
EVP_Digest(&(buf[0]), (unsigned long) lengths[j], md, NULL, EVP_get_digestbyname("md5"), NULL);
usr.bin/openssl/speed.c
1666
if (!HMAC_Final(hctx, md, NULL)) {
usr.bin/openssl/speed.c
1683
EVP_Digest(buf, (unsigned long) lengths[j], md, NULL, EVP_sha1(), NULL);
usr.bin/openssl/speed.c
1694
SHA256(buf, lengths[j], md);
usr.bin/openssl/speed.c
1707
SHA512(buf, lengths[j], md);
usr.bin/openssl/speed.c
1721
EVP_Digest(buf, (unsigned long) lengths[j], md, NULL, EVP_ripemd160(), NULL);
usr.bin/openssl/speed.c
2078
EVP_Digest(buf, lengths[j], &(md[0]), NULL, evp_md, NULL);
usr.bin/openssl/ts.c
128
const EVP_MD *md;
usr.bin/openssl/ts.c
151
if ((cfg.md = EVP_get_digestbyname(name)) == NULL)
usr.bin/openssl/ts.c
415
cfg.md, cfg.policy, cfg.no_nonce,
usr.bin/openssl/ts.c
530
query_command(const char *data, char *digest, const EVP_MD *md,
usr.bin/openssl/ts.c
551
query = create_query(data_bio, digest, md,
usr.bin/openssl/ts.c
593
create_query(BIO *data_bio, char *digest, const EVP_MD *md, const char *policy,
usr.bin/openssl/ts.c
606
if (md == NULL && (md = EVP_get_digestbyname("sha1")) == NULL)
usr.bin/openssl/ts.c
624
if ((md_obj = OBJ_nid2obj(EVP_MD_type(md))) == NULL)
usr.bin/openssl/ts.c
636
if ((len = create_digest(data_bio, digest, md, &data)) == 0)
usr.bin/openssl/ts.c
678
create_digest(BIO *input, char *digest, const EVP_MD *md,
usr.bin/openssl/ts.c
686
md_value_len = EVP_MD_size(md);
usr.bin/openssl/ts.c
702
if (!EVP_DigestInit(md_ctx, md))
usr.bin/openssl/ts.c
83
static int query_command(const char *data, char *digest, const EVP_MD *md,
usr.bin/openssl/ts.c
88
static TS_REQ *create_query(BIO *data_bio, char *digest, const EVP_MD *md,
usr.bin/openssl/ts.c
90
static int create_digest(BIO *input, char *digest, const EVP_MD *md,
usr.bin/openssl/x509.c
1191
unsigned char md[EVP_MAX_MD_SIZE];
usr.bin/openssl/x509.c
1197
if (!X509_digest(x, fdig, md, &n)) {
usr.bin/openssl/x509.c
1204
BIO_printf(out, "%02X%c", md[j],
usr.bin/openssl/x509.c
1502
key_identifier_hash(EVP_PKEY *pkey, unsigned char *md, unsigned int *md_len)
usr.bin/openssl/x509.c
1516
if (!EVP_Digest(der, der_len, md, md_len, EVP_sha1(), NULL))
usr.bin/openssl/x509.c
1531
unsigned char md[EVP_MAX_MD_SIZE];
usr.bin/openssl/x509.c
1534
if (!key_identifier_hash(pkey, md, &md_len))
usr.bin/openssl/x509.c
1539
if (!ASN1_STRING_set(ki, md, md_len))
usr.bin/rsync/blocks.c
145
unsigned char md[MD4_DIGEST_LENGTH];
usr.bin/rsync/blocks.c
179
hash_slow(st->map + st->offs, (size_t)osz, md, sess);
usr.bin/rsync/blocks.c
181
if (memcmp(md, blks->blks[st->hint].chksum_long, blks->csum) == 0) {
usr.bin/rsync/blocks.c
212
hash_slow(st->map + st->offs, (size_t)osz, md, sess);
usr.bin/rsync/blocks.c
216
if (memcmp(md, ent->blk->chksum_long, blks->csum))
usr.bin/rsync/downloader.c
304
md[MD4_DIGEST_LENGTH];
usr.bin/rsync/downloader.c
546
if (!io_read_buf(sess, p->fdin, md, MD4_DIGEST_LENGTH)) {
usr.bin/rsync/downloader.c
549
} else if (memcmp(md, ourmd, MD4_DIGEST_LENGTH)) {
usr.bin/rsync/hash.c
101
MD4_Final(md, ctx);
usr.bin/rsync/hash.c
68
unsigned char *md, const struct sess *sess)
usr.bin/rsync/hash.c
76
MD4_Final(md, &ctx);
usr.bin/rsync/hash.c
99
hash_file_final(MD4_CTX *ctx, unsigned char *md)
usr.bin/snmp/snmpc.c
114
const EVP_MD *md = NULL;
usr.bin/snmp/snmpc.c
189
md = EVP_md5();
usr.bin/snmp/snmpc.c
191
md = EVP_sha1();
usr.bin/snmp/snmpc.c
193
md = EVP_sha224();
usr.bin/snmp/snmpc.c
195
md = EVP_sha256();
usr.bin/snmp/snmpc.c
197
md = EVP_sha384();
usr.bin/snmp/snmpc.c
199
md = EVP_sha512();
usr.bin/snmp/snmpc.c
483
if (md == NULL)
usr.bin/snmp/snmpc.c
484
md = EVP_sha1();
usr.bin/snmp/snmpc.c
487
if (usm_setauth(sec, md, authkey, authkeylen,
usr.bin/snmp/usm.c
623
usm_passwd2mkey(const EVP_MD *md, const char *passwd)
usr.bin/snmp/usm.c
635
if (!EVP_DigestInit_ex(ctx, md, NULL)) {
usr.bin/snmp/usm.c
666
usm_mkey2lkey(struct usm_sec *usm, const EVP_MD *md, const char *mkey)
usr.bin/snmp/usm.c
676
if (!EVP_DigestInit_ex(ctx, md, NULL) ||
usr.bin/snmp/usm.c
677
!EVP_DigestUpdate(ctx, mkey, EVP_MD_size(md)) ||
usr.bin/snmp/usm.c
679
!EVP_DigestUpdate(ctx, mkey, EVP_MD_size(md)) ||
usr.bin/snmp/usm.c
694
usm_digestlen(const EVP_MD *md)
usr.bin/snmp/usm.c
696
switch (EVP_MD_type(md)) {
usr.bin/ssh/readconf.c
343
struct ssh_digest_ctx *md;
usr.bin/ssh/readconf.c
346
if ((md = ssh_digest_start(SSH_DIGEST_SHA1)) == NULL ||
usr.bin/ssh/readconf.c
347
ssh_digest_update(md, thishost, strlen(thishost)) < 0 ||
usr.bin/ssh/readconf.c
348
ssh_digest_update(md, host, strlen(host)) < 0 ||
usr.bin/ssh/readconf.c
349
ssh_digest_update(md, portstr, strlen(portstr)) < 0 ||
usr.bin/ssh/readconf.c
350
ssh_digest_update(md, user, strlen(user)) < 0 ||
usr.bin/ssh/readconf.c
351
ssh_digest_update(md, jumphost, strlen(jumphost)) < 0 ||
usr.bin/ssh/readconf.c
352
ssh_digest_final(md, conn_hash, sizeof(conn_hash)) < 0)
usr.bin/ssh/readconf.c
354
ssh_digest_free(md);
usr.bin/tmux/menu.c
181
struct menu_data *md = data;
usr.bin/tmux/menu.c
183
*cx = md->px + 2;
usr.bin/tmux/menu.c
184
if (md->choice == -1)
usr.bin/tmux/menu.c
185
*cy = md->py;
usr.bin/tmux/menu.c
187
*cy = md->py + 1 + md->choice;
usr.bin/tmux/menu.c
189
return (&md->s);
usr.bin/tmux/menu.c
197
struct menu_data *md = data;
usr.bin/tmux/menu.c
198
struct menu *menu = md->menu;
usr.bin/tmux/menu.c
200
server_client_overlay_range(md->px, md->py, menu->width + 4,
usr.bin/tmux/menu.c
201
menu->count + 2, px, py, nx, &md->r);
usr.bin/tmux/menu.c
202
return (&md->r);
usr.bin/tmux/menu.c
206
menu_reapply_styles(struct menu_data *md, struct client *c)
usr.bin/tmux/menu.c
220
memcpy(&md->style_gc, &grid_default_cell, sizeof md->style_gc);
usr.bin/tmux/menu.c
221
style_apply(&md->style_gc, o, "menu-style", ft);
usr.bin/tmux/menu.c
222
if (md->style != NULL) {
usr.bin/tmux/menu.c
224
if (style_parse(&sytmp, &md->style_gc, md->style) == 0) {
usr.bin/tmux/menu.c
225
md->style_gc.fg = sytmp.gc.fg;
usr.bin/tmux/menu.c
226
md->style_gc.bg = sytmp.gc.bg;
usr.bin/tmux/menu.c
231
memcpy(&md->selected_style_gc, &grid_default_cell,
usr.bin/tmux/menu.c
232
sizeof md->selected_style_gc);
usr.bin/tmux/menu.c
233
style_apply(&md->selected_style_gc, o, "menu-selected-style", ft);
usr.bin/tmux/menu.c
234
if (md->selected_style != NULL) {
usr.bin/tmux/menu.c
236
if (style_parse(&sytmp, &md->selected_style_gc,
usr.bin/tmux/menu.c
237
md->selected_style) == 0) {
usr.bin/tmux/menu.c
238
md->selected_style_gc.fg = sytmp.gc.fg;
usr.bin/tmux/menu.c
239
md->selected_style_gc.bg = sytmp.gc.bg;
usr.bin/tmux/menu.c
244
memcpy(&md->border_style_gc, &grid_default_cell,
usr.bin/tmux/menu.c
245
sizeof md->border_style_gc);
usr.bin/tmux/menu.c
246
style_apply(&md->border_style_gc, o, "menu-border-style", ft);
usr.bin/tmux/menu.c
247
if (md->border_style != NULL) {
usr.bin/tmux/menu.c
249
if (style_parse(&sytmp, &md->border_style_gc,
usr.bin/tmux/menu.c
250
md->border_style) == 0) {
usr.bin/tmux/menu.c
251
md->border_style_gc.fg = sytmp.gc.fg;
usr.bin/tmux/menu.c
252
md->border_style_gc.bg = sytmp.gc.bg;
usr.bin/tmux/menu.c
263
struct menu_data *md = data;
usr.bin/tmux/menu.c
265
struct screen *s = &md->s;
usr.bin/tmux/menu.c
266
struct menu *menu = md->menu;
usr.bin/tmux/menu.c
268
u_int i, px = md->px, py = md->py;
usr.bin/tmux/menu.c
270
menu_reapply_styles(md, c);
usr.bin/tmux/menu.c
275
if (md->border_lines != BOX_LINES_NONE) {
usr.bin/tmux/menu.c
277
md->border_lines, &md->border_style_gc, menu->title);
usr.bin/tmux/menu.c
280
screen_write_menu(&ctx, menu, md->choice, md->border_lines,
usr.bin/tmux/menu.c
281
&md->style_gc, &md->border_style_gc, &md->selected_style_gc);
usr.bin/tmux/menu.c
284
for (i = 0; i < screen_size_y(&md->s); i++) {
usr.bin/tmux/menu.c
293
struct menu_data *md = data;
usr.bin/tmux/menu.c
295
if (md->item != NULL)
usr.bin/tmux/menu.c
296
cmdq_continue(md->item);
usr.bin/tmux/menu.c
298
if (md->cb != NULL)
usr.bin/tmux/menu.c
299
md->cb(md->menu, UINT_MAX, KEYC_NONE, md->data);
usr.bin/tmux/menu.c
301
free(md->r.ranges);
usr.bin/tmux/menu.c
302
screen_free(&md->s);
usr.bin/tmux/menu.c
304
menu_free(md->menu);
usr.bin/tmux/menu.c
305
free(md->style);
usr.bin/tmux/menu.c
306
free(md->selected_style);
usr.bin/tmux/menu.c
307
free(md->border_style);
usr.bin/tmux/menu.c
308
free(md);
usr.bin/tmux/menu.c
314
struct menu_data *md = data;
usr.bin/tmux/menu.c
315
struct menu *menu = md->menu;
usr.bin/tmux/menu.c
318
int count = menu->count, old = md->choice;
usr.bin/tmux/menu.c
326
if (md->flags & MENU_NOMOUSE) {
usr.bin/tmux/menu.c
331
if (m->x < md->px ||
usr.bin/tmux/menu.c
332
m->x > md->px + 4 + menu->width ||
usr.bin/tmux/menu.c
333
m->y < md->py + 1 ||
usr.bin/tmux/menu.c
334
m->y > md->py + 1 + count - 1) {
usr.bin/tmux/menu.c
335
if (~md->flags & MENU_STAYOPEN) {
usr.bin/tmux/menu.c
344
if (md->choice != -1) {
usr.bin/tmux/menu.c
345
md->choice = -1;
usr.bin/tmux/menu.c
350
if (~md->flags & MENU_STAYOPEN) {
usr.bin/tmux/menu.c
357
md->choice = m->y - (md->py + 1);
usr.bin/tmux/menu.c
358
if (md->choice != old)
usr.bin/tmux/menu.c
367
md->choice = i;
usr.bin/tmux/menu.c
378
if (md->choice == -1 || md->choice == 0)
usr.bin/tmux/menu.c
379
md->choice = count - 1;
usr.bin/tmux/menu.c
381
md->choice--;
usr.bin/tmux/menu.c
382
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
383
} while ((name == NULL || *name == '-') && md->choice != old);
usr.bin/tmux/menu.c
387
if (~md->flags & MENU_TAB)
usr.bin/tmux/menu.c
391
if (~md->flags & MENU_TAB)
usr.bin/tmux/menu.c
393
if (md->choice == count - 1)
usr.bin/tmux/menu.c
401
if (md->choice == -1 || md->choice == count - 1)
usr.bin/tmux/menu.c
402
md->choice = 0;
usr.bin/tmux/menu.c
404
md->choice++;
usr.bin/tmux/menu.c
405
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
406
} while ((name == NULL || *name == '-') && md->choice != old);
usr.bin/tmux/menu.c
411
if (md->choice < 6)
usr.bin/tmux/menu.c
412
md->choice = 0;
usr.bin/tmux/menu.c
416
md->choice--;
usr.bin/tmux/menu.c
417
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
418
if (md->choice != 0 &&
usr.bin/tmux/menu.c
421
else if (md->choice == 0)
usr.bin/tmux/menu.c
428
if (md->choice > count - 6) {
usr.bin/tmux/menu.c
429
md->choice = count - 1;
usr.bin/tmux/menu.c
430
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
434
md->choice++;
usr.bin/tmux/menu.c
435
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
436
if (md->choice != count - 1 &&
usr.bin/tmux/menu.c
439
else if (md->choice == count - 1)
usr.bin/tmux/menu.c
444
md->choice--;
usr.bin/tmux/menu.c
445
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
451
md->choice = 0;
usr.bin/tmux/menu.c
452
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
454
md->choice++;
usr.bin/tmux/menu.c
455
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
461
md->choice = count - 1;
usr.bin/tmux/menu.c
462
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
464
md->choice--;
usr.bin/tmux/menu.c
465
name = menu->items[md->choice].name;
usr.bin/tmux/menu.c
482
if (md->choice == -1)
usr.bin/tmux/menu.c
484
item = &menu->items[md->choice];
usr.bin/tmux/menu.c
486
if (md->flags & MENU_STAYOPEN)
usr.bin/tmux/menu.c
490
if (md->cb != NULL) {
usr.bin/tmux/menu.c
491
md->cb(md->menu, md->choice, item->key, md->data);
usr.bin/tmux/menu.c
492
md->cb = NULL;
usr.bin/tmux/menu.c
496
if (md->item != NULL)
usr.bin/tmux/menu.c
497
event = cmdq_get_event(md->item);
usr.bin/tmux/menu.c
500
state = cmdq_new_state(&md->fs, event, 0);
usr.bin/tmux/menu.c
515
struct menu_data *md = data;
usr.bin/tmux/menu.c
518
if (md == NULL)
usr.bin/tmux/menu.c
521
nx = md->px;
usr.bin/tmux/menu.c
522
ny = md->py;
usr.bin/tmux/menu.c
524
w = md->menu->width + 4;
usr.bin/tmux/menu.c
525
h = md->menu->count + 2;
usr.bin/tmux/menu.c
540
md->px = nx;
usr.bin/tmux/menu.c
541
md->py = ny;
usr.bin/tmux/menu.c
551
struct menu_data *md;
usr.bin/tmux/menu.c
566
md = xcalloc(1, sizeof *md);
usr.bin/tmux/menu.c
567
md->item = item;
usr.bin/tmux/menu.c
568
md->flags = flags;
usr.bin/tmux/menu.c
569
md->border_lines = lines;
usr.bin/tmux/menu.c
572
md->style = xstrdup(style);
usr.bin/tmux/menu.c
574
md->selected_style = xstrdup(selected_style);
usr.bin/tmux/menu.c
576
md->border_style = xstrdup(border_style);
usr.bin/tmux/menu.c
579
cmd_find_copy_state(&md->fs, fs);
usr.bin/tmux/menu.c
580
screen_init(&md->s, menu->width + 4, menu->count + 2, 0);
usr.bin/tmux/menu.c
581
if (~md->flags & MENU_NOMOUSE)
usr.bin/tmux/menu.c
582
md->s.mode |= (MODE_MOUSE_ALL|MODE_MOUSE_BUTTON);
usr.bin/tmux/menu.c
583
md->s.mode &= ~MODE_CURSOR;
usr.bin/tmux/menu.c
585
md->px = px;
usr.bin/tmux/menu.c
586
md->py = py;
usr.bin/tmux/menu.c
588
md->menu = menu;
usr.bin/tmux/menu.c
589
md->choice = -1;
usr.bin/tmux/menu.c
591
if (md->flags & MENU_NOMOUSE) {
usr.bin/tmux/menu.c
598
md->choice = choice - 1;
usr.bin/tmux/menu.c
611
md->choice = choice;
usr.bin/tmux/menu.c
622
md->cb = cb;
usr.bin/tmux/menu.c
623
md->data = data;
usr.bin/tmux/menu.c
624
return (md);
usr.bin/tmux/menu.c
634
struct menu_data *md;
usr.bin/tmux/menu.c
636
md = menu_prepare(menu, flags, starting_choice, item, px, py, c, lines,
usr.bin/tmux/menu.c
638
if (md == NULL)
usr.bin/tmux/menu.c
641
menu_key_cb, menu_free_cb, menu_resize_cb, md);
usr.bin/tmux/popup.c
202
if (pd->md != NULL)
usr.bin/tmux/popup.c
203
return (menu_mode_cb(c, pd->md, cx, cy));
usr.bin/tmux/popup.c
224
if (pd->md != NULL) {
usr.bin/tmux/popup.c
230
mr = menu_check_cb(c, pd->md, px, py, nx);
usr.bin/tmux/popup.c
308
if (pd->md != NULL) {
usr.bin/tmux/popup.c
310
c->overlay_data = pd->md;
usr.bin/tmux/popup.c
320
if (pd->md != NULL) {
usr.bin/tmux/popup.c
323
menu_draw_cb(c, pd->md, rctx);
usr.bin/tmux/popup.c
335
if (pd->md != NULL)
usr.bin/tmux/popup.c
336
menu_free_cb(c, pd->md);
usr.bin/tmux/popup.c
373
if (pd->md != NULL)
usr.bin/tmux/popup.c
374
menu_free_cb(c, pd->md);
usr.bin/tmux/popup.c
460
pd->md = NULL;
usr.bin/tmux/popup.c
55
struct menu_data *md;
usr.bin/tmux/popup.c
564
if (pd->md != NULL) {
usr.bin/tmux/popup.c
565
if (menu_key_cb(c, pd->md, event) == 1) {
usr.bin/tmux/popup.c
566
pd->md = NULL;
usr.bin/tmux/popup.c
653
pd->md = menu_prepare(pd->menu, 0, 0, NULL, x, m->y, c,
usr.bin/tmux/popup.c
677
if (pd->md != NULL) {
usr.bin/tmux/popup.c
679
c->overlay_data = pd->md;
usr.sbin/ldapd/auth.c
214
unsigned char md[SHA_DIGEST_LENGTH];
usr.sbin/ldapd/auth.c
229
SHA1_Final(md, &ctx);
usr.sbin/ldapd/auth.c
230
return (bcmp(md, tmp, SHA_DIGEST_LENGTH) == 0 ? 1 : 0);
usr.sbin/ldapd/auth.c
239
SHA1_Final(md, &ctx);
usr.sbin/ldapd/auth.c
240
return (bcmp(md, tmp, SHA_DIGEST_LENGTH) == 0 ? 1 : 0);
usr.sbin/ldomctl/config.c
1001
node = md_add_node(md, "cpu");
usr.sbin/ldomctl/config.c
1002
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1003
md_add_prop_val(md, node, "pid", cpu->pid);
usr.sbin/ldomctl/config.c
1004
md_add_prop_val(md, node, "vid", cpu->vid);
usr.sbin/ldomctl/config.c
1005
md_add_prop_val(md, node, "gid", cpu->gid);
usr.sbin/ldomctl/config.c
1006
md_add_prop_val(md, node, "partid", cpu->partid);
usr.sbin/ldomctl/config.c
1007
md_add_prop_val(md, node, "resource_id", cpu->resource_id);
usr.sbin/ldomctl/config.c
1012
hvmd_finalize_cpus(struct md *md)
usr.sbin/ldomctl/config.c
1018
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1021
node = md_add_node(md, "cpus");
usr.sbin/ldomctl/config.c
1022
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1026
hvmd_finalize_cpu(md, cpus[resource_id]);
usr.sbin/ldomctl/config.c
1031
hvmd_finalize_maus(struct md *md)
usr.sbin/ldomctl/config.c
1038
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1041
node = md_add_node(md, "maus");
usr.sbin/ldomctl/config.c
1042
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1045
node = md_add_node(md, "cwqs");
usr.sbin/ldomctl/config.c
1046
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1050
node = md_add_node(md, "rngs");
usr.sbin/ldomctl/config.c
1051
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1052
child = md_add_node(md, "rng");
usr.sbin/ldomctl/config.c
1053
md_link_node(md, node, child);
usr.sbin/ldomctl/config.c
1056
md_link_node(md, cpus[i]->hv_node, child);
usr.sbin/ldomctl/config.c
1062
hvmd_finalize_device(struct md *md, struct device *device, const char *name)
usr.sbin/ldomctl/config.c
1067
parent = md_find_node(md, "devices");
usr.sbin/ldomctl/config.c
1070
node = md_add_node(md, name);
usr.sbin/ldomctl/config.c
1071
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1072
md_add_prop_val(md, node, "resource_id", device->resource_id);
usr.sbin/ldomctl/config.c
1073
md_add_prop_val(md, node, "cfghandle", device->cfghandle);
usr.sbin/ldomctl/config.c
1074
md_add_prop_val(md, node, "gid", device->gid);
usr.sbin/ldomctl/config.c
1075
md_add_prop_val(md, node, "rcid", device->rcid);
usr.sbin/ldomctl/config.c
1080
hvmd_finalize_pcie_device(struct md *md, struct device *device)
usr.sbin/ldomctl/config.c
1089
hvmd_finalize_device(md, device,
usr.sbin/ldomctl/config.c
1103
md_add_prop_val(md, node, "allow_bypass", 0);
usr.sbin/ldomctl/config.c
1105
md_add_prop_val(md, node, "#msi-eqs", device->num_msi_eqs);
usr.sbin/ldomctl/config.c
1106
md_add_prop_val(md, node, "#msi", device->num_msis);
usr.sbin/ldomctl/config.c
1107
md_add_prop_data(md, node, "msi-ranges", (void *)device->msi_ranges,
usr.sbin/ldomctl/config.c
1109
md_add_prop_data(md, node, "virtual-dma", rootcomplex->vdma_ranges,
usr.sbin/ldomctl/config.c
1115
parent = md_add_node(md, "pcie_assignable_devices");
usr.sbin/ldomctl/config.c
1116
md_link_node(md, node, parent);
usr.sbin/ldomctl/config.c
1131
child = md_add_node(md, "pcie_device");
usr.sbin/ldomctl/config.c
1132
md_link_node(md, parent, child);
usr.sbin/ldomctl/config.c
1134
md_add_prop_str(md, child, "path", path2);
usr.sbin/ldomctl/config.c
1135
md_add_prop_val(md, child, "resource_id", resource_id);
usr.sbin/ldomctl/config.c
114
struct md *pri;
usr.sbin/ldomctl/config.c
1142
parent = md_add_node(md, "pcie_assigned_devices");
usr.sbin/ldomctl/config.c
1143
md_link_node(md, node, parent);
usr.sbin/ldomctl/config.c
115
struct md *hvmd;
usr.sbin/ldomctl/config.c
1150
md_link_node(md, parent, component->hv_node);
usr.sbin/ldomctl/config.c
1158
hvmd_finalize_devices(struct md *md)
usr.sbin/ldomctl/config.c
116
struct md *protomd;
usr.sbin/ldomctl/config.c
1164
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1167
node = md_add_node(md, "devices");
usr.sbin/ldomctl/config.c
1168
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1172
hvmd_finalize_pcie_device(md, pcie_busses[resource_id]);
usr.sbin/ldomctl/config.c
1176
hvmd_finalize_device(md, network_devices[resource_id],
usr.sbin/ldomctl/config.c
1182
hvmd_finalize_mblock(struct md *md, struct mblock *mblock)
usr.sbin/ldomctl/config.c
1187
parent = md_find_node(md, "memory");
usr.sbin/ldomctl/config.c
1190
node = md_add_node(md, "mblock");
usr.sbin/ldomctl/config.c
1191
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1192
md_add_prop_val(md, node, "membase", mblock->membase);
usr.sbin/ldomctl/config.c
1193
md_add_prop_val(md, node, "memsize", mblock->memsize);
usr.sbin/ldomctl/config.c
1194
md_add_prop_val(md, node, "realbase", mblock->realbase);
usr.sbin/ldomctl/config.c
1195
md_add_prop_val(md, node, "resource_id", mblock->resource_id);
usr.sbin/ldomctl/config.c
1200
hvmd_finalize_memory(struct md *md)
usr.sbin/ldomctl/config.c
1206
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1209
node = md_add_node(md, "memory");
usr.sbin/ldomctl/config.c
1210
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1214
hvmd_finalize_mblock(md, mblocks[resource_id]);
usr.sbin/ldomctl/config.c
1219
hvmd_finalize_endpoint(struct md *md, struct ldc_endpoint *endpoint)
usr.sbin/ldomctl/config.c
1224
parent = md_find_node(md, "ldc_endpoints");
usr.sbin/ldomctl/config.c
1227
node = md_add_node(md, "ldc_endpoint");
usr.sbin/ldomctl/config.c
1228
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1229
md_add_prop_val(md, node, "resource_id", endpoint->resource_id);
usr.sbin/ldomctl/config.c
1230
md_add_prop_val(md, node, "target_type", endpoint->target_type);
usr.sbin/ldomctl/config.c
1231
md_add_prop_val(md, node, "channel", endpoint->channel);
usr.sbin/ldomctl/config.c
1233
md_add_prop_val(md, node, "target_guest",
usr.sbin/ldomctl/config.c
1235
md_add_prop_val(md, node, "target_channel", endpoint->target_channel);
usr.sbin/ldomctl/config.c
1237
md_add_prop_val(md, node, "tx-ino", endpoint->tx_ino);
usr.sbin/ldomctl/config.c
1239
md_add_prop_val(md, node, "rx-ino", endpoint->rx_ino);
usr.sbin/ldomctl/config.c
1241
md_add_prop_val(md, node, "private_svc",
usr.sbin/ldomctl/config.c
1244
md_add_prop_val(md, node, "svc_id", endpoint->svc_id);
usr.sbin/ldomctl/config.c
1249
hvmd_finalize_endpoints(struct md *md)
usr.sbin/ldomctl/config.c
1255
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1258
node = md_add_node(md, "ldc_endpoints");
usr.sbin/ldomctl/config.c
1259
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1263
hvmd_finalize_endpoint(md, ldc_endpoints[resource_id]);
usr.sbin/ldomctl/config.c
1268
hvmd_finalize_console(struct md *md, struct console *console)
usr.sbin/ldomctl/config.c
1274
parent = md_find_node(md, "consoles");
usr.sbin/ldomctl/config.c
1277
node = md_add_node(md, "console");
usr.sbin/ldomctl/config.c
1278
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1279
md_add_prop_val(md, node, "resource_id", console->resource_id);
usr.sbin/ldomctl/config.c
1280
md_add_prop_val(md, node, "ino", console->ino);
usr.sbin/ldomctl/config.c
1284
md_add_prop_val(md, node, "uartbase", console->uartbase);
usr.sbin/ldomctl/config.c
1290
md_link_node(md, node, endpoint->hv_node);
usr.sbin/ldomctl/config.c
1297
hvmd_finalize_consoles(struct md *md)
usr.sbin/ldomctl/config.c
1303
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1306
node = md_add_node(md, "consoles");
usr.sbin/ldomctl/config.c
1307
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1311
hvmd_finalize_console(md, consoles[resource_id]);
usr.sbin/ldomctl/config.c
1316
hvmd_finalize_guest(struct md *md, struct guest *guest)
usr.sbin/ldomctl/config.c
1325
parent = md_find_node(md, "guests");
usr.sbin/ldomctl/config.c
1328
node = md_add_node(md, "guest");
usr.sbin/ldomctl/config.c
1329
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1330
md_add_prop_str(md, node, "name", guest->name);
usr.sbin/ldomctl/config.c
1331
md_add_prop_val(md, node, "gid", guest->gid);
usr.sbin/ldomctl/config.c
1332
md_add_prop_val(md, node, "pid", guest->pid);
usr.sbin/ldomctl/config.c
1333
md_add_prop_val(md, node, "resource_id", guest->resource_id);
usr.sbin/ldomctl/config.c
1334
md_add_prop_val(md, node, "tod-offset", guest->tod_offset);
usr.sbin/ldomctl/config.c
1335
md_add_prop_val(md, node, "reset-reason", 0);
usr.sbin/ldomctl/config.c
1336
md_add_prop_val(md, node, "perfctraccess", guest->perfctraccess);
usr.sbin/ldomctl/config.c
1337
md_add_prop_val(md, node, "perfctrhtaccess", guest->perfctrhtaccess);
usr.sbin/ldomctl/config.c
1338
md_add_prop_val(md, node, "rngctlaccessible", guest->rngctlaccessible);
usr.sbin/ldomctl/config.c
1339
md_add_prop_val(md, node, "diagpriv", 0);
usr.sbin/ldomctl/config.c
1340
md_add_prop_val(md, node, "mdpa", guest->mdpa);
usr.sbin/ldomctl/config.c
1341
md_add_prop_val(md, node, "rombase", rombase);
usr.sbin/ldomctl/config.c
1342
md_add_prop_val(md, node, "romsize", romsize);
usr.sbin/ldomctl/config.c
1343
md_add_prop_val(md, node, "uartbase", uartbase);
usr.sbin/ldomctl/config.c
1346
node = md_add_node(md, "virtual_devices");
usr.sbin/ldomctl/config.c
1347
md_link_node(md, guest->hv_node, node);
usr.sbin/ldomctl/config.c
1348
md_add_prop_val(md, node, "cfghandle", 0x100);
usr.sbin/ldomctl/config.c
1350
node = md_add_node(md, "channel_devices");
usr.sbin/ldomctl/config.c
1351
md_link_node(md, guest->hv_node, node);
usr.sbin/ldomctl/config.c
1352
md_add_prop_val(md, node, "cfghandle", 0x200);
usr.sbin/ldomctl/config.c
1355
md_link_node(md, guest->hv_node, guest->console->hv_node);
usr.sbin/ldomctl/config.c
1357
md_link_node(md, guest->hv_node, cpu->hv_node);
usr.sbin/ldomctl/config.c
1359
md_link_node(md, guest->hv_node, device->hv_node);
usr.sbin/ldomctl/config.c
1361
md_link_node(md, guest->hv_node, mblock->hv_node);
usr.sbin/ldomctl/config.c
1363
md_link_node(md, guest->hv_node, endpoint->hv_node);
usr.sbin/ldomctl/config.c
1367
hvmd_finalize_guests(struct md *md)
usr.sbin/ldomctl/config.c
1373
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1376
node = md_add_node(md, "guests");
usr.sbin/ldomctl/config.c
1377
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1381
hvmd_finalize_guest(md, guests[resource_id]);
usr.sbin/ldomctl/config.c
1388
struct md *md;
usr.sbin/ldomctl/config.c
1393
md = md_alloc();
usr.sbin/ldomctl/config.c
1394
node = md_add_node(md, "root");
usr.sbin/ldomctl/config.c
1395
md_add_prop_val(md, node, "content-version", content_version);
usr.sbin/ldomctl/config.c
1397
md_add_prop_val(md, node, "stick-frequency", stick_frequency);
usr.sbin/ldomctl/config.c
1399
md_add_prop_val(md, node, "tod-frequency",
usr.sbin/ldomctl/config.c
1402
md_add_prop_val(md, node, "tod", tod);
usr.sbin/ldomctl/config.c
1404
md_add_prop_val(md, node, "erpt-pa", erpt_pa);
usr.sbin/ldomctl/config.c
1406
md_add_prop_val(md, node, "erpt-size", erpt_size);
usr.sbin/ldomctl/config.c
1409
node = md_add_node(md, "platform");
usr.sbin/ldomctl/config.c
1410
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1411
md_add_prop_val(md, node, "stick-frequency", stick_frequency);
usr.sbin/ldomctl/config.c
1414
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1417
node = md_add_node(md, "frag_space");
usr.sbin/ldomctl/config.c
1418
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1419
md_add_prop_val(md, node, "fragsize", fragsize);
usr.sbin/ldomctl/config.c
1421
parent = md_find_node(md, "frag_space");
usr.sbin/ldomctl/config.c
1423
node = md_add_node(md, "frag_mblock");
usr.sbin/ldomctl/config.c
1424
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1425
md_add_prop_val(md, node, "base", mblock->membase);
usr.sbin/ldomctl/config.c
1426
md_add_prop_val(md, node, "size", mblock->memsize);
usr.sbin/ldomctl/config.c
1430
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
1433
node = md_add_node(md, "hvmd_mblock");
usr.sbin/ldomctl/config.c
1434
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1435
md_add_prop_val(md, node, "base", hvmd_mblock->membase);
usr.sbin/ldomctl/config.c
1436
md_add_prop_val(md, node, "size", hvmd_mblock->memsize);
usr.sbin/ldomctl/config.c
1437
md_add_prop_val(md, node, "md_maxsize", md_maxsize);
usr.sbin/ldomctl/config.c
144
pri_link_core(struct md *md, struct md_node *node, struct core *core)
usr.sbin/ldomctl/config.c
1440
hvmd_finalize_cpus(md);
usr.sbin/ldomctl/config.c
1441
hvmd_finalize_maus(md);
usr.sbin/ldomctl/config.c
1442
hvmd_finalize_devices(md);
usr.sbin/ldomctl/config.c
1443
hvmd_finalize_memory(md);
usr.sbin/ldomctl/config.c
1444
hvmd_finalize_endpoints(md);
usr.sbin/ldomctl/config.c
1445
hvmd_finalize_consoles(md);
usr.sbin/ldomctl/config.c
1446
hvmd_finalize_guests(md);
usr.sbin/ldomctl/config.c
1448
md_write(md, "hv.md");
usr.sbin/ldomctl/config.c
156
pri_link_core(md, node2, core);
usr.sbin/ldomctl/config.c
161
if (!md_get_prop_val(md, node2, "pid", &pid))
usr.sbin/ldomctl/config.c
1613
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1617
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
162
md_get_prop_val(md, node2, "id", &pid);
usr.sbin/ldomctl/config.c
1620
node = md_add_node(md, "channel-endpoints");
usr.sbin/ldomctl/config.c
1621
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1629
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1633
parent = md_find_node(md, "channel-endpoints");
usr.sbin/ldomctl/config.c
1637
node = md_add_node(md, "channel-endpoint");
usr.sbin/ldomctl/config.c
1638
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1639
md_add_prop_val(md, node, "id", id);
usr.sbin/ldomctl/config.c
1640
md_add_prop_val(md, node, "tx-ino", 2 * id);
usr.sbin/ldomctl/config.c
1641
md_add_prop_val(md, node, "rx-ino", 2 * id + 1);
usr.sbin/ldomctl/config.c
1650
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1654
parent = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
1657
node = md_add_node(md, "virtual-device");
usr.sbin/ldomctl/config.c
1658
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1659
md_add_prop_str(md, node, "name", "virtual-console-concentrator");
usr.sbin/ldomctl/config.c
1660
md_add_prop_data(md, node, "compatible", compatible,
usr.sbin/ldomctl/config.c
1662
md_add_prop_str(md, node, "device_type", "vcc");
usr.sbin/ldomctl/config.c
1663
md_add_prop_val(md, node, "cfg-handle", 0x0);
usr.sbin/ldomctl/config.c
1664
md_add_prop_str(md, node, "svc-name", "primary-vcc0");
usr.sbin/ldomctl/config.c
1672
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1677
node = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
1684
if (!md_get_prop_str(md, node2, "name", &name))
usr.sbin/ldomctl/config.c
1698
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1707
node = md_add_node(md, "virtual-device-port");
usr.sbin/ldomctl/config.c
1708
md_link_node(md, vcc, node);
usr.sbin/ldomctl/config.c
1709
md_add_prop_str(md, node, "name", "vcc-port");
usr.sbin/ldomctl/config.c
1710
md_add_prop_val(md, node, "id", id);
usr.sbin/ldomctl/config.c
1711
md_add_prop_str(md, node, "vcc-domain-name", domain);
usr.sbin/ldomctl/config.c
1712
md_add_prop_str(md, node, "vcc-group-name", domain);
usr.sbin/ldomctl/config.c
1714
md_add_prop_val(md, node, "vcc-tcp-port", 5000 + id);
usr.sbin/ldomctl/config.c
1717
md_link_node(md, node, child);
usr.sbin/ldomctl/config.c
1726
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
173
pri_add_core(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
1730
parent = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
1733
node = md_add_node(md, "virtual-device");
usr.sbin/ldomctl/config.c
1734
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1735
md_add_prop_str(md, node, "name", "virtual-disk-server");
usr.sbin/ldomctl/config.c
1736
md_add_prop_data(md, node, "compatible", compatible,
usr.sbin/ldomctl/config.c
1738
md_add_prop_str(md, node, "device_type", "vds");
usr.sbin/ldomctl/config.c
1739
md_add_prop_val(md, node, "cfg-handle", 0x0);
usr.sbin/ldomctl/config.c
1740
md_add_prop_str(md, node, "svc-name", "primary-vds0");
usr.sbin/ldomctl/config.c
1748
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1753
node = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
1760
if (!md_get_prop_str(md, node2, "name", &name))
usr.sbin/ldomctl/config.c
1774
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1783
node = md_add_node(md, "virtual-device-port");
usr.sbin/ldomctl/config.c
1784
md_link_node(md, vds, node);
usr.sbin/ldomctl/config.c
1785
md_add_prop_str(md, node, "name", "vds-port");
usr.sbin/ldomctl/config.c
1786
md_add_prop_val(md, node, "id", id);
usr.sbin/ldomctl/config.c
1787
md_add_prop_str(md, node, "vds-block-device", path);
usr.sbin/ldomctl/config.c
1790
md_link_node(md, node, child);
usr.sbin/ldomctl/config.c
1799
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
180
pri_link_core(md, node, core);
usr.sbin/ldomctl/config.c
1803
parent = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
1806
node = md_add_node(md, "virtual-device");
usr.sbin/ldomctl/config.c
1807
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1808
md_add_prop_str(md, node, "name", "virtual-network-switch");
usr.sbin/ldomctl/config.c
1809
md_add_prop_data(md, node, "compatible", compatible,
usr.sbin/ldomctl/config.c
1811
md_add_prop_str(md, node, "device_type", "vsw");
usr.sbin/ldomctl/config.c
1812
md_add_prop_val(md, node, "cfg-handle", 0x0);
usr.sbin/ldomctl/config.c
1813
md_add_prop_str(md, node, "svc-name", "primary-vsw0");
usr.sbin/ldomctl/config.c
1821
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1826
node = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
1833
if (!md_get_prop_str(md, node2, "name", &name))
usr.sbin/ldomctl/config.c
184
pri_init_cores(struct md *md)
usr.sbin/ldomctl/config.c
1847
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1856
if (!md_get_prop_val(md, vds, "local-mac-address", &mac_addr)) {
usr.sbin/ldomctl/config.c
1858
md_add_prop_val(md, vds, "local-mac-address", mac_addr);
usr.sbin/ldomctl/config.c
1861
node = md_add_node(md, "virtual-device-port");
usr.sbin/ldomctl/config.c
1862
md_link_node(md, vds, node);
usr.sbin/ldomctl/config.c
1863
md_add_prop_str(md, node, "name", "vsw-port");
usr.sbin/ldomctl/config.c
1864
md_add_prop_val(md, node, "id", id);
usr.sbin/ldomctl/config.c
1867
md_link_node(md, node, child);
usr.sbin/ldomctl/config.c
1876
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1880
parent = md_find_node(md, "virtual-devices");
usr.sbin/ldomctl/config.c
1883
node = md_add_node(md, "virtual-device");
usr.sbin/ldomctl/config.c
1884
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1885
md_add_prop_str(md, node, "name", "console");
usr.sbin/ldomctl/config.c
1886
md_add_prop_str(md, node, "device-type", "serial");
usr.sbin/ldomctl/config.c
1887
md_add_prop_val(md, node, "intr", 0x1);
usr.sbin/ldomctl/config.c
1888
md_add_prop_val(md, node, "ino", 0x11);
usr.sbin/ldomctl/config.c
1889
md_add_prop_val(md, node, "channel#", 0);
usr.sbin/ldomctl/config.c
1890
md_add_prop_val(md, node, "cfg-handle", 0x1);
usr.sbin/ldomctl/config.c
1891
md_add_prop_data(md, node, "compatible", compatible,
usr.sbin/ldomctl/config.c
1901
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1905
parent = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
1908
node = md_add_node(md, "virtual-device");
usr.sbin/ldomctl/config.c
1909
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1910
md_add_prop_str(md, node, "name", "disk");
usr.sbin/ldomctl/config.c
1911
md_add_prop_str(md, node, "device-type", "block");
usr.sbin/ldomctl/config.c
1912
md_add_prop_val(md, node, "cfg-handle", cfghandle);
usr.sbin/ldomctl/config.c
1913
md_add_prop_data(md, node, "compatible", compatible,
usr.sbin/ldomctl/config.c
192
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/config.c
1923
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1930
node = md_add_node(md, "virtual-device-port");
usr.sbin/ldomctl/config.c
1931
md_link_node(md, vdc, node);
usr.sbin/ldomctl/config.c
1932
md_add_prop_str(md, node, "name", "vdc-port");
usr.sbin/ldomctl/config.c
1933
md_add_prop_val(md, node, "id", id);
usr.sbin/ldomctl/config.c
1936
md_link_node(md, node, child);
usr.sbin/ldomctl/config.c
194
md_get_prop_data(md, node, "type", &type, &len) &&
usr.sbin/ldomctl/config.c
1946
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1950
parent = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
1953
node = md_add_node(md, "virtual-device");
usr.sbin/ldomctl/config.c
1954
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
1955
md_add_prop_str(md, node, "name", "network");
usr.sbin/ldomctl/config.c
1956
md_add_prop_str(md, node, "device-type", "network");
usr.sbin/ldomctl/config.c
1957
md_add_prop_val(md, node, "cfg-handle", cfghandle);
usr.sbin/ldomctl/config.c
1958
md_add_prop_data(md, node, "compatible", compatible,
usr.sbin/ldomctl/config.c
196
pri_add_core(md, node);
usr.sbin/ldomctl/config.c
1962
md_add_prop_val(md, node, "local-mac-address", mac_addr);
usr.sbin/ldomctl/config.c
1963
md_add_prop_val(md, node, "mtu", mtu);
usr.sbin/ldomctl/config.c
1973
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
1980
node = md_add_node(md, "virtual-device-port");
usr.sbin/ldomctl/config.c
1981
md_link_node(md, vdc, node);
usr.sbin/ldomctl/config.c
1982
md_add_prop_str(md, node, "name", "vnet-port");
usr.sbin/ldomctl/config.c
1983
md_add_prop_val(md, node, "id", id);
usr.sbin/ldomctl/config.c
1984
md_add_prop_val(md, node, "switch-port", 0);
usr.sbin/ldomctl/config.c
1985
md_add_prop_data(md, node, "remote-mac-address",
usr.sbin/ldomctl/config.c
1989
md_link_node(md, node, child);
usr.sbin/ldomctl/config.c
1998
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2002
parent = md_find_node(md, "virtual-devices");
usr.sbin/ldomctl/config.c
2005
node = md_add_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
2006
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
2007
md_add_prop_str(md, node, "name", "channel-devices");
usr.sbin/ldomctl/config.c
2008
md_add_prop_str(md, node, "device-type", "channel-devices");
usr.sbin/ldomctl/config.c
2009
md_add_prop_data(md, node, "compatible", compatible,
usr.sbin/ldomctl/config.c
2011
md_add_prop_val(md, node, "cfg-handle", 0x200);
usr.sbin/ldomctl/config.c
2019
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
202
pri_add_hostbridge(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
2023
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
2026
node = md_add_node(md, "domain-services");
usr.sbin/ldomctl/config.c
2027
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
2035
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2040
parent = md_find_node(md, "domain-services");
usr.sbin/ldomctl/config.c
2044
node = md_add_node(md, "domain-services-port");
usr.sbin/ldomctl/config.c
2045
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
2046
md_add_prop_val(md, node, "id", id);
usr.sbin/ldomctl/config.c
2050
md_link_node(md, node, child);
usr.sbin/ldomctl/config.c
2058
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2062
parent = md_find_node(md, "openboot");
usr.sbin/ldomctl/config.c
2065
node = md_find_subnode(md, parent, "devalias");
usr.sbin/ldomctl/config.c
2067
node = md_add_node(md, "devalias");
usr.sbin/ldomctl/config.c
2068
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
207
md_get_prop_str(md, node, "path", &hostbridge->path);
usr.sbin/ldomctl/config.c
2071
md_add_prop_str(md, node, name, path);
usr.sbin/ldomctl/config.c
2077
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
208
md_get_prop_val(md, node, "#msi-eqs", &hostbridge->num_msi_eqs);
usr.sbin/ldomctl/config.c
2080
node = md_find_node(md, "platform");
usr.sbin/ldomctl/config.c
2083
md_set_prop_val(md, node, "domaining-enabled", 0x1);
usr.sbin/ldomctl/config.c
2089
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
209
md_get_prop_val(md, node, "#msi", &hostbridge->num_msis);
usr.sbin/ldomctl/config.c
2094
node = md_find_node(md, "platform");
usr.sbin/ldomctl/config.c
2098
md_set_prop_val(md, node, "mac-address", mac_address);
usr.sbin/ldomctl/config.c
210
if (!md_get_prop_val(md, node, "#max-vpcis", &hostbridge->max_vpcis))
usr.sbin/ldomctl/config.c
2101
md_set_prop_val(md, node, "hostid", hostid);
usr.sbin/ldomctl/config.c
2107
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2113
node = md_find_node(md, "channel-devices");
usr.sbin/ldomctl/config.c
2120
if (!md_get_prop_str(md, node2, "name", &name))
usr.sbin/ldomctl/config.c
2134
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2143
node = md_add_node(md, "virtual-device-port");
usr.sbin/ldomctl/config.c
2144
md_link_node(md, vc, node);
usr.sbin/ldomctl/config.c
2145
md_add_prop_str(md, node, "name", "vldc-port");
usr.sbin/ldomctl/config.c
2146
md_add_prop_val(md, node, "id", id);
usr.sbin/ldomctl/config.c
2148
md_add_prop_str(md, node, "vldc-svc-name", str);
usr.sbin/ldomctl/config.c
2152
md_link_node(md, node, child);
usr.sbin/ldomctl/config.c
216
pri_init_components(struct md *md)
usr.sbin/ldomctl/config.c
2167
guest->md = md_copy(protomd);
usr.sbin/ldomctl/config.c
2169
md_find_delete_node(guest->md, "dimm_configuration");
usr.sbin/ldomctl/config.c
2170
md_find_delete_node(guest->md, "platform_services");
usr.sbin/ldomctl/config.c
2171
md_collect_garbage(guest->md);
usr.sbin/ldomctl/config.c
2187
node = md_find_node(guest->md, "root");
usr.sbin/ldomctl/config.c
2188
md_add_prop_val(guest->md, node, "reset-reason", 0);
usr.sbin/ldomctl/config.c
2214
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2221
node = md_find_node(guest->md, "phys_io");
usr.sbin/ldomctl/config.c
2226
if (!md_get_prop_str(md, node2, "device-type",
usr.sbin/ldomctl/config.c
2230
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
2234
if (!md_get_prop_val(md, node2, "cfg-handle",
usr.sbin/ldomctl/config.c
2236
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
2242
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
2246
md_set_prop_data(md, node2, "compatible",
usr.sbin/ldomctl/config.c
2248
md_add_prop_val(md, node2, "virtual-root-complex", 1);
usr.sbin/ldomctl/config.c
2260
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
227
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/config.c
2271
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
2274
if (!md_get_prop_val(md, node2, "device-number",
usr.sbin/ldomctl/config.c
2281
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
231
if (md_get_prop_str(md, node, "assignable-path", &path)) {
usr.sbin/ldomctl/config.c
2331
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
234
if (md_get_prop_str(md, node, "nac", &nac))
usr.sbin/ldomctl/config.c
2343
node = md_find_node(guest->md, "phys_io");
usr.sbin/ldomctl/config.c
2349
if (!md_get_prop_val(md, node2, "cfg-handle",
usr.sbin/ldomctl/config.c
2360
md_set_prop_val(md, node2, "#msi-eqs",
usr.sbin/ldomctl/config.c
2362
md_set_prop_val(md, node2, "#msi",
usr.sbin/ldomctl/config.c
2364
md_set_prop_data(md, node2, "msi-ranges",
usr.sbin/ldomctl/config.c
2368
md_get_prop_data(md, node2, "msi-eq-to-devino",
usr.sbin/ldomctl/config.c
2372
md_set_prop_data(md, node2, "msi-eq-to-devino",
usr.sbin/ldomctl/config.c
2395
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2399
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/config.c
2405
md_delete_node(md, node);
usr.sbin/ldomctl/config.c
241
if (md_get_prop_str(md, node, "type", &type) &&
usr.sbin/ldomctl/config.c
2415
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2420
node = md_find_node(md, "channel-endpoints");
usr.sbin/ldomctl/config.c
2429
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
243
pri_add_hostbridge(md, node);
usr.sbin/ldomctl/config.c
248
pri_init_phys_io(struct md *md)
usr.sbin/ldomctl/config.c
259
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/config.c
261
md_get_prop_str(md, node, "device-type", &device_type) &&
usr.sbin/ldomctl/config.c
2612
md_get_prop_val(primary->md, node, "local-mac-address", &remote_mac_addr);
usr.sbin/ldomctl/config.c
263
if (!md_get_prop_val(md, node, "cfg-handle",
usr.sbin/ldomctl/config.c
2631
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2635
node = md_find_node(md, "variables");
usr.sbin/ldomctl/config.c
2637
parent = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
2640
node = md_add_node(md, "variables");
usr.sbin/ldomctl/config.c
2641
md_link_node(md, parent, node);
usr.sbin/ldomctl/config.c
2644
md_add_prop_str(md, node, name, str);
usr.sbin/ldomctl/config.c
268
md_get_prop_val(md, node, "#msi-eqs",
usr.sbin/ldomctl/config.c
2688
struct md *md = guest->md;
usr.sbin/ldomctl/config.c
2699
node = md_find_node(md, "cpus");
usr.sbin/ldomctl/config.c
270
md_get_prop_val(md, node, "#msi",
usr.sbin/ldomctl/config.c
2704
if (!md_get_prop_val(md, node2, "pid", &pid))
usr.sbin/ldomctl/config.c
2705
if (!md_get_prop_val(md, node2, "id", &pid))
usr.sbin/ldomctl/config.c
2709
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
2712
md_set_prop_val(md, node2, "id", cpu->vid);
usr.sbin/ldomctl/config.c
272
md_get_prop_data(md, node, "msi-ranges",
usr.sbin/ldomctl/config.c
2721
node = md_find_node(md, "virtual-devices");
usr.sbin/ldomctl/config.c
2726
if (!md_get_prop_str(md, node2, "name", &name))
usr.sbin/ldomctl/config.c
2729
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
2731
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
2735
node = md_find_node(md, "memory");
usr.sbin/ldomctl/config.c
2740
md_delete_node(md, node2);
usr.sbin/ldomctl/config.c
2748
md_collect_garbage(md);
usr.sbin/ldomctl/config.c
2750
parent = md_find_node(md, "memory");
usr.sbin/ldomctl/config.c
2752
child = md_add_node(md, "mblock");
usr.sbin/ldomctl/config.c
2753
md_add_prop_val(md, child, "base", mblock->realbase);
usr.sbin/ldomctl/config.c
2754
md_add_prop_val(md, child, "size", mblock->memsize);
usr.sbin/ldomctl/config.c
2755
md_link_node(md, parent, child);
usr.sbin/ldomctl/config.c
2759
md_write(guest->md, path);
usr.sbin/ldomctl/config.c
276
md_get_prop_data(md, node, "virtual-dma",
usr.sbin/ldomctl/config.c
289
pri_add_cpu(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
300
if (!md_get_prop_val(md, node, "pid", &cpu->pid))
usr.sbin/ldomctl/config.c
301
md_get_prop_val(md, node, "id", &cpu->pid);
usr.sbin/ldomctl/config.c
310
md_get_prop_val(md, node, "mmu-page-size-list", &mmu_page_size_list);
usr.sbin/ldomctl/config.c
350
pri_add_mblock(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
355
md_get_prop_val(md, node, "base", &mblock->membase);
usr.sbin/ldomctl/config.c
356
md_get_prop_val(md, node, "size", &mblock->memsize);
usr.sbin/ldomctl/config.c
406
pri_delete_devalias(struct md *md)
usr.sbin/ldomctl/config.c
422
pri_init(struct md *md)
usr.sbin/ldomctl/config.c
433
md_get_prop_val(md, node, "max-cpus", &max_cpus);
usr.sbin/ldomctl/config.c
439
md_get_prop_val(md, node, "max_guests", &max_guests);
usr.sbin/ldomctl/config.c
440
md_get_prop_val(md, node, "max_hv_ldcs", &max_hv_ldcs);
usr.sbin/ldomctl/config.c
441
md_get_prop_val(md, node, "max_guest_ldcs", &max_guest_ldcs);
usr.sbin/ldomctl/config.c
442
md_get_prop_val(md, node, "md_elbow_room", &md_elbow_room);
usr.sbin/ldomctl/config.c
443
md_get_prop_val(md, node, "max_mblocks", &max_mblocks);
usr.sbin/ldomctl/config.c
444
md_get_prop_val(md, node, "directio_capability", &directio_capability);
usr.sbin/ldomctl/config.c
446
node = md_find_node(md, "read_only_memory");
usr.sbin/ldomctl/config.c
449
if (!md_get_prop_val(md, node, "base", &base))
usr.sbin/ldomctl/config.c
451
if (!md_get_prop_val(md, node, "size", &size))
usr.sbin/ldomctl/config.c
457
if (!md_get_prop_val(md, node2, "guest_use",
usr.sbin/ldomctl/config.c
460
if (!md_get_prop_val(md, node2, "offset", &offset) ||
usr.sbin/ldomctl/config.c
461
!md_get_prop_val(md, node2, "size", &size))
usr.sbin/ldomctl/config.c
470
node = md_find_node(md, "platform");
usr.sbin/ldomctl/config.c
472
md_set_prop_val(md, node, "domaining-enabled", 0x1);
usr.sbin/ldomctl/config.c
474
md_write(md, "pri");
usr.sbin/ldomctl/config.c
476
protomd = md_copy(md);
usr.sbin/ldomctl/config.c
496
node = md_find_node(md, "cpus");
usr.sbin/ldomctl/config.c
500
pri_add_cpu(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
503
node = md_find_node(md, "memory");
usr.sbin/ldomctl/config.c
507
pri_add_mblock(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
510
pri_init_cores(md);
usr.sbin/ldomctl/config.c
511
pri_init_components(md);
usr.sbin/ldomctl/config.c
512
pri_init_phys_io(md);
usr.sbin/ldomctl/config.c
516
hvmd_fixup_guest(struct md *md, struct md_node *guest, struct md_node *node)
usr.sbin/ldomctl/config.c
528
md_add_prop_arc(md, guest, "fwd", node);
usr.sbin/ldomctl/config.c
536
hvmd_init_frag(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
542
md_get_prop_val(md, node, "base", &base);
usr.sbin/ldomctl/config.c
543
md_get_prop_val(md, node, "size", &size);
usr.sbin/ldomctl/config.c
594
hvmd_init_mblock(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
601
if (!md_get_prop_val(md, node, "resource_id", &resource_id))
usr.sbin/ldomctl/config.c
608
md_get_prop_val(md, node, "membase", &mblock->membase);
usr.sbin/ldomctl/config.c
609
md_get_prop_val(md, node, "memsize", &mblock->memsize);
usr.sbin/ldomctl/config.c
610
md_get_prop_val(md, node, "realbase", &mblock->realbase);
usr.sbin/ldomctl/config.c
621
hvmd_fixup_guest(md, node2, node);
usr.sbin/ldomctl/config.c
627
hvmd_init_console(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
632
if (!md_get_prop_val(md, node, "resource_id", &resource_id))
usr.sbin/ldomctl/config.c
639
md_get_prop_val(md, node, "ino", &console->ino);
usr.sbin/ldomctl/config.c
640
md_get_prop_val(md, node, "uartbase", &console->uartbase);
usr.sbin/ldomctl/config.c
647
hvmd_init_cpu(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
655
if (!md_get_prop_val(md, node, "resource_id", &resource_id))
usr.sbin/ldomctl/config.c
661
if (!md_get_prop_val(md, node, "pid", &pid))
usr.sbin/ldomctl/config.c
665
md_get_prop_val(md, node, "vid", &cpu->vid);
usr.sbin/ldomctl/config.c
666
if (!md_get_prop_val(md, node, "gid", &cpu->gid))
usr.sbin/ldomctl/config.c
668
md_get_prop_val(md, node, "partid", &cpu->partid);
usr.sbin/ldomctl/config.c
679
hvmd_fixup_guest(md, node2, node);
usr.sbin/ldomctl/config.c
685
hvmd_init_device(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
698
if (!md_get_prop_val(md, node, "resource_id", &resource_id))
usr.sbin/ldomctl/config.c
705
md_get_prop_val(md, node, "gid", &device->gid);
usr.sbin/ldomctl/config.c
706
md_get_prop_val(md, node, "cfghandle", &device->cfghandle);
usr.sbin/ldomctl/config.c
707
md_get_prop_val(md, node, "rcid", &device->rcid);
usr.sbin/ldomctl/config.c
721
hvmd_fixup_guest(md, node2, node);
usr.sbin/ldomctl/config.c
749
hvmd_init_endpoint(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
754
if (!md_get_prop_val(md, node, "resource_id", &resource_id))
usr.sbin/ldomctl/config.c
777
md_get_prop_val(md, node, "target_type", &endpoint->target_type);
usr.sbin/ldomctl/config.c
778
md_get_prop_val(md, node, "target_guest", &endpoint->target_guest);
usr.sbin/ldomctl/config.c
779
md_get_prop_val(md, node, "channel", &endpoint->channel);
usr.sbin/ldomctl/config.c
780
md_get_prop_val(md, node, "target_channel", &endpoint->target_channel);
usr.sbin/ldomctl/config.c
781
md_get_prop_val(md, node, "tx-ino", &endpoint->tx_ino);
usr.sbin/ldomctl/config.c
782
md_get_prop_val(md, node, "rx-ino", &endpoint->rx_ino);
usr.sbin/ldomctl/config.c
783
md_get_prop_val(md, node, "private_svc", &endpoint->private_svc);
usr.sbin/ldomctl/config.c
784
md_get_prop_val(md, node, "svc_id", &endpoint->svc_id);
usr.sbin/ldomctl/config.c
791
hvmd_init_guest(struct md *md, struct md_node *node)
usr.sbin/ldomctl/config.c
800
if (!md_get_prop_val(md, node, "resource_id", &resource_id))
usr.sbin/ldomctl/config.c
812
md_get_prop_str(md, node, "name", &guest->name);
usr.sbin/ldomctl/config.c
813
md_get_prop_val(md, node, "gid", &guest->gid);
usr.sbin/ldomctl/config.c
814
md_get_prop_val(md, node, "pid", &guest->pid);
usr.sbin/ldomctl/config.c
815
md_get_prop_val(md, node, "tod-offset", &guest->tod_offset);
usr.sbin/ldomctl/config.c
816
md_get_prop_val(md, node, "perfctraccess", &guest->perfctraccess);
usr.sbin/ldomctl/config.c
817
md_get_prop_val(md, node, "perfctrhtaccess", &guest->perfctrhtaccess);
usr.sbin/ldomctl/config.c
818
md_get_prop_val(md, node, "rngctlaccessible", &guest->rngctlaccessible);
usr.sbin/ldomctl/config.c
819
md_get_prop_val(md, node, "mdpa", &guest->mdpa);
usr.sbin/ldomctl/config.c
834
md_get_prop_val(md, node2, "resource_id",
usr.sbin/ldomctl/config.c
840
md_get_prop_val(md, node2, "resource_id",
usr.sbin/ldomctl/config.c
847
md_get_prop_val(md, node2, "resource_id",
usr.sbin/ldomctl/config.c
854
md_get_prop_val(md, node2, "resource_id",
usr.sbin/ldomctl/config.c
861
md_get_prop_val(md, node2, "resource_id",
usr.sbin/ldomctl/config.c
868
md_get_prop_val(md, node2, "resource_id",
usr.sbin/ldomctl/config.c
883
guest->md = md_read(path);
usr.sbin/ldomctl/config.c
885
if (guest->md == NULL)
usr.sbin/ldomctl/config.c
892
hvmd_init(struct md *md)
usr.sbin/ldomctl/config.c
897
node = md_find_node(md, "root");
usr.sbin/ldomctl/config.c
898
md_get_prop_val(md, node, "content-version", &content_version);
usr.sbin/ldomctl/config.c
899
md_get_prop_val(md, node, "stick-frequency", &stick_frequency);
usr.sbin/ldomctl/config.c
900
md_get_prop_val(md, node, "tod-frequency", &tod_frequency);
usr.sbin/ldomctl/config.c
901
md_get_prop_val(md, node, "tod", &tod);
usr.sbin/ldomctl/config.c
902
md_get_prop_val(md, node, "erpt-pa", &erpt_pa);
usr.sbin/ldomctl/config.c
903
md_get_prop_val(md, node, "erpt-size", &erpt_size);
usr.sbin/ldomctl/config.c
904
md_get_prop_val(md, node, "uartbase", &uartbase);
usr.sbin/ldomctl/config.c
906
node = md_find_node(md, "platform");
usr.sbin/ldomctl/config.c
908
md_get_prop_val(md, node, "stick-frequency", &stick_frequency);
usr.sbin/ldomctl/config.c
910
node = md_find_node(md, "hvmd_mblock");
usr.sbin/ldomctl/config.c
913
md_get_prop_val(md, node, "base", &hvmd_mblock->membase);
usr.sbin/ldomctl/config.c
914
md_get_prop_val(md, node, "size", &hvmd_mblock->memsize);
usr.sbin/ldomctl/config.c
915
md_get_prop_val(md, node, "md_maxsize", &md_maxsize);
usr.sbin/ldomctl/config.c
919
node = md_find_node(md, "frag_space");
usr.sbin/ldomctl/config.c
920
md_get_prop_val(md, node, "fragsize", &fragsize);
usr.sbin/ldomctl/config.c
927
hvmd_init_frag(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
931
node = md_find_node(md, "consoles");
usr.sbin/ldomctl/config.c
935
hvmd_init_console(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
938
node = md_find_node(md, "cpus");
usr.sbin/ldomctl/config.c
942
hvmd_init_cpu(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
945
have_cwqs = (md_find_node(md, "cwqs") != NULL);
usr.sbin/ldomctl/config.c
946
have_rngs = (md_find_node(md, "rngs") != NULL);
usr.sbin/ldomctl/config.c
948
node = md_find_node(md, "devices");
usr.sbin/ldomctl/config.c
952
hvmd_init_device(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
955
node = md_find_node(md, "memory");
usr.sbin/ldomctl/config.c
959
hvmd_init_mblock(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
962
node = md_find_node(md, "ldc_endpoints");
usr.sbin/ldomctl/config.c
966
hvmd_init_endpoint(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
969
node = md_find_node(md, "guests");
usr.sbin/ldomctl/config.c
973
hvmd_init_guest(md, prop->d.arc.node);
usr.sbin/ldomctl/config.c
980
hvmd_finalize_cpu(struct md *md, struct cpu *cpu)
usr.sbin/ldomctl/config.c
998
parent = md_find_node(md, "cpus");
usr.sbin/ldomctl/ldomctl.h
130
struct md *md;
usr.sbin/ldomctl/ldomctl.h
153
extern struct md *hvmd;
usr.sbin/ldomctl/mdesc.c
101
md_free_data(struct md *md, struct md_data *data)
usr.sbin/ldomctl/mdesc.c
108
TAILQ_REMOVE(&md->data_list, data, link);
usr.sbin/ldomctl/mdesc.c
113
md_find_node(struct md *md, const char *name)
usr.sbin/ldomctl/mdesc.c
117
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/mdesc.c
126
md_find_subnode(struct md *md, struct md_node *node, const char *name)
usr.sbin/ldomctl/mdesc.c
141
md_add_node(struct md *md, const char *name)
usr.sbin/ldomctl/mdesc.c
146
node->name = md_add_name(md, name);
usr.sbin/ldomctl/mdesc.c
148
TAILQ_INSERT_TAIL(&md->node_list, node, link);
usr.sbin/ldomctl/mdesc.c
154
md_link_node(struct md *md, struct md_node *node1, struct md_node *node2)
usr.sbin/ldomctl/mdesc.c
156
md_add_prop_arc(md, node1, "fwd", node2);
usr.sbin/ldomctl/mdesc.c
157
md_add_prop_arc(md, node2, "back", node1);
usr.sbin/ldomctl/mdesc.c
161
md_find_prop(struct md *md, struct md_node *node, const char *name)
usr.sbin/ldomctl/mdesc.c
174
md_add_prop(struct md *md, struct md_node *node, const char *name)
usr.sbin/ldomctl/mdesc.c
179
prop->name = md_add_name(md, name);
usr.sbin/ldomctl/mdesc.c
186
md_add_prop_val(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
191
prop = md_add_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
199
md_add_prop_str(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
204
prop = md_add_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
206
prop->d.data = md_add_data(md, str, strlen(str) + 1);
usr.sbin/ldomctl/mdesc.c
212
md_add_prop_data(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
217
prop = md_add_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
219
prop->d.data = md_add_data(md, data, len);
usr.sbin/ldomctl/mdesc.c
225
md_add_prop_arc(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
230
prop = md_add_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
238
md_delete_prop(struct md *md, struct md_node *node, struct md_prop *prop)
usr.sbin/ldomctl/mdesc.c
242
md_free_data(md, prop->d.data);
usr.sbin/ldomctl/mdesc.c
243
md_free_name(md, prop->name);
usr.sbin/ldomctl/mdesc.c
248
md_get_prop_val(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
253
prop = md_find_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
262
md_set_prop_val(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
267
prop = md_find_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
276
md_get_prop_str(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
281
prop = md_find_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
290
md_get_prop_data(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
295
prop = md_find_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
305
md_set_prop_data(struct md *md, struct md_node *node, const char *name,
usr.sbin/ldomctl/mdesc.c
31
md_find_name(struct md *md, const char *str)
usr.sbin/ldomctl/mdesc.c
310
prop = md_find_prop(md, node, name);
usr.sbin/ldomctl/mdesc.c
314
md_free_data(md, prop->d.data);
usr.sbin/ldomctl/mdesc.c
315
prop->d.data = md_add_data(md, data, len);
usr.sbin/ldomctl/mdesc.c
320
md_delete_node(struct md *md, struct md_node *node)
usr.sbin/ldomctl/mdesc.c
325
TAILQ_FOREACH(node2, &md->node_list, link) {
usr.sbin/ldomctl/mdesc.c
329
md_delete_prop(md, node2, prop);
usr.sbin/ldomctl/mdesc.c
333
TAILQ_REMOVE(&md->node_list, node, link);
usr.sbin/ldomctl/mdesc.c
334
md_free_name(md, node->name);
usr.sbin/ldomctl/mdesc.c
339
md_find_delete_node(struct md *md, const char *name)
usr.sbin/ldomctl/mdesc.c
343
node = md_find_node(md, name);
usr.sbin/ldomctl/mdesc.c
345
md_delete_node(md, node);
usr.sbin/ldomctl/mdesc.c
348
struct md *
usr.sbin/ldomctl/mdesc.c
35
TAILQ_FOREACH(name, &md->name_list, link)
usr.sbin/ldomctl/mdesc.c
351
struct md *md;
usr.sbin/ldomctl/mdesc.c
353
md = xmalloc(sizeof(*md));
usr.sbin/ldomctl/mdesc.c
354
TAILQ_INIT(&md->node_list);
usr.sbin/ldomctl/mdesc.c
355
TAILQ_INIT(&md->name_list);
usr.sbin/ldomctl/mdesc.c
356
TAILQ_INIT(&md->data_list);
usr.sbin/ldomctl/mdesc.c
358
return md;
usr.sbin/ldomctl/mdesc.c
362
md_find_index(struct md *md, uint64_t index)
usr.sbin/ldomctl/mdesc.c
366
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/mdesc.c
375
md_fixup_arcs(struct md *md)
usr.sbin/ldomctl/mdesc.c
380
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/mdesc.c
384
md_find_index(md, prop->d.arc.index);
usr.sbin/ldomctl/mdesc.c
390
md_walk_graph(struct md *md, struct md_node *root)
usr.sbin/ldomctl/mdesc.c
398
md_walk_graph(md, prop->d.arc.node);
usr.sbin/ldomctl/mdesc.c
403
md_collect_garbage(struct md *md)
usr.sbin/ldomctl/mdesc.c
407
TAILQ_FOREACH(node, &md->node_list, link)
usr.sbin/ldomctl/mdesc.c
410
md_walk_graph(md, md_find_node(md, "root"));
usr.sbin/ldomctl/mdesc.c
412
TAILQ_FOREACH_SAFE(node, &md->node_list, link, node2) {
usr.sbin/ldomctl/mdesc.c
414
md_delete_node(md, node);
usr.sbin/ldomctl/mdesc.c
418
struct md *
usr.sbin/ldomctl/mdesc.c
42
md_add_name(struct md *md, const char *str)
usr.sbin/ldomctl/mdesc.c
427
struct md *md;
usr.sbin/ldomctl/mdesc.c
449
md = md_alloc();
usr.sbin/ldomctl/mdesc.c
46
name = md_find_name(md, str);
usr.sbin/ldomctl/mdesc.c
460
node = md_add_node(md, str);
usr.sbin/ldomctl/mdesc.c
467
md_add_prop_val(md, node, str, betoh64(mde->d.val));
usr.sbin/ldomctl/mdesc.c
474
md_add_prop_str(md, node, str, data);
usr.sbin/ldomctl/mdesc.c
481
md_add_prop_data(md, node, str, data,
usr.sbin/ldomctl/mdesc.c
488
prop = md_add_prop(md, node, str);
usr.sbin/ldomctl/mdesc.c
499
md_fixup_arcs(md);
usr.sbin/ldomctl/mdesc.c
50
TAILQ_INSERT_TAIL(&md->name_list, name, link);
usr.sbin/ldomctl/mdesc.c
501
return md;
usr.sbin/ldomctl/mdesc.c
505
md_exhume(struct md *md, void **buf)
usr.sbin/ldomctl/mdesc.c
523
TAILQ_FOREACH(name, &md->name_list, link) {
usr.sbin/ldomctl/mdesc.c
530
TAILQ_FOREACH(data, &md->data_list, link) {
usr.sbin/ldomctl/mdesc.c
538
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/mdesc.c
559
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomctl/mdesc.c
58
md_free_name(struct md *md, struct md_name *name)
usr.sbin/ldomctl/mdesc.c
599
TAILQ_FOREACH(name, &md->name_list, link) {
usr.sbin/ldomctl/mdesc.c
605
TAILQ_FOREACH(data, &md->data_list, link) {
usr.sbin/ldomctl/mdesc.c
614
struct md *
usr.sbin/ldomctl/mdesc.c
615
md_copy(struct md *md)
usr.sbin/ldomctl/mdesc.c
620
size = md_exhume(md, &buf);
usr.sbin/ldomctl/mdesc.c
621
md = md_ingest(buf, size);
usr.sbin/ldomctl/mdesc.c
624
return md;
usr.sbin/ldomctl/mdesc.c
627
struct md *
usr.sbin/ldomctl/mdesc.c
65
TAILQ_REMOVE(&md->name_list, name, link);
usr.sbin/ldomctl/mdesc.c
665
md_write(struct md *md, const char *path)
usr.sbin/ldomctl/mdesc.c
671
size = md_exhume(md, &buf);
usr.sbin/ldomctl/mdesc.c
70
md_find_data(struct md *md, const uint8_t *b, size_t len)
usr.sbin/ldomctl/mdesc.c
74
TAILQ_FOREACH(data, &md->data_list, link)
usr.sbin/ldomctl/mdesc.c
83
md_add_data(struct md *md, const uint8_t *b, size_t len)
usr.sbin/ldomctl/mdesc.c
87
data = md_find_data(md, b, len);
usr.sbin/ldomctl/mdesc.c
93
TAILQ_INSERT_TAIL(&md->data_list, data, link);
usr.sbin/ldomctl/mdesc.h
103
struct md_prop *md_add_prop(struct md *, struct md_node *, const char *);
usr.sbin/ldomctl/mdesc.h
104
struct md_prop *md_add_prop_val(struct md *, struct md_node *,
usr.sbin/ldomctl/mdesc.h
106
struct md_prop *md_add_prop_str(struct md *, struct md_node *,
usr.sbin/ldomctl/mdesc.h
108
struct md_prop *md_add_prop_data(struct md *, struct md_node *,
usr.sbin/ldomctl/mdesc.h
110
struct md_prop *md_add_prop_arc(struct md *, struct md_node *,
usr.sbin/ldomctl/mdesc.h
112
void md_delete_prop(struct md *, struct md_node *, struct md_prop *);
usr.sbin/ldomctl/mdesc.h
114
struct md_node *md_find_node(struct md *, const char *);
usr.sbin/ldomctl/mdesc.h
115
struct md_node *md_find_subnode(struct md *, struct md_node *, const char *);
usr.sbin/ldomctl/mdesc.h
116
struct md_node *md_add_node(struct md *, const char *);
usr.sbin/ldomctl/mdesc.h
117
void md_link_node(struct md *, struct md_node *, struct md_node *);
usr.sbin/ldomctl/mdesc.h
118
struct md_prop *md_find_prop(struct md *, struct md_node *, const char *);
usr.sbin/ldomctl/mdesc.h
120
bool md_get_prop_val(struct md *, struct md_node *, const char *, uint64_t *);
usr.sbin/ldomctl/mdesc.h
121
bool md_set_prop_val(struct md *, struct md_node *, const char *, uint64_t);
usr.sbin/ldomctl/mdesc.h
122
bool md_get_prop_str(struct md *, struct md_node *, const char *,
usr.sbin/ldomctl/mdesc.h
124
bool md_set_prop_data(struct md *, struct md_node *, const char *,
usr.sbin/ldomctl/mdesc.h
126
bool md_get_prop_data(struct md *, struct md_node *, const char *,
usr.sbin/ldomctl/mdesc.h
129
void md_delete_node(struct md *, struct md_node *);
usr.sbin/ldomctl/mdesc.h
130
void md_find_delete_node(struct md *, const char *);
usr.sbin/ldomctl/mdesc.h
132
void md_collect_garbage(struct md *);
usr.sbin/ldomctl/mdesc.h
134
struct md *md_alloc(void);
usr.sbin/ldomctl/mdesc.h
135
struct md *md_ingest(void *, size_t);
usr.sbin/ldomctl/mdesc.h
136
size_t md_exhume(struct md *md, void **);
usr.sbin/ldomctl/mdesc.h
137
struct md *md_copy(struct md *);
usr.sbin/ldomctl/mdesc.h
139
struct md *md_read(const char *);
usr.sbin/ldomctl/mdesc.h
140
void md_write(struct md *, const char *);
usr.sbin/ldomctl/mdstore.c
121
char md[];
usr.sbin/ldomctl/mdstore.c
367
if (fread(&mr->md, size, 1, fp) != 1)
usr.sbin/ldomd/ldomd.c
261
guest->md = md_ingest(buf, len);
usr.sbin/ldomd/ldomd.c
263
map_domain_services(guest->md);
usr.sbin/ldomd/ldomd.c
273
map_domain_services(struct md *md)
usr.sbin/ldomd/ldomd.c
281
TAILQ_FOREACH(node, &md->node_list, link) {
usr.sbin/ldomd/ldomd.c
285
if (!md_get_prop_str(md, node, "vldc-svc-name", &name))
usr.sbin/ldomd/ldomd.c
396
size = md_exhume(guest->md, &buf);
usr.sbin/ldomd/ldomd.c
43
void map_domain_services(struct md *);
usr.sbin/ldomd/ldomd.c
62
struct md *hvmd;
usr.sbin/ldomd/ldomd.h
9
struct md *md;
usr.sbin/ldomd/var-config.c
101
node = md_find_node(md, "variables");
usr.sbin/ldomd/var-config.c
105
prop = md_find_prop(md, node, name);
usr.sbin/ldomd/var-config.c
109
md_delete_prop(md, node, prop);
usr.sbin/ldomd/var-config.c
73
struct md *md = guest->md;
usr.sbin/ldomd/var-config.c
77
node = md_find_node(md, "variables");
usr.sbin/ldomd/var-config.c
79
struct md_node *root = md_find_node(md, "root");
usr.sbin/ldomd/var-config.c
82
node = md_add_node(md, "variables");
usr.sbin/ldomd/var-config.c
83
md_link_node(md, root, node);
usr.sbin/ldomd/var-config.c
86
prop = md_add_prop_str(md, node, name, value);
usr.sbin/ldomd/var-config.c
97
struct md *md = guest->md;
usr.sbin/npppd/npppd/chap_ms.c
152
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/npppd/npppd/chap_ms.c
166
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/npppd/npppd/chap_ms.c
169
memcpy(challenge, md, MSCHAP_CHALLENGE_SZ);
usr.sbin/npppd/npppd/chap_ms.c
196
u_int8_t md[SHA_DIGEST_LENGTH], *ptr;
usr.sbin/npppd/npppd/chap_ms.c
222
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/npppd/npppd/chap_ms.c
228
EVP_DigestUpdate(ctx, md, sizeof(md));
usr.sbin/npppd/npppd/chap_ms.c
231
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/npppd/npppd/chap_ms.c
245
*ptr++ = hex[md[i] >> 4];
usr.sbin/npppd/npppd/chap_ms.c
246
*ptr++ = hex[md[i] & 0x0f];
usr.sbin/npppd/npppd/chap_ms.c
254
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/npppd/npppd/chap_ms.c
268
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/npppd/npppd/chap_ms.c
271
memcpy(masterkey, md, 16);
usr.sbin/npppd/npppd/chap_ms.c
279
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/npppd/npppd/chap_ms.c
316
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/npppd/npppd/chap_ms.c
319
memcpy(sessionkey, md, sessionkeylen);
usr.sbin/nsd/tsig-openssl.c
219
const EVP_MD *md = (const EVP_MD *) algorithm->data;
usr.sbin/nsd/tsig-openssl.c
220
HMAC_Init_ex(ctx, key->data, key->size, md, NULL);
usr.sbin/nsd/xfrd-tcp.c
47
const EVP_MD* md = EVP_sha256();
usr.sbin/nsd/xfrd-tcp.c
84
if (X509_pubkey_digest(cert, md, key_fingerprint, &key_fingerprint_len) == 1 && key_fingerprint_len >= 8) {
usr.sbin/ospfd/auth.c
112
strncpy(digest, md->key, MD5_DIGEST_LENGTH);
usr.sbin/ospfd/auth.c
145
struct auth_md *md;
usr.sbin/ospfd/auth.c
185
if ((md = md_list_find(&iface->auth_md_list,
usr.sbin/ospfd/auth.c
193
strncpy(digest, md->key, MD5_DIGEST_LENGTH);
usr.sbin/ospfd/auth.c
215
struct auth_md *md;
usr.sbin/ospfd/auth.c
217
if ((md = md_list_find(head, keyid)) != NULL) {
usr.sbin/ospfd/auth.c
219
strncpy(md->key, key, sizeof(md->key));
usr.sbin/ospfd/auth.c
223
if ((md = calloc(1, sizeof(struct auth_md))) == NULL)
usr.sbin/ospfd/auth.c
226
md->keyid = keyid;
usr.sbin/ospfd/auth.c
227
strncpy(md->key, key, sizeof(md->key));
usr.sbin/ospfd/auth.c
228
TAILQ_INSERT_TAIL(head, md, entry);
usr.sbin/ospfd/auth.c
234
struct auth_md *m, *md;
usr.sbin/ospfd/auth.c
239
if ((md = calloc(1, sizeof(struct auth_md))) == NULL)
usr.sbin/ospfd/auth.c
242
md->keyid = m->keyid;
usr.sbin/ospfd/auth.c
243
strncpy(md->key, m->key, sizeof(md->key));
usr.sbin/ospfd/auth.c
244
TAILQ_INSERT_TAIL(to, md, entry);
usr.sbin/ospfd/auth.c
40
struct auth_md *md;
usr.sbin/ospfd/auth.c
76
if ((md = md_list_find(&iface->auth_md_list,
usr.sbin/ospfd/ospfe.c
274
struct auth_md md;
usr.sbin/ospfd/ospfe.c
439
memcpy(&md, imsg.data, sizeof(struct auth_md));
usr.sbin/ospfd/ospfe.c
440
md_list_add(&niface->auth_md_list, md.keyid, md.key);
usr.sbin/ospfd/printconf.c
125
struct auth_md *md;
usr.sbin/ospfd/printconf.c
164
TAILQ_FOREACH(md, &iface->auth_md_list, entry)
usr.sbin/ospfd/printconf.c
165
printf("\t\tauth-md %d XXXXXX\n", md->keyid);
usr.sbin/radiusctl/chap_ms.c
152
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/radiusctl/chap_ms.c
166
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusctl/chap_ms.c
169
memcpy(challenge, md, MSCHAP_CHALLENGE_SZ);
usr.sbin/radiusctl/chap_ms.c
196
u_int8_t md[SHA_DIGEST_LENGTH], *ptr;
usr.sbin/radiusctl/chap_ms.c
222
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusctl/chap_ms.c
228
EVP_DigestUpdate(ctx, md, sizeof(md));
usr.sbin/radiusctl/chap_ms.c
231
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusctl/chap_ms.c
245
*ptr++ = hex[md[i] >> 4];
usr.sbin/radiusctl/chap_ms.c
246
*ptr++ = hex[md[i] & 0x0f];
usr.sbin/radiusctl/chap_ms.c
254
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/radiusctl/chap_ms.c
268
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusctl/chap_ms.c
271
memcpy(masterkey, md, 16);
usr.sbin/radiusctl/chap_ms.c
279
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/radiusctl/chap_ms.c
316
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusctl/chap_ms.c
319
memcpy(sessionkey, md, sessionkeylen);
usr.sbin/radiusd/chap_ms.c
152
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/radiusd/chap_ms.c
166
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusd/chap_ms.c
169
memcpy(challenge, md, MSCHAP_CHALLENGE_SZ);
usr.sbin/radiusd/chap_ms.c
196
u_int8_t md[SHA_DIGEST_LENGTH], *ptr;
usr.sbin/radiusd/chap_ms.c
222
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusd/chap_ms.c
228
EVP_DigestUpdate(ctx, md, sizeof(md));
usr.sbin/radiusd/chap_ms.c
231
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusd/chap_ms.c
245
*ptr++ = hex[md[i] >> 4];
usr.sbin/radiusd/chap_ms.c
246
*ptr++ = hex[md[i] & 0x0f];
usr.sbin/radiusd/chap_ms.c
254
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/radiusd/chap_ms.c
268
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusd/chap_ms.c
271
memcpy(masterkey, md, 16);
usr.sbin/radiusd/chap_ms.c
279
u_int8_t md[SHA_DIGEST_LENGTH];
usr.sbin/radiusd/chap_ms.c
316
EVP_DigestFinal_ex(ctx, md, &mdlen);
usr.sbin/radiusd/chap_ms.c
319
memcpy(sessionkey, md, sessionkeylen);
usr.sbin/relayd/relay_http.c
821
char *val, *md = NULL;
usr.sbin/relayd/relay_http.c
836
if ((md = digeststr(kv->kv_digest,
usr.sbin/relayd/relay_http.c
842
str = md;
usr.sbin/relayd/relay_http.c
859
free(md);
usr.sbin/ripd/auth.c
118
if ((md = md_list_find(&iface->auth_md_list,
usr.sbin/ripd/auth.c
164
memcpy(digest, md->key, MD5_DIGEST_LENGTH);
usr.sbin/ripd/auth.c
200
struct auth_md *md;
usr.sbin/ripd/auth.c
212
if ((md = md_list_find(&iface->auth_md_list,
usr.sbin/ripd/auth.c
220
a.auth_seq = htonl(auth_get_seq_num(md));
usr.sbin/ripd/auth.c
239
struct auth_md *md;
usr.sbin/ripd/auth.c
250
if ((md = md_list_find(&iface->auth_md_list,
usr.sbin/ripd/auth.c
257
memcpy(digest, md->key, MD5_DIGEST_LENGTH);
usr.sbin/ripd/auth.c
274
struct auth_md *md;
usr.sbin/ripd/auth.c
279
if ((md = md_list_find(head, keyid)) != NULL) {
usr.sbin/ripd/auth.c
281
bzero(md->key, sizeof(md->key));
usr.sbin/ripd/auth.c
282
memcpy(md->key, key, strlen(key));
usr.sbin/ripd/auth.c
286
if ((md = calloc(1, sizeof(struct auth_md))) == NULL)
usr.sbin/ripd/auth.c
289
md->keyid = keyid;
usr.sbin/ripd/auth.c
290
memcpy(md->key, key, strlen(key));
usr.sbin/ripd/auth.c
291
md->seq_modulator = auth_calc_modulator(md);
usr.sbin/ripd/auth.c
292
TAILQ_INSERT_TAIL(head, md, entry);
usr.sbin/ripd/auth.c
300
struct auth_md *m, *md;
usr.sbin/ripd/auth.c
305
if ((md = calloc(1, sizeof(struct auth_md))) == NULL)
usr.sbin/ripd/auth.c
308
md->keyid = m->keyid;
usr.sbin/ripd/auth.c
309
memcpy(md->key, m->key, sizeof(md->key));
usr.sbin/ripd/auth.c
310
md->seq_modulator = m->seq_modulator;
usr.sbin/ripd/auth.c
311
TAILQ_INSERT_TAIL(to, md, entry);
usr.sbin/ripd/auth.c
33
u_int32_t auth_calc_modulator(struct auth_md *md);
usr.sbin/ripd/auth.c
39
auth_calc_modulator(struct auth_md *md)
usr.sbin/ripd/auth.c
46
MD5Update(&md5ctx, (void *)&md->keyid, sizeof(md->keyid));
usr.sbin/ripd/auth.c
47
MD5Update(&md5ctx, (void *)&md->key, MD5_DIGEST_LENGTH);
usr.sbin/ripd/auth.c
56
auth_get_seq_num(struct auth_md *md)
usr.sbin/ripd/auth.c
58
return (time(NULL) + md->seq_modulator);
usr.sbin/ripd/auth.c
82
struct auth_md *md;
usr.sbin/rpki-client/cert.c
428
unsigned char md[EVP_MAX_MD_SIZE];
usr.sbin/rpki-client/cert.c
446
if (!X509_pubkey_digest(cert->x509, EVP_sha1(), md, &md_len)) {
usr.sbin/rpki-client/cert.c
459
if (memcmp(ASN1_STRING_get0_data(os), md, md_len) != 0) {
usr.sbin/rpki-client/cert.c
464
cert->ski = hex_encode(md, md_len);
usr.sbin/rpki-client/x509.c
150
unsigned char md[EVP_MAX_MD_SIZE];
usr.sbin/rpki-client/x509.c
196
if (!EVP_Digest(der, der_len, md, &md_len, EVP_sha1(), NULL)) {
usr.sbin/rpki-client/x509.c
201
return hex_encode(md, md_len);
usr.sbin/smtpd/srs.c
108
md, sizeof md);
usr.sbin/smtpd/srs.c
112
md[0], md[1], md[2], md[3], tmp);
usr.sbin/smtpd/srs.c
124
char md[SHA_DIGEST_LENGTH*4+1];
usr.sbin/smtpd/srs.c
140
md, sizeof md);
usr.sbin/smtpd/srs.c
144
md[0], md[1], md[2], md[3], tmp);
usr.sbin/smtpd/srs.c
156
char md[SHA_DIGEST_LENGTH*4+1];
usr.sbin/smtpd/srs.c
179
md, sizeof md);
usr.sbin/smtpd/srs.c
183
md[0], md[1], md[2], md[3], tmp + 5);
usr.sbin/smtpd/srs.c
204
char md[SHA_DIGEST_LENGTH*4+1];
usr.sbin/smtpd/srs.c
217
md, sizeof md);
usr.sbin/smtpd/srs.c
220
if (strncmp(md, rcpt, 4) != 0) {
usr.sbin/smtpd/srs.c
224
SHA_DIGEST_LENGTH, md, sizeof md);
usr.sbin/smtpd/srs.c
225
if (strncmp(md, rcpt, 4) != 0)
usr.sbin/smtpd/srs.c
272
char md[SHA_DIGEST_LENGTH*4+1];
usr.sbin/smtpd/srs.c
285
md, sizeof md);
usr.sbin/smtpd/srs.c
288
if (strncmp(md, rcpt, 4) != 0) {
usr.sbin/smtpd/srs.c
292
SHA_DIGEST_LENGTH, md, sizeof md);
usr.sbin/smtpd/srs.c
293
if (strncmp(md, rcpt, 4) != 0)
usr.sbin/smtpd/srs.c
72
static unsigned char md[SHA_DIGEST_LENGTH];
usr.sbin/smtpd/srs.c
77
SHA1_Final(md, &c);
usr.sbin/smtpd/srs.c
78
return md;
usr.sbin/smtpd/srs.c
86
char md[SHA_DIGEST_LENGTH*4+1];
usr.sbin/snmpd/usm.c
516
const EVP_MD *md;
usr.sbin/snmpd/usm.c
536
if ((md = usm_get_md(msg->sm_user->uu_auth)) == NULL)
usr.sbin/snmpd/usm.c
539
HMAC(md, msg->sm_user->uu_authkey, (int)msg->sm_user->uu_authkeylen,
usr.sbin/snmpd/usm.c
556
const EVP_MD *md;
usr.sbin/snmpd/usm.c
571
if ((md = usm_get_md(msg->sm_user->uu_auth)) == NULL)
usr.sbin/snmpd/usm.c
575
HMAC(md, msg->sm_user->uu_authkey, (int)msg->sm_user->uu_authkeylen,
usr.sbin/snmpd/usm.c
59
const EVP_MD *md;
usr.sbin/snmpd/usm.c
64
if ((md = usm_get_md(up->uu_auth)) == NULL)
usr.sbin/snmpd/usm.c
685
usm_passwd2key(const EVP_MD *md, char *passwd, int *maxlen)
usr.sbin/snmpd/usm.c
69
key = usm_passwd2key(md, up->uu_authkey, &len);
usr.sbin/snmpd/usm.c
697
if (!EVP_DigestInit_ex(ctx, md, NULL)) {
usr.sbin/snmpd/usm.c
728
if (!EVP_DigestInit_ex(ctx, md, NULL) ||
usr.sbin/snmpd/usm.c
79
key = usm_passwd2key(md, up->uu_privkey, &len);
usr.sbin/unbound/services/modstack.c
132
char md[256];
usr.sbin/unbound/services/modstack.c
133
char * s = md;
usr.sbin/unbound/services/modstack.c
134
snprintf(md, sizeof(md), "%s", module_conf);
usr.sbin/unbound/sldns/keyraw.c
704
const EVP_MD* md)
usr.sbin/unbound/sldns/keyraw.c
710
if(!EVP_DigestInit_ex(ctx, md, NULL) ||
usr.sbin/unbound/sldns/keyraw.h
142
unsigned char* dest, const EVP_MD* md);
usr.sbin/unbound/util/alloc.c
678
uint8_t* md = NULL;
usr.sbin/unbound/util/alloc.c
680
sldns_status s = sldns_pkt2wire(&md, p, &ms);
usr.sbin/unbound/util/alloc.c
681
if(md) {
usr.sbin/unbound/util/alloc.c
685
if(!*dest) { free(md); return LDNS_STATUS_MEM_ERR; }
usr.sbin/unbound/util/alloc.c
686
memcpy(*dest, md, ms);
usr.sbin/unbound/util/alloc.c
687
free(md);
usr.sbin/unbound/util/storage/lruhash.c
524
lruhash_setmarkdel(struct lruhash* table, lruhash_markdelfunc_type md)
usr.sbin/unbound/util/storage/lruhash.c
527
table->markdelfunc = md;
usr.sbin/unbound/util/storage/lruhash.h
304
void lruhash_setmarkdel(struct lruhash* table, lruhash_markdelfunc_type md);
usr.sbin/unbound/util/storage/slabhash.c
225
void slabhash_setmarkdel(struct slabhash* sl, lruhash_markdelfunc_type md)
usr.sbin/unbound/util/storage/slabhash.c
229
lruhash_setmarkdel(sl->array[i], md);
usr.sbin/unbound/util/storage/slabhash.h
196
void slabhash_setmarkdel(struct slabhash* table, lruhash_markdelfunc_type md);
usr.sbin/unbound/validator/val_secalgo.c
168
static struct secalgo_hash* secalgo_hash_create_md(const EVP_MD* md)
usr.sbin/unbound/validator/val_secalgo.c
171
if(!md)
usr.sbin/unbound/validator/val_secalgo.c
181
if(!EVP_DigestInit_ex(h->ctx, md, NULL)) {
usr.sbin/unbound/validator/val_secalgo.c
270
const EVP_MD* md = EVP_get_digestbyname("md_gost94");
usr.sbin/unbound/validator/val_secalgo.c
271
if(!md)
usr.sbin/unbound/validator/val_secalgo.c
273
return sldns_digest_evp(data, (unsigned int)len, dest, md);