Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 25 of 113) sorted by relevance

12345

/openssl/crypto/asn1/
H A Dx_algor.c33 if (alg == NULL)
40 ASN1_OBJECT_free(alg->algorithm);
41 alg->algorithm = aobj;
47 alg->parameter = NULL;
56 X509_ALGOR *alg = NULL; in ossl_X509_ALGOR_from_nid() local
63 return alg; in ossl_X509_ALGOR_from_nid()
67 X509_ALGOR_free(alg); in ossl_X509_ALGOR_from_nid()
144 X509_ALGOR *alg; in ossl_x509_algor_new_from_md() local
151 X509_ALGOR_set_md(alg, md); in ossl_x509_algor_new_from_md()
152 *palg = alg; in ossl_x509_algor_new_from_md()
[all …]
H A Dp5_pbe.c28 int PKCS5_pbe_set0_algor_ex(X509_ALGOR *algor, int alg, int iter,
72 if (X509_ALGOR_set0(algor, OBJ_nid2obj(alg), V_ASN1_SEQUENCE, pbe_str))
82 int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter, in PKCS5_pbe_set0_algor() argument
85 return PKCS5_pbe_set0_algor_ex(algor, alg, iter, salt, saltlen, NULL); in PKCS5_pbe_set0_algor()
90 X509_ALGOR *PKCS5_pbe_set_ex(int alg, int iter, in PKCS5_pbe_set_ex() argument
101 if (PKCS5_pbe_set0_algor_ex(ret, alg, iter, salt, saltlen, ctx)) in PKCS5_pbe_set_ex()
108 X509_ALGOR *PKCS5_pbe_set(int alg, int iter, in PKCS5_pbe_set() argument
111 return PKCS5_pbe_set_ex(alg, iter, salt, saltlen, NULL); in PKCS5_pbe_set()
H A Da_verify.c87 int ASN1_item_verify(const ASN1_ITEM *it, const X509_ALGOR *alg, in ASN1_item_verify() argument
91 return ASN1_item_verify_ex(it, alg, signature, data, NULL, pkey, NULL, NULL); in ASN1_item_verify()
94 int ASN1_item_verify_ex(const ASN1_ITEM *it, const X509_ALGOR *alg, in ASN1_item_verify_ex() argument
103 rv = ASN1_item_verify_ctx(it, alg, signature, data, ctx); in ASN1_item_verify_ex()
110 int ASN1_item_verify_ctx(const ASN1_ITEM *it, const X509_ALGOR *alg, in ASN1_item_verify_ctx() argument
133 if (!OBJ_find_sigid_algs(OBJ_obj2nid(alg->algorithm), &mdnid, &pknid)) { in ASN1_item_verify_ctx()
143 ret = pkey->ameth->item_verify(ctx, it, data, alg, signature, pkey); in ASN1_item_verify_ctx()
169 if (ossl_rsa_pss_to_ctx(ctx, NULL, alg, pkey) <= 0) { in ASN1_item_verify_ctx()
/openssl/crypto/property/
H A Dproperty.c289 return ossl_sa_ALGORITHM_set(store->algs, alg->nid, alg); in ossl_method_store_insert()
389 if (alg == NULL) { in ossl_method_store_add()
390 if ((alg = OPENSSL_zalloc(sizeof(*alg))) == NULL in ossl_method_store_add()
444 if (alg == NULL) { in ossl_method_store_remove()
567 ALGORITHM *alg; in ossl_method_store_do_all() local
622 ALGORITHM *alg; in ossl_method_store_fetch() local
747 if (alg != NULL) in ossl_method_cache_flush()
838 ALGORITHM *alg; in ossl_method_store_cache_get() local
848 if (alg == NULL) in ossl_method_store_cache_get()
871 ALGORITHM *alg; in ossl_method_store_cache_set() local
[all …]
/openssl/providers/implementations/ciphers/
H A Dcipher_cts.h13 #define IMPLEMENT_cts_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \ argument
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_##kbits##_##lcmode##_get_params }, \
[all …]
H A Dcipher_aes_gcm_siv.c280 #define IMPLEMENT_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) … argument
281 static OSSL_FUNC_cipher_newctx_fn ossl_##alg##kbits##_##lc##_newctx; …
282 static OSSL_FUNC_cipher_freectx_fn ossl_##alg##_##lc##_freectx; …
283 static OSSL_FUNC_cipher_dupctx_fn ossl_##alg##_##lc##_dupctx; …
284 static OSSL_FUNC_cipher_encrypt_init_fn ossl_##alg##_##lc##_einit; …
285 static OSSL_FUNC_cipher_decrypt_init_fn ossl_##alg##_##lc##_dinit; …
286 static OSSL_FUNC_cipher_update_fn ossl_##alg##_##lc##_stream_update; …
287 static OSSL_FUNC_cipher_final_fn ossl_##alg##_##lc##_stream_final; …
288 static OSSL_FUNC_cipher_cipher_fn ossl_##alg##_##lc##_cipher; …
289 static OSSL_FUNC_cipher_get_params_fn ossl_##alg##_##kbits##_##lc##_get_params; …
[all …]
H A Dcipher_rc4.c71 #define IMPLEMENT_cipher(alg, UCALG, flags, kbits, blkbits, ivbits, typ) \ argument
72 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_get_params; \
73 static int alg##_##kbits##_get_params(OSSL_PARAM params[]) \
78 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_newctx; \
79 static void *alg##_##kbits##_newctx(void *provctx) \
87 ossl_prov_cipher_hw_##alg(kbits), NULL); \
91 const OSSL_DISPATCH ossl_##alg##kbits##_functions[] = { \
93 (void (*)(void)) alg##_##kbits##_newctx }, \
94 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
95 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupctx }, \
[all …]
H A Dcipher_aes_siv.c253 #define IMPLEMENT_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
254 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
255 static OSSL_FUNC_cipher_freectx_fn alg##_##lc##_freectx; \
262 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
263 static OSSL_FUNC_cipher_get_ctx_params_fn alg##_##lc##_get_ctx_params; \
265 alg##_##lc##_gettable_ctx_params; \
266 static OSSL_FUNC_cipher_set_ctx_params_fn alg##_##lc##_set_ctx_params; \
268 alg##_##lc##_settable_ctx_params; \
269 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
274 static void *alg##kbits##lc##_newctx(void *provctx) \
[all …]
H A Dcipher_rc5.c130 #define IMPLEMENT_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \ argument
132 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
133 static int alg##_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
138 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_##lcmode##_newctx; \
139 static void *alg##_##kbits##_##lcmode##_newctx(void *provctx) \
148 ossl_prov_cipher_hw_##alg##_##lcmode(kbits),\
154 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
156 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
157 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
158 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupctx }, \
[all …]
H A Dcipher_rc2.c234 #define IMPLEMENT_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, blkbits, \ argument
236 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
237 static int alg##_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
242 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_##lcmode##_newctx; \
243 static void *alg##_##kbits##_##lcmode##_newctx(void *provctx) \
252 ossl_prov_cipher_hw_##alg##_##lcmode(kbits), \
258 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
260 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
261 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
262 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupctx }, \
[all …]
/openssl/ssl/
H A Dssl_cert_comp.c25 switch (alg) { in ossl_calculate_comp_expansion()
64 if (!ossl_comp_has_alg(alg) in OSSL_COMP_CERT_new()
73 ret->alg = alg; in OSSL_COMP_CERT_new()
98 switch (alg) { in OSSL_COMP_CERT_from_uncompressed_data()
240 || !ossl_comp_has_alg(alg)) in ssl_compress_one_cert()
251 cpk->comp_cert[alg] = comp_cert; in ssl_compress_one_cert()
261 int alg; in ssl_compress_certs() local
275 alg = sc->cert_comp_prefs[i]; in ssl_compress_certs()
288 if (cpks[j].comp_cert[alg]->len >= cpks[j].comp_cert[alg]->orig_len) { in ssl_compress_certs()
315 || !ossl_comp_has_alg(alg)) in ssl_get_compressed_cert()
[all …]
/openssl/providers/implementations/include/prov/
H A Dciphercommon_aead.h18 # define IMPLEMENT_aead_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
19 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
20 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
25 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
26 static void * alg##kbits##lc##_newctx(void *provctx) \
28 return alg##_##lc##_newctx(provctx, kbits); \
30 static void * alg##kbits##lc##_dupctx(void *src) \
32 return alg##_##lc##_dupctx(src); \
34 const OSSL_DISPATCH ossl_##alg##kbits##lc##_functions[] = { \
35 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))alg##kbits##lc##_newctx }, \
[all …]
H A Dciphercommon.h134 # define IMPLEMENT_generic_cipher_func(alg, UCALG, lcmode, UCMODE, flags, kbits,\ argument
136 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
138 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
139 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
140 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupctx }, \
147 (void (*)(void)) alg##_##kbits##_##lcmode##_get_params }, \
163 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
165 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
166 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
167 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupctx }, \
[all …]
/openssl/crypto/engine/
H A Deng_fat.c53 if (alg == NULL) in int_def_cb()
55 if (strncmp(alg, "ALL", len) == 0) in int_def_cb()
57 else if (strncmp(alg, "RSA", len) == 0) in int_def_cb()
59 else if (strncmp(alg, "DSA", len) == 0) in int_def_cb()
61 else if (strncmp(alg, "DH", len) == 0) in int_def_cb()
63 else if (strncmp(alg, "EC", len) == 0) in int_def_cb()
65 else if (strncmp(alg, "RAND", len) == 0) in int_def_cb()
67 else if (strncmp(alg, "CIPHERS", len) == 0) in int_def_cb()
69 else if (strncmp(alg, "DIGESTS", len) == 0) in int_def_cb()
71 else if (strncmp(alg, "PKEY", len) == 0) in int_def_cb()
[all …]
/openssl/crypto/cms/
H A Dcms_rsa.c19 static RSA_OAEP_PARAMS *rsa_oaep_decode(const X509_ALGOR *alg) in rsa_oaep_decode() argument
24 alg->parameter); in rsa_oaep_decode()
120 X509_ALGOR *alg; in rsa_cms_encrypt() local
132 return X509_ALGOR_set0(alg, OBJ_nid2obj(NID_rsaEncryption), in rsa_cms_encrypt()
198 X509_ALGOR *alg; in rsa_cms_sign() local
205 CMS_SignerInfo_get0_algs(si, NULL, NULL, NULL, &alg); in rsa_cms_sign()
239 if (d2i_X509_ALGOR(&alg, &pp, aid_len) == NULL) in rsa_cms_sign()
247 X509_ALGOR *alg; in rsa_cms_verify() local
251 CMS_SignerInfo_get0_algs(si, NULL, NULL, NULL, &alg); in rsa_cms_verify()
252 nid = OBJ_obj2nid(alg->algorithm); in rsa_cms_verify()
[all …]
H A Dcms_dh.c21 X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) in dh_cms_set_peerkey() argument
34 X509_ALGOR_get0(&aoid, &atype, &aval, alg); in dh_cms_set_peerkey()
84 X509_ALGOR *alg, *kekalg = NULL; in dh_cms_set_shared_info() local
94 if (!CMS_RecipientInfo_kari_get0_alg(ri, &alg, &ukm)) in dh_cms_set_shared_info()
101 if (OBJ_obj2nid(alg->algorithm) != NID_id_smime_alg_ESDH) { in dh_cms_set_shared_info()
110 if (alg->parameter->type != V_ASN1_SEQUENCE) in dh_cms_set_shared_info()
113 p = alg->parameter->value.sequence->data; in dh_cms_set_shared_info()
114 plen = alg->parameter->value.sequence->length; in dh_cms_set_shared_info()
170 X509_ALGOR *alg; in dh_cms_decrypt() local
176 if (alg == NULL || pubkey == NULL) in dh_cms_decrypt()
[all …]
H A Dcms_ec.c84 X509_ALGOR_get0(&aoid, &atype, &aval, alg); in ecdh_cms_set_peerkey()
162 X509_ALGOR *alg, *kekalg = NULL; in ecdh_cms_set_shared_info() local
171 if (!CMS_RecipientInfo_kari_get0_alg(ri, &alg, &ukm)) in ecdh_cms_set_shared_info()
174 if (!ecdh_cms_set_kdf_param(pctx, OBJ_obj2nid(alg->algorithm))) { in ecdh_cms_set_shared_info()
179 if (alg->parameter->type != V_ASN1_SEQUENCE) in ecdh_cms_set_shared_info()
182 p = alg->parameter->value.sequence->data; in ecdh_cms_set_shared_info()
183 plen = alg->parameter->value.sequence->length; in ecdh_cms_set_shared_info()
229 X509_ALGOR *alg; in ecdh_cms_decrypt() local
232 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &alg, &pubkey, in ecdh_cms_decrypt()
235 if (alg == NULL || pubkey == NULL) in ecdh_cms_decrypt()
[all …]
/openssl/doc/man3/
H A DEVP_PKEY_CTX_get_algor.pod29 int EVP_TYPE_CTX_get_algor(EVP_TYPE_CTX *ctx, X509_ALGOR **alg);
30 int EVP_TYPE_CTX_get_algor_params(EVP_TYPE_CTX *ctx, X509_ALGOR *alg);
31 int EVP_TYPE_CTX_set_algor_params(EVP_TYPE_CTX *ctx, const X509_ALGOR *alg);
40 I<*alg> with it.
41 If I<alg> is NULL, calling this function will serve to see if calling this
43 If I<*alg> is NULL, space will be allocated automatically, and assigned to
44 I<*alg>.
48 populates I<alg->parameters> with it.
49 If I<alg> is NULL, calling this function will serve to see if calling this
52 assigned to I<< alg->parameters >>.
[all …]
H A DX509_ALGOR_dup.pod14 X509_ALGOR *X509_ALGOR_dup(X509_ALGOR *alg);
15 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval);
17 const void **ppval, const X509_ALGOR *alg);
18 void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);
24 X509_ALGOR_dup() returns a copy of I<alg>.
26 X509_ALGOR_set0() sets the algorithm OID of I<alg> to I<aobj> and the
32 otherwise ownership remains with the caller and I<alg> remains untouched.
36 and I<*ppval> from the B<AlgorithmIdentifier> I<alg>.
38 X509_ALGOR_set_md() sets the B<AlgorithmIdentifier> I<alg> to appropriate
/openssl/crypto/evp/
H A Dmac_meth.c198 void *alg; in EVP_MAC_gettable_ctx_params() local
202 alg = ossl_provider_ctx(EVP_MAC_get0_provider(mac)); in EVP_MAC_gettable_ctx_params()
203 return mac->gettable_ctx_params(NULL, alg); in EVP_MAC_gettable_ctx_params()
208 void *alg; in EVP_MAC_settable_ctx_params() local
212 alg = ossl_provider_ctx(EVP_MAC_get0_provider(mac)); in EVP_MAC_settable_ctx_params()
213 return mac->settable_ctx_params(NULL, alg); in EVP_MAC_settable_ctx_params()
218 void *alg; in EVP_MAC_CTX_gettable_params() local
222 alg = ossl_provider_ctx(EVP_MAC_get0_provider(ctx->meth)); in EVP_MAC_CTX_gettable_params()
223 return ctx->meth->gettable_ctx_params(ctx->algctx, alg); in EVP_MAC_CTX_gettable_params()
228 void *alg; in EVP_MAC_CTX_settable_params() local
[all …]
H A Dkdf_meth.c186 void *alg; in EVP_KDF_gettable_ctx_params() local
190 alg = ossl_provider_ctx(EVP_KDF_get0_provider(kdf)); in EVP_KDF_gettable_ctx_params()
191 return kdf->gettable_ctx_params(NULL, alg); in EVP_KDF_gettable_ctx_params()
196 void *alg; in EVP_KDF_settable_ctx_params() local
200 alg = ossl_provider_ctx(EVP_KDF_get0_provider(kdf)); in EVP_KDF_settable_ctx_params()
201 return kdf->settable_ctx_params(NULL, alg); in EVP_KDF_settable_ctx_params()
206 void *alg; in EVP_KDF_CTX_gettable_params() local
210 alg = ossl_provider_ctx(EVP_KDF_get0_provider(ctx->meth)); in EVP_KDF_CTX_gettable_params()
211 return ctx->meth->gettable_ctx_params(ctx->algctx, alg); in EVP_KDF_CTX_gettable_params()
216 void *alg; in EVP_KDF_CTX_settable_params() local
[all …]
/openssl/crypto/pkcs7/
H A Dpk7_attr.c61 X509_ALGOR *alg; in PKCS7_simple_smimecap() local
63 if ((alg = X509_ALGOR_new()) == NULL) { in PKCS7_simple_smimecap()
67 ASN1_OBJECT_free(alg->algorithm); in PKCS7_simple_smimecap()
68 alg->algorithm = OBJ_nid2obj(nid); in PKCS7_simple_smimecap()
70 if ((alg->parameter = ASN1_TYPE_new()) == NULL) { in PKCS7_simple_smimecap()
82 alg->parameter->value.integer = nbit; in PKCS7_simple_smimecap()
83 alg->parameter->type = V_ASN1_INTEGER; in PKCS7_simple_smimecap()
86 if (!sk_X509_ALGOR_push(sk, alg)) { in PKCS7_simple_smimecap()
93 X509_ALGOR_free(alg); in PKCS7_simple_smimecap()
H A Dpk7_lib.c192 X509_ALGOR *alg; in PKCS7_add_signer() local
215 alg = sk_X509_ALGOR_value(md_sk, i); in PKCS7_add_signer()
226 X509_ALGOR_free(alg); in PKCS7_add_signer()
237 alg->algorithm = OBJ_dup(obj); in PKCS7_add_signer()
238 alg->parameter->type = V_ASN1_NULL; in PKCS7_add_signer()
239 if (alg->algorithm == NULL || !sk_X509_ALGOR_push(md_sk, alg)) { in PKCS7_add_signer()
240 X509_ALGOR_free(alg); in PKCS7_add_signer()
329 X509_ALGOR *alg = NULL; in pkcs7_rsa_sign_verify_setup() local
332 if (alg != NULL) in pkcs7_rsa_sign_verify_setup()
606 X509_ALGOR *alg = NULL; in pkcs7_rsa_encrypt_decrypt_setup() local
[all …]
/openssl/crypto/perlasm/
H A Dsparcv9_modes.pl42 my ($alg,$bits) = @_;
47 ${alg}${bits}_t4_cbc_encrypt:
255 .size ${alg}${bits}_t4_cbc_encrypt,.-${alg}${bits}_t4_cbc_encrypt
260 my ($alg,$bits) = @_;
265 ${alg}${bits}_t4_cbc_decrypt:
617 .size ${alg}${bits}_t4_cbc_decrypt,.-${alg}${bits}_t4_cbc_decrypt
622 my ($alg,$bits) = @_;
919 .size ${alg}${bits}_t4_ctr32_encrypt,.-${alg}${bits}_t4_ctr32_encrypt
924 my ($alg,$bits,$dir) = @_;
937 call ${alg}_t4_encrypt
[all …]
/openssl/crypto/ocsp/
H A Docsp_lib.c49 X509_ALGOR *alg; in OCSP_cert_id_new() local
56 alg = &cid->hashAlgorithm; in OCSP_cert_id_new()
57 ASN1_OBJECT_free(alg->algorithm); in OCSP_cert_id_new()
62 if ((alg->algorithm = OBJ_nid2obj(nid)) == NULL) in OCSP_cert_id_new()
64 if ((alg->parameter = ASN1_TYPE_new()) == NULL) in OCSP_cert_id_new()
66 alg->parameter->type = V_ASN1_NULL; in OCSP_cert_id_new()

Completed in 32 milliseconds

12345