Home
last modified time | relevance | path

Searched refs:md_type (Results 1 – 25 of 44) sorted by relevance

12

/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/
H A Dmd.c44 isc_md_init(isc_md_t *md, const isc_md_type_t *md_type) { in isc_md_init() argument
47 if (md_type == NULL) { in isc_md_init()
51 if (EVP_DigestInit_ex(md, md_type, NULL) != 1) { in isc_md_init()
118 isc_md_type_get_size(const isc_md_type_t *md_type) { in isc_md_type_get_size() argument
122 if (md_type != NULL) { in isc_md_type_get_size()
123 return ((size_t)EVP_MD_size(md_type)); in isc_md_type_get_size()
130 isc_md_type_get_block_size(const isc_md_type_t *md_type) { in isc_md_type_get_block_size() argument
134 if (md_type != NULL) { in isc_md_type_get_block_size()
135 return ((size_t)EVP_MD_block_size(md_type)); in isc_md_type_get_block_size()
142 isc_md(const isc_md_type_t *md_type, const unsigned char *buf, const size_t len, in isc_md() argument
[all …]
H A Dhmac.c48 const isc_md_type_t *md_type) { in isc_hmac_init() argument
52 if (md_type == NULL) { in isc_hmac_init()
56 if (HMAC_Init_ex(hmac, key, keylen, md_type, NULL) != 1) { in isc_hmac_init()
/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dmd.c44 isc_md_init(isc_md_t *md, const isc_md_type_t *md_type) { in isc_md_init() argument
47 if (md_type == NULL) { in isc_md_init()
51 if (EVP_DigestInit_ex(md, md_type, NULL) != 1) { in isc_md_init()
122 isc_md_type_get_size(const isc_md_type_t *md_type) { in isc_md_type_get_size() argument
126 if (md_type != NULL) { in isc_md_type_get_size()
127 return (size_t)EVP_MD_size(md_type); in isc_md_type_get_size()
134 isc_md_type_get_block_size(const isc_md_type_t *md_type) { in isc_md_type_get_block_size() argument
138 if (md_type != NULL) { in isc_md_type_get_block_size()
139 return (size_t)EVP_MD_block_size(md_type); in isc_md_type_get_block_size()
146 isc_md(const isc_md_type_t *md_type, cons argument
[all...]
H A Dhmac.c48 const isc_md_type_t *md_type) { in isc_hmac_init() argument
55 if (md_type == NULL) { in isc_hmac_init()
65 if (EVP_DigestSignInit(hmac_st, NULL, md_type, NULL, pkey) != 1) { in isc_hmac_init()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/pkcs12/
H A Dp12_key.c21 unsigned char *out, const EVP_MD *md_type, in PKCS12_key_gen_asc_ex() argument
36 n, out, md_type, ctx, propq); in PKCS12_key_gen_asc_ex()
43 unsigned char *out, const EVP_MD *md_type) in PKCS12_key_gen_asc() argument
46 out, md_type, NULL, NULL); in PKCS12_key_gen_asc()
51 unsigned char *out, const EVP_MD *md_type, in PKCS12_key_gen_utf8_ex() argument
66 n, out, md_type, ctx, propq); in PKCS12_key_gen_utf8_ex()
73 unsigned char *out, const EVP_MD *md_type) in PKCS12_key_gen_utf8() argument
76 out, md_type, NULL, NULL); in PKCS12_key_gen_utf8()
81 unsigned char *out, const EVP_MD *md_type, in PKCS12_key_gen_uni_ex() argument
101 (char *)EVP_MD_get0_name(md_type), in PKCS12_key_gen_uni_ex()
[all …]
H A Dp12_mutl.c82 const EVP_MD *md_type)) in pkcs12_gen_mac() argument
211 const EVP_MD *md_type) in PKCS12_set_mac() argument
217 if (md_type == NULL) in PKCS12_set_mac()
219 md_type = EVP_sha256(); in PKCS12_set_mac()
222 if (PKCS12_setup_mac(p12, iter, salt, saltlen, md_type) == PKCS12_ERROR) { in PKCS12_set_mac()
243 const EVP_MD *md_type) in PKCS12_setup_mac() argument
279 if (!X509_ALGOR_set0(macalg, OBJ_nid2obj(EVP_MD_get_type(md_type)), in PKCS12_setup_mac()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/pkcs12/
H A Dp12_mutl.c76 const EVP_MD *md_type)) in pkcs12_gen_mac() argument
79 const EVP_MD *md_type; in pkcs12_gen_mac() local
104 if ((md_type = EVP_get_digestbyobj(macoid)) == NULL) { in pkcs12_gen_mac()
108 md_size = EVP_MD_size(md_type); in pkcs12_gen_mac()
109 md_type_nid = EVP_MD_type(md_type); in pkcs12_gen_mac()
118 md_size, key, md_type)) { in pkcs12_gen_mac()
124 iter, md_size, key, md_type)) { in pkcs12_gen_mac()
129 || !HMAC_Init_ex(hmac, key, md_size, md_type, NULL) in pkcs12_gen_mac()
177 const EVP_MD *md_type) in PKCS12_set_mac() argument
183 if (!md_type) in PKCS12_set_mac()
[all …]
H A Dp12_key.c32 unsigned char *out, const EVP_MD *md_type) in PKCS12_key_gen_asc() argument
46 id, iter, n, out, md_type); in PKCS12_key_gen_asc()
55 unsigned char *out, const EVP_MD *md_type) in PKCS12_key_gen_utf8() argument
69 id, iter, n, out, md_type); in PKCS12_key_gen_utf8()
78 unsigned char *out, const EVP_MD *md_type) in PKCS12_key_gen_uni() argument
102 v = EVP_MD_block_size(md_type); in PKCS12_key_gen_uni()
103 u = EVP_MD_size(md_type); in PKCS12_key_gen_uni()
126 if (!EVP_DigestInit_ex(ctx, md_type, NULL) in PKCS12_key_gen_uni()
132 if (!EVP_DigestInit_ex(ctx, md_type, NULL) in PKCS12_key_gen_uni()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Dds.c44 const isc_md_type_t *md_type = NULL; in dns_ds_fromkeyrdata() local
56 md_type = ISC_MD_SHA1; in dns_ds_fromkeyrdata()
60 md_type = ISC_MD_SHA384; in dns_ds_fromkeyrdata()
64 md_type = ISC_MD_SHA256; in dns_ds_fromkeyrdata()
79 result = isc_md_init(md, md_type); in dns_ds_fromkeyrdata()
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Dds.c44 const isc_md_type_t *md_type = NULL; in dns_ds_fromkeyrdata() local
56 md_type = ISC_MD_SHA1; in dns_ds_fromkeyrdata()
60 md_type = ISC_MD_SHA384; in dns_ds_fromkeyrdata()
64 md_type = ISC_MD_SHA256; in dns_ds_fromkeyrdata()
79 result = isc_md_init(md, md_type); in dns_ds_fromkeyrdata()
/netbsd-src/external/mpl/bind/dist/lib/isccc/
H A Dcc.c261 const isc_md_type_t *md_type; in sign()
272 md_type = ISC_MD_MD5; in sign()
275 md_type = ISC_MD_SHA1; in sign()
278 md_type = ISC_MD_SHA224; in sign()
281 md_type = ISC_MD_SHA256; in sign()
284 md_type = ISC_MD_SHA384; in sign()
287 md_type = ISC_MD_SHA512; in sign()
293 result = isc_hmac(md_type, secret->rstart, REGION_SIZE(*secret), data, in sign()
382 const isc_md_type_t *md_type; in verify()
413 md_type in verify()
262 const isc_md_type_t *md_type; sign() local
383 const isc_md_type_t *md_type; verify() local
[all...]
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Dpkcs12.h162 unsigned char *out, const EVP_MD *md_type);
165 unsigned char *out, const EVP_MD *md_type);
168 unsigned char *out, const EVP_MD *md_type);
171 const EVP_MD *md_type, int en_de);
177 const EVP_MD *md_type);
179 int saltlen, const EVP_MD *md_type);
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DPKCS12_key_gen_utf8_ex.pod15 unsigned char *out, const EVP_MD *md_type);
18 unsigned char *out, const EVP_MD *md_type,
22 unsigned char *out, const EVP_MD *md_type);
25 unsigned char *out, const EVP_MD *md_type,
29 unsigned char *out, const EVP_MD *md_type);
32 unsigned char *out, const EVP_MD *md_type,
39 I<saltlen>, an iteration count I<iter> and a digest algorithm I<md_type>.
H A DPKCS12_gen_mac.pod17 const EVP_MD *md_type);
19 int saltlen, const EVP_MD *md_type);
36 I<iter> is the iteration count and I<md_type> is the message digest
H A DPKCS12_PBE_keyivgen.pod14 const EVP_MD *md_type, int en_de);
17 const EVP_MD *md_type, int en_de,
34 length I<passlen>, parameters I<param> and a message digest function I<md_type>
/netbsd-src/external/mpl/bind/dist/lib/isc/include/isc/
H A Dmd.h116 isc_md_init(isc_md_t *, const isc_md_type_t *md_type);
191 isc_md_type_get_size(const isc_md_type_t *md_type);
200 isc_md_type_get_block_size(const isc_md_type_t *md_type);
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/
H A Dmd.h123 isc_md_init(isc_md_t *, const isc_md_type_t *md_type);
198 isc_md_type_get_size(const isc_md_type_t *md_type);
207 isc_md_type_get_block_size(const isc_md_type_t *md_type);
/netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/
H A Dpkcs12.h.in232 unsigned char *out, const EVP_MD *md_type);
235 unsigned char *out, const EVP_MD *md_type,
239 unsigned char *out, const EVP_MD *md_type);
242 unsigned char *out, const EVP_MD *md_type,
246 unsigned char *out, const EVP_MD *md_type);
249 unsigned char *out, const EVP_MD *md_type,
254 const EVP_MD *md_type, int en_de);
257 const EVP_MD *md_type, int en_de,
264 const EVP_MD *md_type);
266 int saltlen, const EVP_MD *md_type);
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/kdfs/
H A Dpkcs12kdf.c50 int id, uint64_t iter, const EVP_MD *md_type, in pkcs12kdf_derive() argument
65 vi = EVP_MD_get_block_size(md_type); in pkcs12kdf_derive()
66 ui = EVP_MD_get_size(md_type); in pkcs12kdf_derive()
95 if (!EVP_DigestInit_ex(ctx, md_type, NULL) in pkcs12kdf_derive()
101 if (!EVP_DigestInit_ex(ctx, md_type, NULL) in pkcs12kdf_derive()
H A Dpbkdf1.c52 uint64_t iter, const EVP_MD *md_type, in kdf_pbkdf1_do_derive() argument
66 if (!EVP_DigestInit_ex(ctx, md_type, NULL) in kdf_pbkdf1_do_derive()
71 mdsize = EVP_MD_size(md_type); in kdf_pbkdf1_do_derive()
80 if (!EVP_DigestInit_ex(ctx, md_type, NULL)) in kdf_pbkdf1_do_derive()
/netbsd-src/sys/arch/ia64/stand/ia64/ski/
H A Defi_stub.c249 memp[0].md_type = EFI_MD_TYPE_PALCODE; in ski_init_stubs()
255 memp[1].md_type = EFI_MD_TYPE_FREE; in ski_init_stubs()
261 memp[2].md_type = EFI_MD_TYPE_FREE; in ski_init_stubs()
267 memp[3].md_type = EFI_MD_TYPE_IOPORT; in ski_init_stubs()
/netbsd-src/sys/arch/acorn32/dev/
H A Dmd_hooks.c72 md->md_type = MD_KMEM_FIXED; in md_attach_hook()
82 md->md_type = MD_KMEM_FIXED; in md_attach_hook()
/netbsd-src/sys/arch/atari/dev/
H A Dmd_root.c117 md->md_type = MD_UNCONFIGURED; /* Paranoia... */ in md_attach_hook()
130 if (md->md_type != MD_UNCONFIGURED) in md_open_hook()
143 md->md_type = MD_KMEM_ALLOCATED; in md_open_hook()
/netbsd-src/sys/arch/x86/x86/
H A Defi_machdep.c532 type = efi_getbiosmemtype(md->md_type, md->md_attr); in efi_get_e820memmap()
541 size, md->md_attr, md->md_type, in efi_get_e820memmap()
542 efi_getmemtype_str(md->md_type)); in efi_get_e820memmap()
661 (paddr_t)md->md_phys, md->md_type, md->md_attr); in efi_runtime_init()
679 switch (md->md_type) { in efi_runtime_init()
/netbsd-src/sys/dev/
H A Dmd.h40 int md_type; member

12