Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 25 of 71) sorted by relevance

123

/NextBSD/sys/geom/eli/
HDg_eli_crypto.c59 g_eli_crypto_cipher(u_int algo, int enc, u_char *data, size_t datasize, in g_eli_crypto_cipher() argument
69 KASSERT(algo != CRYPTO_AES_XTS, in g_eli_crypto_cipher()
73 cri.cri_alg = algo; in g_eli_crypto_cipher()
92 crd->crd_alg = algo; in g_eli_crypto_cipher()
120 g_eli_crypto_cipher(u_int algo, int enc, u_char *data, size_t datasize, in g_eli_crypto_cipher() argument
128 assert(algo != CRYPTO_AES_XTS); in g_eli_crypto_cipher()
130 switch (algo) { in g_eli_crypto_cipher()
202 g_eli_crypto_encrypt(u_int algo, u_char *data, size_t datasize, in g_eli_crypto_encrypt() argument
207 if (algo == CRYPTO_AES_XTS) in g_eli_crypto_encrypt()
208 algo = CRYPTO_AES_CBC; in g_eli_crypto_encrypt()
[all …]
HDg_eli.h451 g_eli_algo2str(u_int algo) in g_eli_algo2str() argument
454 switch (algo) { in g_eli_algo2str()
522 g_eli_keylen(u_int algo, u_int keylen) in g_eli_keylen() argument
525 switch (algo) { in g_eli_keylen()
574 g_eli_hashlen(u_int algo) in g_eli_hashlen() argument
577 switch (algo) { in g_eli_hashlen()
675 int g_eli_mkey_encrypt(unsigned algo, const unsigned char *key, unsigned keylen,
681 int g_eli_crypto_encrypt(u_int algo, u_char *data, size_t datasize,
683 int g_eli_crypto_decrypt(u_int algo, u_char *data, size_t datasize,
HDg_eli_key.c157 g_eli_mkey_encrypt(unsigned algo, const unsigned char *key, unsigned keylen, in g_eli_mkey_encrypt() argument
176 error = g_eli_crypto_encrypt(algo, mkey, G_ELI_MKEYLEN, enckey, keylen); in g_eli_mkey_encrypt()
/NextBSD/contrib/unbound/validator/
HDval_secalgo.c89 secalgo_nsec3_hash(int algo, unsigned char* buf, size_t len, in secalgo_nsec3_hash() argument
92 switch(algo) { in secalgo_nsec3_hash()
107 ds_digest_size_supported(int algo) in ds_digest_size_supported() argument
109 switch(algo) { in ds_digest_size_supported()
146 secalgo_ds_digest(int algo, unsigned char* buf, size_t len, in secalgo_ds_digest() argument
149 switch(algo) { in secalgo_ds_digest()
173 algo); in secalgo_ds_digest()
323 setup_key_digest(int algo, EVP_PKEY** evp_key, const EVP_MD** digest_type, in setup_key_digest() argument
329 switch(algo) { in setup_key_digest()
378 if(algo == LDNS_RSASHA256) in setup_key_digest()
[all …]
HDval_kentry.c62 if(kd->algo) in key_entry_sizefunc()
63 s += strlen((char*)kd->algo)+1; in key_entry_sizefunc()
97 free(kd->algo); in key_entry_deldatafunc()
143 if(d->algo) { in key_entry_copy_toregion()
144 newd->algo = (uint8_t*)regional_strdup(region, in key_entry_copy_toregion()
145 (char*)d->algo); in key_entry_copy_toregion()
146 if(!newd->algo) in key_entry_copy_toregion()
203 if(d->algo) { in key_entry_copy()
204 newd->algo = (uint8_t*)strdup((char*)d->algo); in key_entry_copy()
205 if(!newd->algo) { in key_entry_copy()
[all …]
HDval_secalgo.h59 int secalgo_nsec3_hash(int algo, unsigned char* buf, size_t len,
67 size_t ds_digest_size_supported(int algo);
76 int secalgo_ds_digest(int algo, unsigned char* buf, size_t len,
95 enum sec_status verify_canonrrset(struct sldns_buffer* buf, int algo,
HDval_sigcrypt.c386 uint8_t algo; in algo_needs_init_dnskey_add() local
391 algo = (uint8_t)dnskey_get_algo(dnskey, i); in algo_needs_init_dnskey_add()
392 if(!dnskey_algo_id_is_supported((int)algo)) in algo_needs_init_dnskey_add()
394 if(n->needs[algo] == 0) { in algo_needs_init_dnskey_add()
395 n->needs[algo] = 1; in algo_needs_init_dnskey_add()
396 sigalg[total] = algo; in algo_needs_init_dnskey_add()
406 uint8_t algo; in algo_needs_init_list() local
410 while( (algo=*sigalg++) != 0) { in algo_needs_init_list()
411 log_assert(dnskey_algo_id_is_supported((int)algo)); in algo_needs_init_list()
412 log_assert(n->needs[algo] == 0); in algo_needs_init_list()
[all …]
HDval_nsec3.c210 int* algo, size_t* iter, uint8_t** salt, size_t* saltlen) in nsec3_get_params() argument
216 *algo = nsec3_get_algo(rrset, r); in nsec3_get_params()
532 nsec3_get_hashed(sldns_buffer* buf, uint8_t* nm, size_t nmlen, int algo, in nsec3_get_hashed() argument
542 hash_len = nsec3_hash_algo_size_supported(algo); in nsec3_get_hashed()
544 log_err("nsec3 hash of unknown algo %d", algo); in nsec3_get_hashed()
549 if(!secalgo_nsec3_hash(algo, (unsigned char*)sldns_buffer_begin(buf), in nsec3_get_hashed()
557 if(!secalgo_nsec3_hash(algo, in nsec3_get_hashed()
570 int algo = nsec3_get_algo(c->nsec3, c->rr); in nsec3_calc_hash() local
582 c->hash_len = nsec3_hash_algo_size_supported(algo); in nsec3_calc_hash()
584 log_err("nsec3 hash of unknown algo %d", algo); in nsec3_calc_hash()
[all …]
HDval_sigcrypt.h106 int algo_needs_set_secure(struct algo_needs* n, uint8_t algo);
114 void algo_needs_set_bogus(struct algo_needs* n, uint8_t algo);
HDval_nsec3.h317 int* algo, size_t* iter, uint8_t** salt, size_t* saltlen);
333 int algo, size_t iter, uint8_t* salt, size_t saltlen, uint8_t* res,
HDval_kentry.h84 uint8_t* algo; member
/NextBSD/sys/netinet/cc/
HDcc.c130 struct cc_algo *algo; in cc_list_available() local
138 STAILQ_FOREACH(algo, &cc_list, entries) { in cc_list_available()
156 STAILQ_FOREACH(algo, &cc_list, entries) { in cc_list_available()
157 err = sbuf_printf(s, first ? "%s" : ", %s", algo->name); in cc_list_available()
283 struct cc_algo *algo; in cc_modevent() local
287 algo = (struct cc_algo *)data; in cc_modevent()
291 if (algo->mod_init != NULL) in cc_modevent()
292 err = algo->mod_init(); in cc_modevent()
294 err = cc_register_algo(algo); in cc_modevent()
300 err = cc_deregister_algo(algo); in cc_modevent()
[all …]
/NextBSD/contrib/mdocml/
HDTODO18 - algo = difficulty of the new algorithm to be written
42 loc ** exist * algo * size ** imp **
58 loc *** exist *** algo ** size ** imp ** (parser reorg would help)
62 loc ** exist *** algo * size * imp *
66 loc * exist * algo * size * imp **
70 loc *** exist *** algo *** size ** imp *
77 loc ** exist *** algo ** size ** imp ***
82 loc ** exist ** algo ** size * imp ** (parser reorg helps a lot)
86 loc * exist ** algo ** size ** imp **
93 loc ** exist ** algo ** size * imp *** (parser reorg helps a lot)
[all …]
/NextBSD/sbin/hastd/
HDhast_checksum.c129 const char *algo; in checksum_recv() local
131 algo = nv_get_string(nv, "checksum"); in checksum_recv()
132 if (algo == NULL) in checksum_recv()
139 if (strcmp(algo, "crc32") == 0) in checksum_recv()
142 else if (strcmp(algo, "sha256") == 0) in checksum_recv()
146 pjdlog_error("Unknown checksum algorithm '%s'.", algo); in checksum_recv()
151 rhsize, algo, chsize); in checksum_recv()
HDhast_compression.c255 const char *algo; in compression_recv() local
258 algo = nv_get_string(nv, "compression"); in compression_recv()
259 if (algo == NULL) in compression_recv()
265 if (strcmp(algo, "hole") == 0) in compression_recv()
267 else if (strcmp(algo, "lzf") == 0) in compression_recv()
270 pjdlog_error("Unknown compression algorithm '%s'.", algo); in compression_recv()
/NextBSD/contrib/netbsd-tests/lib/libskey/
HDt_algorithms.c45 const char *algo, const char *zero, in h_check() argument
52 skey_set_algorithm(algo); in h_check()
/NextBSD/contrib/unbound/sldns/
HDkeyraw.c312 sldns_ecdsa2pkey_raw(unsigned char* key, size_t keylen, uint8_t algo) in sldns_ecdsa2pkey_raw() argument
319 if(algo == LDNS_ECDSAP256SHA256) { in sldns_ecdsa2pkey_raw()
322 } else if(algo == LDNS_ECDSAP384SHA384) { in sldns_ecdsa2pkey_raw()
HDkeyraw.h85 EVP_PKEY* sldns_ecdsa2pkey_raw(unsigned char* key, size_t keylen, uint8_t algo);
/NextBSD/crypto/openssl/apps/
HDts.c500 X509_ALGOR *algo = NULL; in create_query() local
522 if (!(algo = X509_ALGOR_new())) in create_query()
524 if (!(algo->algorithm = OBJ_nid2obj(EVP_MD_type(md)))) in create_query()
526 if (!(algo->parameter = ASN1_TYPE_new())) in create_query()
528 algo->parameter->type = V_ASN1_NULL; in create_query()
529 if (!TS_MSG_IMPRINT_set_algo(msg_imprint, algo)) in create_query()
565 X509_ALGOR_free(algo); in create_query()
/NextBSD/lib/libfetch/
HDhttp.c636 char *algo; member
645 b->realm = b->qop = b->nonce = b->opaque = b->algo = NULL; in init_http_auth_challenge()
660 if (b->algo) in clean_http_auth_challenge()
661 free(b->algo); in clean_http_auth_challenge()
824 cs->challenges[cs->count]->algo = in http_parse_authenticate()
1260 if (!c->algo) in http_digest_auth()
1261 c->algo = strdup(""); in http_digest_auth()
1264 *c->algo? ",algorithm=" : "", c->algo, in http_digest_auth()
1280 DigestCalcHA1(c->algo, parms->user, c->realm, in http_digest_auth()
/NextBSD/contrib/ldns/
HDdnssec_verify.c1859 ldns_ecdsa2pkey_raw(unsigned char* key, size_t keylen, uint8_t algo) in ldns_ecdsa2pkey_raw() argument
1866 if(algo == LDNS_ECDSAP256SHA256) { in ldns_ecdsa2pkey_raw()
1869 } else if(algo == LDNS_ECDSAP384SHA384) { in ldns_ecdsa2pkey_raw()
1899 ldns_buffer* rrset, unsigned char* key, size_t keylen, uint8_t algo) in ldns_verify_rrsig_ecdsa_raw() argument
1905 evp_key = ldns_ecdsa2pkey_raw(key, keylen, algo); in ldns_verify_rrsig_ecdsa_raw()
1910 if(algo == LDNS_ECDSAP256SHA256) in ldns_verify_rrsig_ecdsa_raw()
1921 ldns_buffer *key_buf, uint8_t algo) in ldns_verify_rrsig_buffers() argument
1928 ldns_buffer_position(key_buf), algo); in ldns_verify_rrsig_buffers()
1934 uint8_t algo) in ldns_verify_rrsig_buffers_raw() argument
1937 switch(algo) { in ldns_verify_rrsig_buffers_raw()
[all …]
/NextBSD/sys/net80211/
HDieee80211_hostap.c1643 int algo, int seq, int status) in authalgreject() argument
1648 wh, NULL, "unsupported alg %d", algo); in authalgreject()
1862 uint16_t algo, seq, status; in hostap_recv_mgmt() local
1882 algo = le16toh(*(uint16_t *)frm); in hostap_recv_mgmt()
1886 "recv auth frame with algorithm %d seq %d", algo, seq); in hostap_recv_mgmt()
1909 if (algo == IEEE80211_AUTH_ALG_SHARED) in hostap_recv_mgmt()
1912 else if (algo == IEEE80211_AUTH_ALG_OPEN) in hostap_recv_mgmt()
1914 else if (algo == IEEE80211_AUTH_ALG_LEAP) { in hostap_recv_mgmt()
1915 authalgreject(ni, wh, algo, in hostap_recv_mgmt()
1928 authalgreject(ni, wh, algo, in hostap_recv_mgmt()
/NextBSD/contrib/tcsh/nls/spanish/
HDset911 8 Falta algo a continuación: %c\n
/NextBSD/contrib/ldns/ldns/
HDdnssec_verify.h620 uint8_t algo);
638 uint8_t algo);
/NextBSD/sys/crypto/aesni/
HDaesni.h59 int algo; member

123