Home
last modified time | relevance | path

Searched refs:prf (Results 1 – 25 of 65) sorted by relevance

123

/netbsd/src/crypto/external/bsd/heimdal/dist/lib/krb5/
Dpseudo-random-test.c75 krb5_data constant, prf; in main() local
77 krb5_data_zero(&prf); in main()
90 ret = krb5_crypto_prf(context, crypto, &constant, &prf); in main()
94 if (memcmp(prf.data, t->res, prf.length) != 0) { in main()
95 const unsigned char *p = prf.data; in main()
100 for (i = 0; i < prf.length; ++i) in main()
103 for (i = 0; i < prf.length; ++i) in main()
108 krb5_data_free(&prf); in main()
/netbsd/src/external/bsd/wpa/dist/src/eap_common/
Deap_eke_common.c121 static int eap_eke_prf_len(u8 prf) in eap_eke_prf_len() argument
123 if (prf == EAP_EKE_PRF_HMAC_SHA1) in eap_eke_prf_len()
125 if (prf == EAP_EKE_PRF_HMAC_SHA2_256) in eap_eke_prf_len()
131 static int eap_eke_nonce_len(u8 prf) in eap_eke_nonce_len() argument
135 prf_len = eap_eke_prf_len(prf); in eap_eke_nonce_len()
146 static int eap_eke_auth_len(u8 prf) in eap_eke_auth_len() argument
148 switch (prf) { in eap_eke_auth_len()
183 static int eap_eke_prf(u8 prf, const u8 *key, size_t key_len, const u8 *data, in eap_eke_prf() argument
199 if (prf == EAP_EKE_PRF_HMAC_SHA1) in eap_eke_prf()
201 if (prf == EAP_EKE_PRF_HMAC_SHA2_256) in eap_eke_prf()
[all …]
Dikev2_common.c122 const struct ikev2_prf_alg *prf; in ikev2_prf_plus() local
125 prf = ikev2_get_prf(alg); in ikev2_prf_plus()
126 if (prf == NULL) in ikev2_prf_plus()
128 hash_len = prf->hash_len; in ikev2_prf_plus()
379 const struct ikev2_prf_alg *prf; in ikev2_derive_auth_data() local
382 prf = ikev2_get_prf(prf_alg); in ikev2_derive_auth_data()
384 shared_secret == NULL || nonce == NULL || prf == NULL) in ikev2_derive_auth_data()
394 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, in ikev2_derive_auth_data()
402 sign_len = wpabuf_len(sign_msg) + nonce_len + prf->hash_len; in ikev2_derive_auth_data()
411 os_memcpy(pos, hash, prf->hash_len); in ikev2_derive_auth_data()
[all …]
Deap_ikev2_common.c18 int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys, in eap_ikev2_derive_keymat() argument
37 if (ikev2_prf_plus(prf, keys->SK_d, keys->SK_d_len, nonces, nlen, in eap_ikev2_derive_keymat()
Deap_eke_common.h65 u8 prf; member
82 u8 prf, u8 mac);
Deap_ikev2_common.h20 int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys,
/netbsd/src/lib/libedit/
Dprompt.c152 prompt_set(EditLine *el, el_pfunc_t prf, wchar_t c, int op, int wide) in prompt_set() argument
161 if (prf == NULL) { in prompt_set()
167 p->p_func = prf; in prompt_set()
184 prompt_get(EditLine *el, el_pfunc_t *prf, wchar_t *c, int op) in prompt_get() argument
188 if (prf == NULL) in prompt_get()
196 if (prf) in prompt_get()
197 *prf = p->p_func; in prompt_get()
/netbsd/src/external/bsd/wpa/dist/src/eap_server/
Dikev2.c41 const struct ikev2_prf_alg *prf; in ikev2_derive_keys() local
50 prf = ikev2_get_prf(data->proposal.prf); in ikev2_derive_keys()
52 if (integ == NULL || prf == NULL || encr == NULL) { in ikev2_derive_keys()
94 if (ikev2_prf_hash(prf->id, buf, data->i_nonce_len + data->r_nonce_len, in ikev2_derive_keys()
111 skeyseed, prf->hash_len); in ikev2_derive_keys()
113 ret = ikev2_derive_sk_keys(prf, integ, encr, skeyseed, buf, buf_len, in ikev2_derive_keys()
190 transform_id == data->proposal.prf) in ikev2_parse_transform()
191 prop->prf = transform_id; in ikev2_parse_transform()
326 prop.prf = -1; in ikev2_process_sar1()
333 if (!found && prop.integ != -1 && prop.prf != -1 && in ikev2_process_sar1()
[all …]
/netbsd/src/external/bsd/wpa/dist/src/eap_peer/
Dikev2.c37 const struct ikev2_prf_alg *prf; in ikev2_derive_keys() local
46 prf = ikev2_get_prf(data->proposal.prf); in ikev2_derive_keys()
48 if (integ == NULL || prf == NULL || encr == NULL) { in ikev2_derive_keys()
90 if (ikev2_prf_hash(prf->id, buf, data->i_nonce_len + data->r_nonce_len, in ikev2_derive_keys()
107 skeyseed, prf->hash_len); in ikev2_derive_keys()
109 ret = ikev2_derive_sk_keys(prf, integ, encr, skeyseed, buf, buf_len, in ikev2_derive_keys()
184 prop->prf = transform_id; in ikev2_parse_transform()
320 prop.prf = -1; in ikev2_process_sai1()
327 if (!found && prop.integ != -1 && prop.prf != -1 && in ikev2_process_sai1()
349 data->proposal.encr, data->proposal.prf, in ikev2_process_sai1()
[all …]
Deap_eke.c33 u8 prf; /* forced PRF or 0 to allow all supported */ member
116 data->prf = atoi(pos + 4); in eap_eke_init()
118 data->prf); in eap_eke_init()
181 static int eap_eke_supp_prf(u8 prf) in eap_eke_supp_prf() argument
183 return prf == EAP_EKE_PRF_HMAC_SHA1 || in eap_eke_supp_prf()
184 prf == EAP_EKE_PRF_HMAC_SHA2_256; in eap_eke_supp_prf()
274 if ((data->prf && data->prf != *tmp) || in eap_eke_process_id()
Dikev2.h17 int prf; member
/netbsd/src/crypto/external/bsd/openssh/dist/
Dxmss_hash.c71 int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen) in prf() function
102 prf(key, byte_addr, pub_seed, n); in hash_h()
106 prf(bitmask, byte_addr, pub_seed, n); in hash_h()
109 prf(bitmask+n, byte_addr, pub_seed, n); in hash_h()
126 prf(key, byte_addr, pub_seed, n); in hash_f()
130 prf(bitmask, byte_addr, pub_seed, n); in hash_f()
Dxmss_hash.h16 int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen);
/netbsd/src/external/bsd/tcpdump/dist/tests/
Dikev2pI2.out7 (t: #3 type=prf id=hmac-sha )
12 (t: #3 type=prf id=hmac-md5 )
17 (t: #3 type=prf id=hmac-sha )
22 (t: #3 type=prf id=hmac-md5 )
27 (t: #3 type=prf id=hmac-sha )
32 (t: #3 type=prf id=hmac-md5 )
Dikev2four.out9 (t: #5 type=prf id=hmac-sha )
10 (t: #6 type=prf id=hmac-md5 )
11 (t: #7 type=prf id=aes128_xcbc )
33 (t: #5 type=prf id=hmac-sha )
34 (t: #6 type=prf id=hmac-md5 )
35 (t: #7 type=prf id=aes128_xcbc )
50 (t: #2 type=prf id=hmac-sha )
Dikev2fourv4.out9 (t: #5 type=prf id=hmac-sha )
10 (t: #6 type=prf id=hmac-md5 )
11 (t: #7 type=prf id=aes128_xcbc )
33 (t: #5 type=prf id=hmac-sha )
34 (t: #6 type=prf id=hmac-md5 )
35 (t: #7 type=prf id=aes128_xcbc )
50 (t: #2 type=prf id=hmac-sha )
Dikev2fourv.out9 (t: #5 type=prf id=hmac-sha )
10 (t: #6 type=prf id=hmac-md5 )
11 (t: #7 type=prf id=aes128_xcbc )
33 (t: #5 type=prf id=hmac-sha )
34 (t: #6 type=prf id=hmac-md5 )
35 (t: #7 type=prf id=aes128_xcbc )
50 (t: #2 type=prf id=hmac-sha )
Dikev2pI2-segfault-v.out7 (t: #3 type=prf id=hmac-sha )
/netbsd/src/lib/libm/noieee_src/
Dn_fmod.c122 prf(const char *s, double d) in prf() function
137 prf(" x ", x); in doit()
138 prf(" y ", y); in doit()
139 prf(" fmod", ro); in doit()
140 prf("_fmod", rn); in doit()
/netbsd/src/external/bsd/wpa/dist/src/crypto/
DMakefile36 sha1-prf.o \
40 sha256-prf.o \
44 sha384-prf.o \
47 sha512-prf.o \
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/asn1/
Dp5_pbev2.c31 ASN1_OPT(PBKDF2PARAM, prf, X509_ALGOR)
211 kdf->prf = X509_ALGOR_new(); in PKCS5_pbkdf2_set_ex()
212 if (kdf->prf == NULL) in PKCS5_pbkdf2_set_ex()
214 X509_ALGOR_set0(kdf->prf, OBJ_nid2obj(prf_nid), V_ASN1_NULL, NULL); in PKCS5_pbkdf2_set_ex()
/netbsd/src/external/bsd/wpa/bin/hostapd/
DMakefile115 sha1-prf.c \
117 sha256-prf.c \
119 sha384-prf.c \
121 sha512-prf.c \
/netbsd/src/crypto/dist/ipsec-tools/src/racoon/rfc/
Drfc2409.txt193 prf(key, msg) is the keyed pseudo-random function-- often a keyed
195 appears pseudo-random. prf's are used both for key derivations and
353 function ("prf"). (There are currently no negotiable pseudo-random
355 be used for prf negotiation between consenting parties). If a "prf"
511 For signatures: SKEYID = prf(Ni_b | Nr_b, g^xy)
512 For public key encryption: SKEYID = prf(hash(Ni_b | Nr_b), CKY-I |
514 For pre-shared keys: SKEYID = prf(pre-shared-key, Ni_b |
520 SKEYID_d = prf(SKEYID, g^xy | CKY-I | CKY-R | 0)
521 SKEYID_a = prf(SKEYID, SKEYID_d | g^xy | CKY-I | CKY-R | 1)
522 SKEYID_e = prf(SKEYID, SKEYID_a | g^xy | CKY-I | CKY-R | 2)
[all …]
/netbsd/src/external/bsd/wpa/bin/wpa_supplicant/
DMakefile36 sha1-prf.c \
38 sha256-prf.c \
/netbsd/src/external/bsd/wpa/dist/src/common/
Ddpp_backup.c217 struct wpabuf *params = NULL, *buf = NULL, *prf = NULL; in dpp_build_pbkdf2_alg_id() local
242 prf = asn1_build_alg_id(oid, NULL); in dpp_build_pbkdf2_alg_id()
243 if (!prf) in dpp_build_pbkdf2_alg_id()
245 params = wpabuf_alloc(100 + wpabuf_len(salt) + wpabuf_len(prf)); in dpp_build_pbkdf2_alg_id()
251 wpabuf_put_buf(params, prf); in dpp_build_pbkdf2_alg_id()
258 wpabuf_free(prf); in dpp_build_pbkdf2_alg_id()

123