Searched refs:hmac (Results 1 - 25 of 56) sorted by relevance

123

/openbsd-current/regress/sbin/isakmpd/
H A DMakefile32 SUBDIR= crypto dh hmac prf util
/openbsd-current/usr.sbin/nsd/
H A Dtsig-openssl.h17 #include <openssl/hmac.h>
/openbsd-current/regress/usr.sbin/snmpd/
H A Dsnmpd.conf18 user auth_md5 authkey testpass auth hmac-md5
19 user auth_sha1 authkey testpass auth hmac-sha1
20 user auth_sha224 authkey testpass auth hmac-sha224
21 user auth_sha256 authkey testpass auth hmac-sha256
22 user auth_sha384 authkey testpass auth hmac-sha384
23 user auth_sha512 authkey testpass auth hmac-sha512
24 user authpriv_md5_des authkey testpass auth hmac-md5 enckey testpass enc des
25 user authpriv_md5_aes authkey testpass auth hmac-md5 enckey testpass enc aes
26 user authpriv_sha1_des authkey testpass auth hmac-sha1 enckey testpass enc des
27 user authpriv_sha1_aes authkey testpass auth hmac
[all...]
H A Dsnmpd.sh207 user "hans" authkey "password123" auth hmac-sha1
251 user "hans" authkey "password123" auth hmac-sha1 enc aes enckey "321drowssap"
/openbsd-current/lib/libcrypto/hkdf/
H A Dhkdf.c23 #include <openssl/hmac.h>
81 HMAC_CTX *hmac = NULL; local
88 if ((hmac = HMAC_CTX_new()) == NULL)
90 if (!HMAC_Init_ex(hmac, prk, prk_len, digest, NULL))
103 if (!HMAC_Update(hmac, info, info_len))
105 if (!HMAC_Update(hmac, &ctr, 1))
107 if (!HMAC_Final(hmac, out_hmac, NULL))
119 if (!HMAC_Init_ex(hmac, NULL, 0, NULL, NULL))
121 if (!HMAC_Update(hmac, out_hmac, digest_len))
130 HMAC_CTX_free(hmac);
[all...]
/openbsd-current/regress/sys/crypto/
H A DMakefile5 SUBDIR+= hmac
/openbsd-current/lib/libcrypto/hidden/openssl/
H A Dhmac.h1 /* $OpenBSD: hmac.h,v 1.2 2023/07/05 21:14:54 bcook Exp $ */
22 #include_next <openssl/hmac.h>
24 #include "../include/openssl/hmac.h"
/openbsd-current/lib/libfido2/src/
H A Dconfig.c16 config_prepare_hmac(uint8_t subcmd, const cbor_item_t *item, fido_blob_t *hmac) argument
29 if ((hmac->ptr = malloc(cbor_len + sizeof(prefix))) == NULL) {
33 memcpy(hmac->ptr, prefix, sizeof(prefix));
34 memcpy(hmac->ptr + sizeof(prefix), cbor, cbor_len);
35 hmac->len = cbor_len + sizeof(prefix);
46 fido_blob_t *ecdh = NULL, f, hmac; local
51 memset(&hmac, 0, sizeof(hmac));
67 if (config_prepare_hmac(subcmd, argv[1], &hmac) < 0) {
75 if ((r = cbor_add_uv_params(dev, cmd, &hmac, p
[all...]
/openbsd-current/regress/sys/crypto/hmac/
H A DMakefile6 SRCS+= md5.c sha1.c sha2.c hmac.c hmac_test.c
H A Dhmac_test.c21 #include <crypto/hmac.h>
/openbsd-current/usr.bin/ssh/ssh-keygen/
H A DMakefile6 SRCS+= authfd.c cleanup.c dns.c fatal.c hmac.c hostfile.c \
/openbsd-current/usr.bin/ssh/ssh-add/
H A DMakefile6 SRCS+= authfd.c cleanup.c fatal.c readpass.c utf8.c hostfile.c hmac.c
/openbsd-current/lib/libcrypto/pkcs12/
H A Dp12_mutl.c68 #include <openssl/hmac.h>
117 HMAC_CTX *hmac = NULL; local
159 if ((hmac = HMAC_CTX_new()) == NULL)
161 if (!HMAC_Init_ex(hmac, key, md_size, md_type, NULL))
163 if (!HMAC_Update(hmac, aos->data, aos->length))
165 if (!HMAC_Final(hmac, mac, maclen))
172 HMAC_CTX_free(hmac);
/openbsd-current/sys/arch/octeon/dev/
H A Doctcrypto.c338 const struct octcrypto_hmac *hmac = NULL; local
432 hmac = ses->ses_hmac;
435 memset(bptr + klen, 0, hmac->blocklen - klen);
436 for (i = 0; i < hmac->blocklen; i++)
440 hmac->set_iv(ses->ses_iiv);
441 hmac->transform(block, hmac->blocklen);
442 hmac->get_iv(ses->ses_iiv);
444 for (i = 0; i < hmac->blocklen; i++)
447 hmac
855 const struct octcrypto_hmac *hmac = ses->ses_hmac; local
[all...]
/openbsd-current/lib/libssl/
H A Dt1_enc.c142 #include <openssl/hmac.h>
165 unsigned char A1[EVP_MAX_MD_SIZE], hmac[EVP_MAX_MD_SIZE]; local
212 if (!EVP_DigestSignFinal(ctx, hmac, &hmac_len))
219 out[i] ^= hmac[i];
241 explicit_bzero(hmac, sizeof(hmac));
/openbsd-current/gnu/usr.bin/perl/cpan/Digest-SHA/
H A DSHA.xs200 HMAC hmac;
206 if (hmacinit(&hmac, ix2alg[ix], key, (UINT) len) == NULL)
211 hmacwrite(data, MAX_WRITE_SIZE << 3, &hmac);
215 hmacwrite(data, (ULNG) len << 3, &hmac);
217 hmacfinish(&hmac);
220 result = (char *) hmacdigest(&hmac);
221 len = hmac.digestlen;
224 result = hmachex(&hmac);
226 result = hmacbase64(&hmac);
/openbsd-current/regress/lib/libcrypto/
H A DMakefile31 SUBDIR += hmac
/openbsd-current/regress/lib/libradius/
H A Dtest24.c3 #include <openssl/hmac.h>
H A Dtest23.c3 #include <openssl/hmac.h>
/openbsd-current/usr.sbin/dhcpd/
H A Dsync.c31 #include <openssl/hmac.h>
242 u_int8_t hmac[2][DHCP_SYNC_HMAC_LEN]; local
271 memcpy(hmac[0], hdr->sh_hmac, DHCP_SYNC_HMAC_LEN);
274 hmac[1], &hmac_len); local
275 if (bcmp(hmac[0], hmac[1], DHCP_SYNC_HMAC_LEN) != 0)
/openbsd-current/usr.bin/dig/lib/isc/include/isc/
H A Dhmacsha.h36 #include <openssl/hmac.h>
/openbsd-current/regress/usr.bin/ssh/unittests/sshkey/
H A DMakefile9 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
/openbsd-current/regress/usr.bin/ssh/unittests/hostkeys/
H A DMakefile9 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
/openbsd-current/regress/usr.bin/ssh/unittests/authopt/
H A DMakefile11 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
/openbsd-current/regress/usr.bin/ssh/unittests/sshsig/
H A DMakefile9 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c

Completed in 288 milliseconds

123