Home
last modified time | relevance | path

Searched refs:md (Results 176 – 200 of 2499) sorted by relevance

12345678910>>...100

/netbsd/crypto/external/bsd/openssl.old/dist/crypto/rsa/
H A Drsa_ameth.c471 const EVP_MD *md; in rsa_pkey_ctrl() local
519 *(int *)arg2 = EVP_MD_type(md); in rsa_pkey_ctrl()
541 if (md == NULL || EVP_MD_type(md) == NID_sha1) in rsa_md_to_algor()
546 X509_ALGOR_set_md(*palg, md); in rsa_md_to_algor()
580 const EVP_MD *md; in rsa_algor_to_md() local
585 if (md == NULL) in rsa_algor_to_md()
587 return md; in rsa_algor_to_md()
876 mdnid = EVP_MD_type(md); in rsa_sig_info_set()
950 md = rsa_algor_to_md(oaep->hashFunc); in rsa_cms_decrypt()
951 if (md == NULL) in rsa_cms_decrypt()
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Devp.h77 EVP_MD *EVP_MD_meth_dup(const EVP_MD *md);
78 void EVP_MD_meth_free(EVP_MD *md);
97 int EVP_MD_meth_get_result_size(const EVP_MD *md);
98 int EVP_MD_meth_get_app_datasize(const EVP_MD *md);
443 int EVP_MD_type(const EVP_MD *md);
446 int EVP_MD_pkey_type(const EVP_MD *md);
447 int EVP_MD_size(const EVP_MD *md);
448 int EVP_MD_block_size(const EVP_MD *md);
449 unsigned long EVP_MD_flags(const EVP_MD *md);
511 void BIO_set_md(BIO *, const EVP_MD *md);
[all …]
/netbsd/sys/nfs/
H A Dnfs_srvsubs.c122 struct mbuf *md; in nfs_namei() local
144 md = *mdp; in nfs_namei()
145 rem = mtod(md, char *) + md->m_len - fromcp; in nfs_namei()
148 md = md->m_next; in nfs_namei()
149 if (md == NULL) { in nfs_namei()
153 fromcp = mtod(md, void *); in nfs_namei()
154 rem = md->m_len; in nfs_namei()
164 *mdp = md; in nfs_namei()
/netbsd/crypto/external/bsd/openssl.old/dist/apps/
H A Dts.c45 const EVP_MD *md, unsigned char **md_value);
161 const EVP_MD *md = NULL; in ts_main() local
263 if (!opt_md(opt_unknown(), &md)) in ts_main()
426 if (md == NULL && (md = EVP_get_digestbyname("sha1")) == NULL) in create_query()
436 if ((algo->algorithm = OBJ_nid2obj(EVP_MD_type(md))) == NULL) in create_query()
443 if ((len = create_digest(data_bio, digest, md, &data)) == 0) in create_query()
485 md_value_len = EVP_MD_size(md); in create_digest()
497 if (!EVP_DigestInit(md_ctx, md)) in create_digest()
505 md_value_len = EVP_MD_size(md); in create_digest()
693 if (md) { in create_response()
[all …]
/netbsd/sys/arch/algor/dev/
H A Dmainbus.c172 struct mainbusdev *md; in mainbus_attach() local
218 for (md = mainbusdevs; md->md_name != NULL; md++) { in mainbus_attach()
219 ma.ma_name = md->md_name; in mainbus_attach()
221 ma.ma_addr = md->md_addr; in mainbus_attach()
222 ma.ma_irq = md->md_irq; in mainbus_attach()
/netbsd/crypto/external/bsd/openssl.old/dist/test/
H A Dmdc2test.c40 unsigned char md[MDC2_DIGEST_LENGTH]; in test_mdc2() local
53 || !TEST_true(EVP_DigestFinal_ex(c, &(md[0]), NULL)) in test_mdc2()
54 || !TEST_mem_eq(md, MDC2_DIGEST_LENGTH, pad1, MDC2_DIGEST_LENGTH) in test_mdc2()
61 || !TEST_true(EVP_DigestFinal_ex(c, &(md[0]), NULL)) in test_mdc2()
62 || !TEST_mem_eq(md, MDC2_DIGEST_LENGTH, pad2, MDC2_DIGEST_LENGTH)) in test_mdc2()
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/whrlpool/
H A Dwp_dgst.c208 int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c) in WHIRLPOOL_Final() argument
239 if (md) { in WHIRLPOOL_Final()
240 memcpy(md, c->H.c, WHIRLPOOL_DIGEST_LENGTH); in WHIRLPOOL_Final()
247 unsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md) in WHIRLPOOL() argument
252 if (md == NULL) in WHIRLPOOL()
253 md = m; in WHIRLPOOL()
256 WHIRLPOOL_Final(md, &ctx); in WHIRLPOOL()
257 return md; in WHIRLPOOL()
/netbsd/crypto/external/bsd/openssl/dist/crypto/whrlpool/
H A Dwp_dgst.c214 int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c) in WHIRLPOOL_Final() argument
245 if (md) { in WHIRLPOOL_Final()
246 memcpy(md, c->H.c, WHIRLPOOL_DIGEST_LENGTH); in WHIRLPOOL_Final()
253 unsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md) in WHIRLPOOL() argument
258 if (md == NULL) in WHIRLPOOL()
259 md = m; in WHIRLPOOL()
262 WHIRLPOOL_Final(md, &ctx); in WHIRLPOOL()
263 return md; in WHIRLPOOL()
/netbsd/usr.sbin/mtree/
H A Dspec.c591 md=&val[2]; in set()
593 md=val; in set()
611 md=&val[2]; in set()
613 md=val; in set()
619 md=&val[2]; in set()
621 md=val; in set()
669 md=&val[2]; in set()
671 md=val; in set()
677 md=&val[2]; in set()
679 md=val; in set()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/kdfs/
H A Dsskdf.c336 const EVP_MD *md = NULL; in sskdf_size() local
341 md = ossl_prov_digest_md(&ctx->digest); in sskdf_size()
342 if (md == NULL) { in sskdf_size()
346 len = EVP_MD_get_size(md); in sskdf_size()
354 const EVP_MD *md; in sskdf_derive() local
362 md = ossl_prov_digest_md(&ctx->digest); in sskdf_derive()
374 if (md == NULL) { in sskdf_derive()
410 if (md == NULL) { in sskdf_derive()
423 const EVP_MD *md; in x963kdf_derive() local
439 md = ossl_prov_digest_md(&ctx->digest); in x963kdf_derive()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/include/openssl/
H A Devp.h531 int EVP_MD_get_type(const EVP_MD *md);
534 const char *EVP_MD_get0_name(const EVP_MD *md);
538 int EVP_MD_names_do_all(const EVP_MD *md,
542 int EVP_MD_get_pkey_type(const EVP_MD *md);
544 int EVP_MD_get_size(const EVP_MD *md);
546 int EVP_MD_get_block_size(const EVP_MD *md);
548 unsigned long EVP_MD_get_flags(const EVP_MD *md);
664 void BIO_set_md(BIO *, const EVP_MD *md);
666 # define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,0,(void *)(md)) argument
731 int EVP_MD_up_ref(EVP_MD *md);
[all …]
/netbsd/crypto/external/bsd/openssl/dist/crypto/cms/
H A Dcms_sd.c355 if (md == NULL) { in CMS_add1_signer()
359 md = EVP_get_digestbynid(def_nid); in CMS_add1_signer()
360 if (md == NULL) { in CMS_add1_signer()
366 if (!md) { in CMS_add1_signer()
371 if (md == NULL) { in CMS_add1_signer()
386 if (EVP_MD_is_a(md, name)) in CMS_add1_signer()
394 X509_ALGOR_set_md(alg, md); in CMS_add1_signer()
428 if (md == NULL || EVP_MD_is_a(md, SN_sha1)) { in CMS_add1_signer()
844 const EVP_MD *md; in CMS_SignerInfo_verify() local
864 md = fetched_md; in CMS_SignerInfo_verify()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dv3_skid.c64 EVP_MD *md; in ossl_x509_pubkey_hash() local
72 if ((md = EVP_MD_fetch(libctx, SN_sha1, propq)) == NULL) in ossl_x509_pubkey_hash()
75 EVP_MD_free(md); in ossl_x509_pubkey_hash()
80 if (EVP_Digest(pk, pklen, pkey_dig, &diglen, md, NULL) in ossl_x509_pubkey_hash()
82 EVP_MD_free(md); in ossl_x509_pubkey_hash()
86 EVP_MD_free(md); in ossl_x509_pubkey_hash()
/netbsd/external/bsd/top/dist/machine/
H A Dm_svr5.c1120 static int md; /* metric descriptor handle */ variable
1183 if ( mas_close( md ) < 0 ) in kmet_done()
1200 r=*(uint32 *)mas_get_met( md, (metid_t)type, 0 ); in kmet_get_cpu()
1295 if (!(name = mas_get_met_name( md, id ))) in kmet_verify()
1302 if (!(status_p = mas_get_met_status( md, id ))) in kmet_verify()
1316 if (!(units_p = mas_get_met_units( md, id ))) in kmet_verify()
1331 if (!(mettype_p = mas_get_met_type( md, id ))) in kmet_verify()
1346 if (!(objsz_p = mas_get_met_objsz( md, id ))) in kmet_verify()
1360 if (!(nobj_p = mas_get_met_nobj( md, id ))) in kmet_verify()
1375 if (!(nlocs_p = mas_get_met_nlocs( md, id ))) in kmet_verify()
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DMD5.pod12 unsigned char *MD2(const unsigned char *d, unsigned long n, unsigned char *md);
16 int MD2_Final(unsigned char *md, MD2_CTX *c);
21 unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md);
25 int MD4_Final(unsigned char *md, MD4_CTX *c);
30 unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md);
34 int MD5_Final(unsigned char *md, MD5_CTX *c);
41 of the B<n> bytes at B<d> and place it in B<md> (which must have space
43 bytes of output). If B<md> is NULL, the digest is placed in a static
54 MD2_Final() places the message digest in B<md>, which must have space
/netbsd/external/gpl3/gcc/dist/gcc/config/h8300/
H A Dh8300.md246 (include "movepush.md")
247 (include "mova.md")
249 (include "addsub.md")
250 (include "multiply.md")
251 (include "divmod.md")
252 (include "logical.md")
253 (include "other.md")
254 (include "jumpcall.md")
255 (include "proepi.md")
258 (include "bitfield.md")
[all …]
/netbsd/tests/dev/md/
H A Dh_mdserv.c67 struct md_conf md; in main() local
73 md.md_addr = calloc(1, MDSIZE); in main()
74 md.md_size = MDSIZE; in main()
75 md.md_type = MD_UMEM_SERVER; in main()
103 if (rump_sys_ioctl(fd, MD_SETCONF, &md) == -1) { in main()
/netbsd/crypto/external/bsd/openssl/dist/test/
H A Dmdc2test.c50 unsigned char md[MDC2_DIGEST_LENGTH]; in test_mdc2() local
70 || !TEST_true(EVP_DigestFinal_ex(c, &(md[0]), NULL)) in test_mdc2()
71 || !TEST_mem_eq(md, MDC2_DIGEST_LENGTH, pad1, MDC2_DIGEST_LENGTH) in test_mdc2()
77 || !TEST_true(EVP_DigestFinal_ex(c, &(md[0]), NULL)) in test_mdc2()
78 || !TEST_mem_eq(md, MDC2_DIGEST_LENGTH, pad2, MDC2_DIGEST_LENGTH)) in test_mdc2()
/netbsd/crypto/external/bsd/openssl/dist/demos/digest/
H A DEVP_MD_xof.c48 EVP_MD *md = NULL; in main() local
69 md = EVP_MD_fetch(libctx, "SHAKE256", propq); in main()
70 if (md == NULL) { in main()
83 if (EVP_DigestInit(ctx, md) == 0) { in main()
129 EVP_MD_free(md); in main()
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/passwd/pbkdf2/
H A Dpw-pbkdf2.c158 const EVP_MD *md; in pbkdf2_encrypt() local
175 md = EVP_sha1(); in pbkdf2_encrypt()
178 md = EVP_sha1(); in pbkdf2_encrypt()
181 md = EVP_sha256(); in pbkdf2_encrypt()
184 md = EVP_sha512(); in pbkdf2_encrypt()
225 iteration, md, dk.bv_len, dk_value)){ in pbkdf2_encrypt()
281 const EVP_MD *md; in pbkdf2_check() local
300 md = EVP_sha1(); in pbkdf2_check()
303 md = EVP_sha1(); in pbkdf2_check()
306 md = EVP_sha256(); in pbkdf2_check()
[all …]
/netbsd/sys/arch/vax/mba/
H A Dhp.c235 hpstart(struct mba_device *md) in hpstart() argument
237 struct hp_softc * const sc = md->md_softc; in hpstart()
239 struct buf *bp = bufq_peek(md->md_q); in hpstart()
358 hpfinish(struct mba_device *md, int mbasr, int *attn) in hpfinish() argument
360 struct hp_softc * const sc = md->md_softc; in hpfinish()
361 struct buf *bp = bufq_peek(md->md_q); in hpfinish()
377 bc = bus_space_read_4(md->md_mba->sc_iot, in hpfinish()
378 md->md_mba->sc_ioh, MBA_BC); in hpfinish()
399 bufq_peek(md->md_q)->b_resid = 0; in hpfinish()
409 hpattn(struct mba_device *md) in hpattn() argument
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/ec/
H A Dec_pmeth.c25 const EVP_MD *md; member
68 dctx->md = sctx->md; in pkey_ec_copy()
123 type = (dctx->md != NULL) ? EVP_MD_type(dctx->md) : NID_sha1; in pkey_ec_sign()
141 if (dctx->md) in pkey_ec_verify()
142 type = EVP_MD_type(dctx->md); in pkey_ec_verify()
334 dctx->md = p2; in pkey_ec_ctrl()
338 *(const EVP_MD **)p2 = dctx->md; in pkey_ec_ctrl()
379 const EVP_MD *md; in pkey_ec_ctrl_str() local
380 if ((md = EVP_get_digestbyname(value)) == NULL) { in pkey_ec_ctrl_str()
384 return EVP_PKEY_CTX_set_ecdh_kdf_md(ctx, md); in pkey_ec_ctrl_str()
/netbsd/crypto/external/bsd/openssl/dist/crypto/evp/
H A Devp_pbe.c95 const EVP_MD *md = NULL; in EVP_PBE_CipherInit_ex() local
136 md = md_fetch = EVP_MD_fetch(libctx, OBJ_nid2sn(md_nid), propq); in EVP_PBE_CipherInit_ex()
138 if (md == NULL) in EVP_PBE_CipherInit_ex()
139 md = EVP_get_digestbynid(md_nid); in EVP_PBE_CipherInit_ex()
141 if (md == NULL) { in EVP_PBE_CipherInit_ex()
151 ret = keygen_ex(ctx, pass, passlen, param, cipher, md, en_de, libctx, propq); in EVP_PBE_CipherInit_ex()
153 ret = keygen(ctx, pass, passlen, param, cipher, md, en_de); in EVP_PBE_CipherInit_ex()
223 int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md, in EVP_PBE_alg_add() argument
232 if (md) in EVP_PBE_alg_add()
233 md_nid = EVP_MD_get_type(md); in EVP_PBE_alg_add()
/netbsd/external/bsd/libfido2/dist/src/
H A Decdh.c22 const EVP_MD *md; in hkdf_sha256() local
26 if ((md = EVP_sha256()) == NULL || in hkdf_sha256()
27 HKDF(key, SHA256_DIGEST_LENGTH, md, secret->ptr, secret->len, salt, in hkdf_sha256()
38 EVP_MD *md = NULL; in hkdf_sha256() local
50 (md = EVP_MD_meth_dup(const_md)) == NULL || in hkdf_sha256()
56 EVP_PKEY_CTX_set_hkdf_md(ctx, md) < 1 || in hkdf_sha256()
70 if (md != NULL) in hkdf_sha256()
71 EVP_MD_meth_free(md); in hkdf_sha256()
/netbsd/sys/fs/nfs/server/
H A Dnfs_fha_new.c46 int fhanew_get_fh(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos);
49 int fhanew_get_offset(struct mbuf **md, caddr_t *dpos, int v3,
133 fhanew_get_fh(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos) in fhanew_get_fh() argument
145 nd->nd_md = *md; in fhanew_get_fh()
167 *md = nd->nd_md; in fhanew_get_fh()
192 fhanew_get_offset(struct mbuf **md, caddr_t *dpos, int v3, in fhanew_get_offset() argument
202 nd->nd_md = *md; in fhanew_get_offset()
214 *md = nd->nd_md; in fhanew_get_offset()

12345678910>>...100