Searched refs:alg (Results 1 - 25 of 443) sorted by relevance

1234567891011>>

/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
H A Dcipher_cts.h13 #define IMPLEMENT_cts_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
16 static int alg##_cts_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
21 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_cts_functions[] = { \
23 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
24 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
25 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupctx }, \
26 { OSSL_FUNC_CIPHER_ENCRYPT_INIT, (void (*)(void)) alg##_cbc_cts_einit }, \
27 { OSSL_FUNC_CIPHER_DECRYPT_INIT, (void (*)(void)) alg##_cbc_cts_dinit }, \
34 (void (*)(void)) alg##_cts
[all...]
H A Dcipher_rc4.c73 #define IMPLEMENT_cipher(alg, UCALG, flags, kbits, blkbits, ivbits, typ) \
74 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_get_params; \
75 static int alg##_##kbits##_get_params(OSSL_PARAM params[]) \
80 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_newctx; \
81 static void * alg##_##kbits##_newctx(void *provctx) \
89 ossl_prov_cipher_hw_##alg(kbits), NULL); \
93 const OSSL_DISPATCH ossl_##alg##kbits##_functions[] = { \
95 (void (*)(void)) alg##_##kbits##_newctx }, \
96 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
97 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupct
[all...]
/netbsd-current/external/mpl/bind/dist/bin/confgen/
H A Dkeygen.h29 generate_key(isc_mem_t *mctx, dns_secalg_t alg, int keysize,
34 isc_buffer_t *secret, dns_secalg_t alg);
37 alg_totext(dns_secalg_t alg);
41 alg_bits(dns_secalg_t alg);
/netbsd-current/external/mpl/bind/dist/bin/tests/system/
H A Dtestcrypto.sh22 alg="-a $DEFAULT_ALGORITHM -b $DEFAULT_BITS"
24 alg=""
38 alg="-a RSASHA1"
42 alg="-a RSASHA256"
46 alg="-a RSASHA512"
50 alg="-a ECDSAP256SHA256"
54 alg="-a ECDSAP384SHA384"
58 alg="-a ED25519"
62 alg="-a ED448"
73 if test -z "$alg"; the
[all...]
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/otp/
H A Dotptest.c45 OtpAlgorithm *alg)
56 if (otp_parse (key2, buf, alg)) {
71 char *alg; member in struct:test
118 for(t = tests; t->alg; ++t) {
120 OtpAlgorithm *alg = otp_find_alg (t->alg); local
123 if (alg == NULL) {
124 printf ("Could not find alg %s\n", t->alg);
127 if(alg
43 test_one(OtpKey key1, char *name, char *val, void (*print)(OtpKey,char*, size_t), OtpAlgorithm *alg) argument
[all...]
/netbsd-current/external/lgpl3/gmp/dist/rand/
H A Drand.c36 gmp_randinit (gmp_randstate_t rstate, gmp_randalg_t alg, ...) argument
39 va_start (ap, alg);
41 switch (alg) {
/netbsd-current/external/apache2/mDNSResponder/dist/mDNSCore/
H A DCryptoAlg.c51 mDNSexport mStatus CryptoAlgInit(mDNSu8 alg, AlgFuncs *func) argument
53 if (alg >= CRYPTO_ALG_MAX)
55 LogMsg("CryptoAlgInit: alg %d exceeds bounds", alg);
60 if (alg != CRYPTO_RSA_SHA1 && alg != CRYPTO_RSA_SHA256 && alg != CRYPTO_RSA_SHA512 &&
61 alg != CRYPTO_DSA_NSEC3_SHA1 && alg != CRYPTO_RSA_NSEC3_SHA1)
63 LogMsg("CryptoAlgInit: alg
71 EncAlgInit(mDNSu8 alg, AlgFuncs *func) argument
91 AlgCreate(AlgType type, mDNSu8 alg) argument
[all...]
/netbsd-current/crypto/external/bsd/openssh/dist/
H A Ddigest-openssl.c34 int alg; member in struct:ssh_digest_ctx
56 ssh_digest_by_alg(int alg) argument
58 if (alg < 0 || alg >= SSH_DIGEST_MAX)
60 if (digests[alg].id != alg) /* sanity */
62 return &(digests[alg]);
68 int alg; local
70 for (alg = 0; digests[alg]
78 ssh_digest_alg_name(int alg) argument
86 ssh_digest_bytes(int alg) argument
100 ssh_digest_start(int alg) argument
171 ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen) argument
189 ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen) argument
[all...]
H A Ddigest-libc.c40 int alg; member in struct:ssh_digest_ctx
110 ssh_digest_by_alg(int alg) argument
112 if (alg < 0 || alg >= SSH_DIGEST_MAX)
114 if (digests[alg].id != alg) /* sanity */
116 return &(digests[alg]);
122 int alg; local
124 for (alg = 0; alg < SSH_DIGEST_MA
132 ssh_digest_alg_name(int alg) argument
140 ssh_digest_bytes(int alg) argument
156 ssh_digest_start(int alg) argument
231 ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen) argument
245 ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen) argument
[all...]
H A Ddigest.h40 const char *ssh_digest_alg_name(int alg);
43 size_t ssh_digest_bytes(int alg);
53 int ssh_digest_memory(int alg, const void *m, size_t mlen,
57 int ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
61 struct ssh_digest_ctx *ssh_digest_start(int alg);
H A Dhmac.h23 size_t ssh_hmac_bytes(int alg);
27 struct ssh_hmac_ctx *ssh_hmac_start(int alg);
/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/include/prov/
H A Dciphercommon_aead.h14 #define IMPLEMENT_aead_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
16 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
21 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
22 static void * alg##kbits##lc##_newctx(void *provctx) \
24 return alg##_##lc##_newctx(provctx, kbits); \
26 const OSSL_DISPATCH ossl_##alg##kbits##lc##_functions[] = { \
27 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))alg##kbits##lc##_newctx }, \
28 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void))alg##_##lc##_freectx }, \
35 (void (*)(void)) alg##
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/engine/
H A Deng_fat.c49 static int int_def_cb(const char *alg, int len, void *arg) argument
52 if (alg == NULL)
54 if (strncmp(alg, "ALL", len) == 0)
56 else if (strncmp(alg, "RSA", len) == 0)
58 else if (strncmp(alg, "DSA", len) == 0)
60 else if (strncmp(alg, "DH", len) == 0)
62 else if (strncmp(alg, "EC", len) == 0)
64 else if (strncmp(alg, "RAND", len) == 0)
66 else if (strncmp(alg, "CIPHERS", len) == 0)
68 else if (strncmp(alg, "DIGEST
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/engine/
H A Deng_fat.c50 static int int_def_cb(const char *alg, int len, void *arg) argument
53 if (alg == NULL)
55 if (strncmp(alg, "ALL", len) == 0)
57 else if (strncmp(alg, "RSA", len) == 0)
59 else if (strncmp(alg, "DSA", len) == 0)
61 else if (strncmp(alg, "DH", len) == 0)
63 else if (strncmp(alg, "EC", len) == 0)
65 else if (strncmp(alg, "RAND", len) == 0)
67 else if (strncmp(alg, "CIPHERS", len) == 0)
69 else if (strncmp(alg, "DIGEST
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dx_algor.c31 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
33 if (alg == NULL)
37 if (alg->parameter == NULL)
38 alg->parameter = ASN1_TYPE_new();
39 if (alg->parameter == NULL)
43 ASN1_OBJECT_free(alg->algorithm);
44 alg->algorithm = aobj;
49 ASN1_TYPE_free(alg->parameter);
50 alg->parameter = NULL;
52 ASN1_TYPE_set(alg
[all...]
/netbsd-current/external/mpl/bind/dist/bin/tests/system/enginepkcs11/
H A Dsetup.sh38 alg="$1"
44 $KEYFRLAB -K $dir -E pkcs11 -a $alg -l "token=softhsm2-enginepkcs11;object=${id}-${zone};pin-source=$PWD/pin" "$@" $zone >>keyfromlabel.out.$zone.$id 2>keyfromlabel.err.$zone.$id || return 1
54 alg=$(echo "$algtypebits" | cut -f 1 -d :)
58 if $SHELL ../testcrypto.sh $alg; then
59 zone="$alg.example"
60 zonefile="zone.$alg.example.db"
63 echo_i "Generate keys $alg $type:$bits for zone $zone"
68 echo_i "Get ZSK $alg $zone $type:$bits"
69 zsk1=$(keyfromlabel $alg $zone enginepkcs11-zsk $dir)
72 echo_i "Get KSK $alg
[all...]
/netbsd-current/external/mpl/bind/dist/bin/tests/system/keyfromlabel/
H A Dtests.sh33 alg="$1"
38 $KEYFRLAB -E pkcs11 -a $alg -l "token=softhsm2-keyfromlabel;object=${id}-${zone};pin-source=$PWD/pin" "$@" $zone >>keyfromlabel.out.$zone.$id 2>>/dev/null || return 1
46 alg=$(echo "$algtypebits" | cut -f 1 -d :)
50 if $SHELL ../testcrypto.sh $alg; then
51 zone="$alg.example"
52 zonefile="zone.$alg.example.db"
55 echo_i "Generate keys $alg $type:$bits for zone $zone"
64 echo_i "Get ZSK $alg $zone $type:$bits"
66 zsk=$(keyfromlabel $alg $zone keyfromlabel-zsk)
71 echo_i "Get KSK $alg
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/property/
H A Dproperty.c106 ALGORITHM *alg);
224 static void impl_cache_flush_alg(ossl_uintmax_t idx, ALGORITHM *alg) argument
226 lh_QUERY_doall(alg->cache, &impl_cache_free);
227 lh_QUERY_flush(alg->cache);
292 static int ossl_method_store_insert(OSSL_METHOD_STORE *store, ALGORITHM *alg) argument
294 return ossl_sa_ALGORITHM_set(store->algs, alg->nid, alg);
302 ALGORITHM *alg = NULL; local
345 alg = ossl_method_store_retrieve(store, nid);
346 if (alg
382 ALGORITHM *alg = NULL; local
422 alg_cleanup_by_provider(ossl_uintmax_t idx, ALGORITHM *alg, void *arg) argument
465 alg_do_one(ALGORITHM *alg, IMPLEMENTATION *impl, void (*fn)(int id, void *method, void *fnarg), void *fnarg) argument
477 alg_do_each(ossl_uintmax_t idx, ALGORITHM *alg, void *arg) argument
506 ALGORITHM *alg; local
584 ossl_method_cache_flush_alg(OSSL_METHOD_STORE *store, ALGORITHM *alg) argument
593 ALGORITHM *alg = ossl_method_store_retrieve(store, nid); local
650 impl_cache_flush_one_alg(ossl_uintmax_t idx, ALGORITHM *alg, void *v) argument
683 ALGORITHM *alg; local
716 ALGORITHM *alg; local
[all...]
/netbsd-current/external/bsd/blocklist/etc/
H A Dnpf.conf6 alg "icmp"
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/asn1/
H A Dx_algor.c29 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
31 if (alg == NULL)
35 if (alg->parameter == NULL)
36 alg->parameter = ASN1_TYPE_new();
37 if (alg->parameter == NULL)
41 ASN1_OBJECT_free(alg->algorithm);
42 alg->algorithm = aobj;
47 ASN1_TYPE_free(alg->parameter);
48 alg->parameter = NULL;
50 ASN1_TYPE_set(alg
[all...]
/netbsd-current/sys/net/npf/
H A Dnpf_alg.c95 npf_alg_t *alg = &aset->alg_list[i]; local
96 const char *aname = alg->na_name;
99 return alg;
107 npf_alg_t *alg; local
110 if ((alg = npf_alg_lookup(npf, name)) == NULL) {
120 alg = npf_alg_lookup(npf, name);
123 return alg;
134 npf_alg_t *alg; local
145 alg = &aset->alg_list[i];
146 if (alg
180 npf_alg_unregister(npf_t *npf, npf_alg_t *alg) argument
198 npf_ruleset_freealg(npf_config_natset(npf), alg); local
321 npf_alg_destroy(npf_t *npf, npf_alg_t *alg, npf_nat_t *nat, npf_conn_t *con) argument
343 const npf_alg_t *alg = &aset->alg_list[i]; local
[all...]
/netbsd-current/external/mpl/bind/dist/contrib/scripts/
H A Dcheck-secure-delegation.pl.in96 foreach $alg ( keys %dnskeyalg ) {
97 print "Missing $zone DNSKEY RRSIG for algorithm $alg\n"
98 if (!exists($dnskeygood{$alg}));
104 foreach $alg ( keys %algorithms ) {
105 if (exists($dsgood{$alg})) {
106 print "$zone algorithm $alg good " .
109 print "$zone algorithm $alg bad " .
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/pkcs7/
H A Dpk7_attr.c53 X509_ALGOR *alg; local
55 if ((alg = X509_ALGOR_new()) == NULL) {
59 ASN1_OBJECT_free(alg->algorithm);
60 alg->algorithm = OBJ_nid2obj(nid);
62 if ((alg->parameter = ASN1_TYPE_new()) == NULL) {
71 alg->parameter->value.integer = nbit;
72 alg->parameter->type = V_ASN1_INTEGER;
75 if (!sk_X509_ALGOR_push(sk, alg)) {
82 X509_ALGOR_free(alg);
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/pkcs7/
H A Dpk7_attr.c53 X509_ALGOR *alg; local
55 if ((alg = X509_ALGOR_new()) == NULL) {
59 ASN1_OBJECT_free(alg->algorithm);
60 alg->algorithm = OBJ_nid2obj(nid);
62 if ((alg->parameter = ASN1_TYPE_new()) == NULL) {
71 alg->parameter->value.integer = nbit;
72 alg->parameter->type = V_ASN1_INTEGER;
75 if (!sk_X509_ALGOR_push(sk, alg)) {
82 X509_ALGOR_free(alg);
/netbsd-current/external/mpl/bind/dist/lib/dns/
H A Dtsig_p.h34 dns__tsig_algvalid(unsigned int alg);

Completed in 500 milliseconds

1234567891011>>