Home
last modified time | relevance | path

Searched refs:md (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/dragonfly/contrib/wpa_supplicant/src/crypto/
HDsha256-internal.c84 static int sha256_compress(struct sha256_state *md, unsigned char *buf) in sha256_compress() argument
92 S[i] = md->state[i]; in sha256_compress()
120 md->state[i] = md->state[i] + S[i]; in sha256_compress()
127 void sha256_init(struct sha256_state *md) in sha256_init() argument
129 md->curlen = 0; in sha256_init()
130 md->length = 0; in sha256_init()
131 md->state[0] = 0x6A09E667UL; in sha256_init()
132 md->state[1] = 0xBB67AE85UL; in sha256_init()
133 md->state[2] = 0x3C6EF372UL; in sha256_init()
134 md->state[3] = 0xA54FF53AUL; in sha256_init()
[all …]
HDsha512-internal.c110 static int sha512_compress(struct sha512_state *md, unsigned char *buf) in sha512_compress() argument
122 S[i] = md->state[i]; in sha512_compress()
151 md->state[i] = md->state[i] + S[i]; in sha512_compress()
164 void sha512_init(struct sha512_state *md) in sha512_init() argument
166 md->curlen = 0; in sha512_init()
167 md->length = 0; in sha512_init()
168 md->state[0] = CONST64(0x6a09e667f3bcc908); in sha512_init()
169 md->state[1] = CONST64(0xbb67ae8584caa73b); in sha512_init()
170 md->state[2] = CONST64(0x3c6ef372fe94f82b); in sha512_init()
171 md->state[3] = CONST64(0xa54ff53a5f1d36f1); in sha512_init()
[all …]
HDsha384-internal.c52 void sha384_init(struct sha384_state *md) in sha384_init() argument
54 md->curlen = 0; in sha384_init()
55 md->length = 0; in sha384_init()
56 md->state[0] = CONST64(0xcbbb9d5dc1059ed8); in sha384_init()
57 md->state[1] = CONST64(0x629a292a367cd507); in sha384_init()
58 md->state[2] = CONST64(0x9159015a3070dd17); in sha384_init()
59 md->state[3] = CONST64(0x152fecd8f70e5939); in sha384_init()
60 md->state[4] = CONST64(0x67332667ffc00b31); in sha384_init()
61 md->state[5] = CONST64(0x8eb44a8768581511); in sha384_init()
62 md->state[6] = CONST64(0xdb0c2e0d64f98fa7); in sha384_init()
[all …]
/dragonfly/contrib/libarchive/libarchive/
HDarchive_digest.c127 __archive_md5final(archive_md5_ctx *ctx, void *md) in __archive_md5final() argument
129 MD5Final(md, ctx); in __archive_md5final()
151 __archive_md5final(archive_md5_ctx *ctx, void *md) in __archive_md5final() argument
153 MD5Final(md, ctx); in __archive_md5final()
175 __archive_md5final(archive_md5_ctx *ctx, void *md) in __archive_md5final() argument
177 CC_MD5_Final(md, ctx); in __archive_md5final()
204 __archive_md5final(archive_md5_ctx *ctx, void *md) in __archive_md5final() argument
206 if (mbedtls_md5_finish_ret(ctx, md) == 0) { in __archive_md5final()
233 __archive_md5final(archive_md5_ctx *ctx, void *md) in __archive_md5final() argument
235 md5_digest(ctx, MD5_DIGEST_SIZE, md); in __archive_md5final()
[all …]
/dragonfly/crypto/libressl/crypto/evp/
HDevp_lib.c341 EVP_MD_block_size(const EVP_MD *md) in EVP_MD_block_size() argument
343 return md->block_size; in EVP_MD_block_size()
347 EVP_MD_type(const EVP_MD *md) in EVP_MD_type() argument
349 return md->type; in EVP_MD_type()
353 EVP_MD_pkey_type(const EVP_MD *md) in EVP_MD_pkey_type() argument
355 return md->pkey_type; in EVP_MD_pkey_type()
359 EVP_MD_size(const EVP_MD *md) in EVP_MD_size() argument
361 if (!md) { in EVP_MD_size()
365 return md->md_size; in EVP_MD_size()
369 EVP_MD_flags(const EVP_MD *md) in EVP_MD_flags() argument
[all …]
HDe_rc4_hmac_md5.c70 MD5_CTX head, tail, md; member
91 key->md = key->head; in rc4_hmac_md5_init_key()
119 md5_off = MD5_CBLOCK - key->md.num, in rc4_hmac_md5_cipher()
139 MD5_Update(&key->md, in, md5_off); in rc4_hmac_md5_cipher()
143 &key->md, in + md5_off, blocks); in rc4_hmac_md5_cipher()
147 key->md.Nh += blocks >> 29; in rc4_hmac_md5_cipher()
148 key->md.Nl += blocks <<= 3; in rc4_hmac_md5_cipher()
149 if (key->md.Nl < (unsigned int)blocks) in rc4_hmac_md5_cipher()
150 key->md.Nh++; in rc4_hmac_md5_cipher()
156 MD5_Update(&key->md, in + md5_off, plen - md5_off); in rc4_hmac_md5_cipher()
[all …]
HDe_aes_cbc_hmac_sha1.c70 SHA_CTX head, tail, md; member
116 key->md = key->head; in aesni_cbc_hmac_sha1_init_key()
180 sha_off = SHA_CBLOCK - key->md.num; in aesni_cbc_hmac_sha1_cipher()
200 SHA1_Update(&key->md, in + iv, sha_off); in aesni_cbc_hmac_sha1_cipher()
203 ctx->iv, &key->md, in + iv + sha_off); in aesni_cbc_hmac_sha1_cipher()
207 key->md.Nh += blocks >> 29; in aesni_cbc_hmac_sha1_cipher()
208 key->md.Nl += blocks <<= 3; in aesni_cbc_hmac_sha1_cipher()
209 if (key->md.Nl < (unsigned int)blocks) in aesni_cbc_hmac_sha1_cipher()
210 key->md.Nh++; in aesni_cbc_hmac_sha1_cipher()
216 SHA1_Update(&key->md, in + sha_off, plen - sha_off); in aesni_cbc_hmac_sha1_cipher()
[all …]
HDnames.c86 EVP_add_digest(const EVP_MD *md) in EVP_add_digest() argument
91 name = OBJ_nid2sn(md->type); in EVP_add_digest()
92 r = OBJ_NAME_add(name, OBJ_NAME_TYPE_MD_METH, (const char *)md); in EVP_add_digest()
95 check_defer(md->type); in EVP_add_digest()
96 r = OBJ_NAME_add(OBJ_nid2ln(md->type), OBJ_NAME_TYPE_MD_METH, in EVP_add_digest()
97 (const char *)md); in EVP_add_digest()
101 if (md->pkey_type && md->type != md->pkey_type) { in EVP_add_digest()
102 r = OBJ_NAME_add(OBJ_nid2sn(md->pkey_type), in EVP_add_digest()
106 check_defer(md->pkey_type); in EVP_add_digest()
107 r = OBJ_NAME_add(OBJ_nid2ln(md->pkey_type), in EVP_add_digest()
[all …]
/dragonfly/crypto/libressl/crypto/hmac/
HDhmac.c70 HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md, in HMAC_Init_ex() argument
77 if (md != NULL && md != ctx->md && (key == NULL || len < 0)) in HMAC_Init_ex()
80 if (md != NULL) { in HMAC_Init_ex()
82 ctx->md = md; in HMAC_Init_ex()
83 } else if (ctx->md != NULL) in HMAC_Init_ex()
84 md = ctx->md; in HMAC_Init_ex()
90 j = EVP_MD_block_size(md); in HMAC_Init_ex()
96 if (!EVP_DigestInit_ex(&ctx->md_ctx, md, impl)) in HMAC_Init_ex()
119 if (!EVP_DigestInit_ex(&ctx->i_ctx, md, impl)) in HMAC_Init_ex()
121 if (!EVP_DigestUpdate(&ctx->i_ctx, pad, EVP_MD_block_size(md))) in HMAC_Init_ex()
[all …]
/dragonfly/tools/tools/ifinfo/
HDrfc1650.c29 const struct ifmib_iso_8802_3 *md = xmd; in print_1650() local
31 if (len != sizeof *md) in print_1650()
34 identify_chipset(md->dot3StatsEtherChipSet); in print_1650()
35 print("Alignment errors", md->dot3StatsAlignmentErrors); in print_1650()
36 print("FCS errors", md->dot3StatsFCSErrors); in print_1650()
37 print("Single-collision frames", md->dot3StatsSingleCollisionFrames); in print_1650()
38 print("Multiple-collision frames", md->dot3StatsMultipleCollisionFrames); in print_1650()
39 print("SQE (Heartbeat) test errors", md->dot3StatsSQETestErrors); in print_1650()
40 print("Deferred transmissions", md->dot3StatsDeferredTransmissions); in print_1650()
41 print("Late collisions", md->dot3StatsLateCollisions); in print_1650()
[all …]
/dragonfly/crypto/libressl/crypto/conf/
HDconf_mod.c109 static void module_free(CONF_MODULE *md);
203 CONF_MODULE *md; in module_run() local
206 md = module_find(name); in module_run()
209 if (!md && !(flags & CONF_MFLAGS_NO_DSO)) in module_run()
210 md = module_load_dso(cnf, name, value, flags); in module_run()
212 if (!md) { in module_run()
220 ret = module_init(md, name, value, cnf); in module_run()
243 CONF_MODULE *md; in module_load_dso() local
263 md = module_add(dso, name, ifunc, ffunc); in module_load_dso()
265 if (!md) in module_load_dso()
[all …]
/dragonfly/test/stress/stress2/misc/
HDbackingstore2.sh45 mount | grep "${mntpoint}" | grep -q md$m2 && umount ${mntpoint}$m2
46 mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
47 mount | grep "${mntpoint}" | grep -q md$m1 && umount ${mntpoint}$m1
48 mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
54 bsdlabel -w md$m1 auto
55 newfs md${m1}${part} > /dev/null 2>&1
56 mount /dev/md${m1}${part} ${mntpoint}$m1
62 bsdlabel -w md$m2 auto
63 newfs md${m2}${part} > /dev/null 2>&1
64 mount /dev/md${m2}${part} ${mntpoint}$m2
[all …]
HDbackingstore3.sh44 mount | grep "${mntpoint}" | grep -q md$m2 && umount ${mntpoint}$m2
45 mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
46 mount | grep "${mntpoint}" | grep -q md$m1 && umount ${mntpoint}$m1
47 mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
53 bsdlabel -w md$m1 auto
54 newfs md${m1}${part} > /dev/null 2>&1
55 mount /dev/md${m1}${part} ${mntpoint}$m1
61 bsdlabel -w md$m2 auto
62 newfs md${m2}${part} > /dev/null 2>&1
63 mount /dev/md${m2}${part} ${mntpoint}$m2
[all …]
HDnbufkv.sh57 mount | grep -q /dev/md${u2}$part && umount -f /dev/md${u2}$part
58 mount | grep -q /dev/md${u1}$part && umount -f /dev/md${u1}$part
59 mdconfig -l | grep -q md${u2} && mdconfig -d -u $u2
60 mdconfig -l | grep -q md${u1} && mdconfig -d -u $u1
63 bsdlabel -w md$u1 auto
64 newfs -b 65536 -f 65536 -O2 md${u1}${part} > /dev/null
67 bsdlabel -w md$u2 auto
68 newfs -b 65536 -f 65536 -O2 md${u2}${part} > /dev/null
70 mount /dev/md${u1}$part mp1
71 mount /dev/md${u2}$part mp2
[all …]
HDbackingstore.sh42 mount | grep "${mntpoint}" | grep -q md$m && umount ${mntpoint}$m
43 mdconfig -l | grep -q md$m && mdconfig -d -u $m
49 bsdlabel -w md$m auto
50 newfs md${m}${part} > /dev/null 2>&1
51 mount $opt /dev/md${m}${part} ${mntpoint}$m
56 mount | grep "${mntpoint}" | grep -q md$m && umount ${mntpoint}$m
57 mdconfig -l | grep -q md$m && mdconfig -d -u $m
62 bsdlabel -w md$m auto
63 newfs md${m}${part} > /dev/null 2>&1
64 mount $opt /dev/md${m}${part} ${mntpoint}$m
[all …]
HDsnap8.sh41 mount | grep -q /dev/md${mdstart}$part && umount -f /dev/md${mdstart}$part
42 mdconfig -l | grep -q md${mdstart} && mdconfig -d -u $mdstart
52 bsdlabel -w md$mdstart auto
53 newfs -O2 -U md${mdstart}${part} > /dev/null
54 mount /dev/md${mdstart}${part} $mntpoint
91 umount /dev/md${mdstart}$part
93 mount | grep -q /dev/md${mdstart}$part && umount -f /dev/md${mdstart}$part
94 mdconfig -l | grep -q md${mdstart} && mdconfig -d -u $mdstart
HDmsdos2.sh39 mount | grep "$mntpoint" | grep -q md$mdstart && umount -f $mntpoint
43 bsdlabel -w md${mdstart} auto
44 newfs_msdos /dev/md${mdstart}a > /dev/null
45 mount -t msdosfs /dev/md${mdstart}a $mntpoint
50 bsdlabel -w md${u} auto
51 newfs_msdos /dev/md${u}a > /dev/null
52 mount -u /dev/md${u}a $mntpoint > /dev/null 2>&1 # panic
56 while mount | grep "$mntpoint" | grep -q md$mdstart; do
/dragonfly/games/hack/
HDhack.unix.c416 struct monst *md; in newmail() local
419 if (md = makemon(&pm_mail_daemon, u.ux, u.uy)) /* always succeeds */ in newmail()
420 mdrush(md, 0); in newmail()
423 if (md) { in newmail()
424 if (dist(md->mx, md->my) > 2) in newmail()
429 mdrush(md, 1); in newmail()
430 mondead(md); in newmail()
438 mdrush(struct monst *md, boolean away) in mdrush() argument
452 tmp_at(-1, md->data->mlet); /* open call */ in mdrush()
454 unpmon(md); in mdrush()
[all …]
/dragonfly/crypto/libressl/crypto/rsa/
HDrsa_pmeth.c88 const EVP_MD *md; member
148 dctx->md = sctx->md; in pkey_rsa_copy()
194 if (rctx->md) { in pkey_rsa_sign()
195 if (tbslen != (size_t)EVP_MD_size(rctx->md)) { in pkey_rsa_sign()
211 RSA_X931_hash_id(EVP_MD_type(rctx->md)); in pkey_rsa_sign()
217 ret = RSA_sign(EVP_MD_type(rctx->md), tbs, tbslen, sig, in pkey_rsa_sign()
226 tbs, rctx->md, rctx->mgf1md, rctx->saltlen)) in pkey_rsa_sign()
250 if (rctx->md) { in pkey_rsa_verifyrecover()
260 RSA_X931_hash_id(EVP_MD_type(rctx->md))) { in pkey_rsa_verifyrecover()
264 if (ret != EVP_MD_size(rctx->md)) { in pkey_rsa_verifyrecover()
[all …]
HDrsa_oaep.c97 const EVP_MD *md, const EVP_MD *mgf1md) in RSA_padding_add_PKCS1_OAEP_mgf1() argument
106 if (md == NULL) in RSA_padding_add_PKCS1_OAEP_mgf1()
107 md = EVP_sha1(); in RSA_padding_add_PKCS1_OAEP_mgf1()
109 mgf1md = md; in RSA_padding_add_PKCS1_OAEP_mgf1()
111 if ((mdlen = EVP_MD_size(md)) <= 0) in RSA_padding_add_PKCS1_OAEP_mgf1()
128 if (!EVP_Digest((void *)param, plen, db, NULL, md, NULL)) in RSA_padding_add_PKCS1_OAEP_mgf1()
172 int plen, const EVP_MD *md, const EVP_MD *mgf1md) in RSA_padding_check_PKCS1_OAEP_mgf1() argument
181 if (md == NULL) in RSA_padding_check_PKCS1_OAEP_mgf1()
182 md = EVP_sha1(); in RSA_padding_check_PKCS1_OAEP_mgf1()
184 mgf1md = md; in RSA_padding_check_PKCS1_OAEP_mgf1()
[all …]
/dragonfly/crypto/libressl/ssl/
HDssl_sigalgs.c34 .md = EVP_sha512,
40 .md = EVP_sha512,
48 .md = EVP_streebog512,
55 .md = EVP_sha384,
61 .md = EVP_sha384,
68 .md = EVP_sha256,
74 .md = EVP_sha256,
82 .md = EVP_streebog256,
88 .md = EVP_gostr341194,
95 .md = EVP_sha256,
[all …]
/dragonfly/contrib/zstd/
HDREADME.DELETED9 CODE_OF_CONDUCT.md
10 CONTRIBUTING.md
12 README.md
13 TESTING.md
22 lib/README.md
29 programs/README.md
31 programs/zstd.1.md
32 programs/zstdgrep.1.md
35 programs/zstdless.1.md
/dragonfly/crypto/libressl/crypto/x509/
HDx509_cmp.c94 unsigned char md[16]; in X509_issuer_and_serial_hash() local
111 if (!EVP_DigestFinal_ex(&ctx, &(md[0]), NULL)) in X509_issuer_and_serial_hash()
113 ret = (((unsigned long)md[0]) | ((unsigned long)md[1] << 8L) | in X509_issuer_and_serial_hash()
114 ((unsigned long)md[2] << 16L) | ((unsigned long)md[3] << 24L)) & in X509_issuer_and_serial_hash()
249 unsigned char md[SHA_DIGEST_LENGTH]; in X509_NAME_hash() local
253 if (!EVP_Digest(x->canon_enc, x->canon_enclen, md, NULL, EVP_sha1(), in X509_NAME_hash()
257 ret = (((unsigned long)md[0]) | ((unsigned long)md[1] << 8L) | in X509_NAME_hash()
258 ((unsigned long)md[2] << 16L) | ((unsigned long)md[3] << 24L)) & in X509_NAME_hash()
273 unsigned char md[16]; in X509_NAME_hash_old() local
280 EVP_DigestFinal_ex(&md_ctx, md, NULL)) in X509_NAME_hash_old()
[all …]
/dragonfly/stand/boot/common/
HDmodule.c254 struct file_metadata *md; in command_lsmod() local
293 for (md = fp->f_metadata; md != NULL; md = md->md_next) { in command_lsmod()
294 sprintf(lbuf, " 0x%04x, 0x%lx\n", md->md_type, (long) md->md_size); in command_lsmod()
335 struct file_metadata *md; in file_load_dependencies() local
342 md = file_findmetadata(base_file, MODINFOMD_DEPLIST); in file_load_dependencies()
343 if (md == NULL) in file_load_dependencies()
348 verinfo = (struct mod_depend*)md->md_data; in file_load_dependencies()
368 md = metadata_next(md, MODINFOMD_DEPLIST); in file_load_dependencies()
369 } while (md); in file_load_dependencies()
629 struct file_metadata *md; in file_addmetadata() local
[all …]
/dragonfly/stand/boot/pc32/libi386/
HDbootinfo32.c103 struct file_metadata *md; in bi_copymodules32() local
116 for (md = fp->f_metadata; md != NULL; md = md->md_next) in bi_copymodules32()
117 if (!(md->md_type & MODINFOMD_NOCOPY)) in bi_copymodules32()
118 MOD_METADATA(addr, md, c); in bi_copymodules32()
138 struct file_metadata *md; in bi_load32() local
230 md = file_findmetadata(kfp, MODINFOMD_KERNEND); in bi_load32()
231 bcopy(&kernend, md->md_data, sizeof kernend); in bi_load32()
237 md = file_findmetadata(kfp, MODINFOMD_SSYM); in bi_load32()
238 if (md != NULL) in bi_load32()
239 ssym = *((vm_offset_t *)&(md->md_data)); in bi_load32()
[all …]

12345678910>>...15