| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| D | pseudo-random-test.c | 75 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/ |
| D | eap_eke_common.c | 121 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 …]
|
| D | ikev2_common.c | 122 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 …]
|
| D | eap_ikev2_common.c | 18 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()
|
| D | eap_eke_common.h | 65 u8 prf; member 82 u8 prf, u8 mac);
|
| D | eap_ikev2_common.h | 20 int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys,
|
| /netbsd/src/lib/libedit/ |
| D | prompt.c | 152 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/ |
| D | ikev2.c | 41 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/ |
| D | ikev2.c | 37 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 …]
|
| D | eap_eke.c | 33 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()
|
| D | ikev2.h | 17 int prf; member
|
| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | xmss_hash.c | 71 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()
|
| D | xmss_hash.h | 16 int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen);
|
| /netbsd/src/external/bsd/tcpdump/dist/tests/ |
| D | ikev2pI2.out | 7 (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 )
|
| D | ikev2four.out | 9 (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 )
|
| D | ikev2fourv4.out | 9 (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 )
|
| D | ikev2fourv.out | 9 (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 )
|
| D | ikev2pI2-segfault-v.out | 7 (t: #3 type=prf id=hmac-sha )
|
| /netbsd/src/lib/libm/noieee_src/ |
| D | n_fmod.c | 122 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/ |
| D | Makefile | 36 sha1-prf.o \ 40 sha256-prf.o \ 44 sha384-prf.o \ 47 sha512-prf.o \
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/asn1/ |
| D | p5_pbev2.c | 31 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/ |
| D | Makefile | 115 sha1-prf.c \ 117 sha256-prf.c \ 119 sha384-prf.c \ 121 sha512-prf.c \
|
| /netbsd/src/crypto/dist/ipsec-tools/src/racoon/rfc/ |
| D | rfc2409.txt | 193 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/ |
| D | Makefile | 36 sha1-prf.c \ 38 sha256-prf.c \
|
| /netbsd/src/external/bsd/wpa/dist/src/common/ |
| D | dpp_backup.c | 217 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()
|