Home
last modified time | relevance | path

Searched refs:algor (Results 1 – 21 of 21) sorted by relevance

/external/openssl/crypto/pkcs12/
Dp12_decr.c71 unsigned char * PKCS12_pbe_crypt(X509_ALGOR *algor, const char *pass, in PKCS12_pbe_crypt() argument
81 if (!EVP_PBE_CipherInit(algor->algorithm, pass, passlen, in PKCS12_pbe_crypt()
82 algor->parameter, &ctx, en_de)) { in PKCS12_pbe_crypt()
120 void * PKCS12_item_decrypt_d2i(X509_ALGOR *algor, const ASN1_ITEM *it, in PKCS12_item_decrypt_d2i() argument
128 if (!PKCS12_pbe_crypt(algor, pass, passlen, oct->data, oct->length, in PKCS12_item_decrypt_d2i()
157 ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor, const ASN1_ITEM *it, in PKCS12_item_i2d_encrypt() argument
173 if (!PKCS12_pbe_crypt(algor, pass, passlen, in, inlen, &oct->data, in PKCS12_item_i2d_encrypt()
Dp12_mutl.c87 EVP_get_digestbyobj (p12->mac->dinfo->algor->algorithm))) { in PKCS12_gen_mac()
181 p12->mac->dinfo->algor->algorithm = OBJ_nid2obj(EVP_MD_type(md_type)); in PKCS12_setup_mac()
182 if (!(p12->mac->dinfo->algor->parameter = ASN1_TYPE_new())) { in PKCS12_setup_mac()
186 p12->mac->dinfo->algor->parameter->type = V_ASN1_NULL; in PKCS12_setup_mac()
Dp12_p8e.c82 X509_ALGOR_free(p8->algor); in PKCS8_encrypt()
83 p8->algor = pbe; in PKCS8_encrypt()
Dp12_p8d.c65 return PKCS12_item_decrypt_d2i(p8->algor, ASN1_ITEM_rptr(PKCS8_PRIV_KEY_INFO), pass, in PKCS8_decrypt()
Dpkcs12.h209 unsigned char *PKCS12_pbe_crypt(X509_ALGOR *algor, const char *pass,
212 void * PKCS12_item_decrypt_d2i(X509_ALGOR *algor, const ASN1_ITEM *it,
214 ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor, const ASN1_ITEM *it,
Dp12_npas.c201 if (!alg_get(bag->value.shkeybag->algor, &p8_nid, &p8_iter, in newpass_bag()
/external/openssl/crypto/rsa/
Drsa_sign.c78 X509_ALGOR algor; in RSA_sign() local
102 sig.algor= &algor; in RSA_sign()
103 sig.algor->algorithm=OBJ_nid2obj(type); in RSA_sign()
104 if (sig.algor->algorithm == NULL) in RSA_sign()
109 if (sig.algor->algorithm->length == 0) in RSA_sign()
116 sig.algor->parameter= &parameter; in RSA_sign()
239 if(sig->algor->parameter in int_rsa_verify()
240 && ASN1_TYPE_get(sig->algor->parameter) != V_ASN1_NULL) in int_rsa_verify()
246 sigtype=OBJ_obj2nid(sig->algor->algorithm); in int_rsa_verify()
/external/openssl/crypto/asn1/
Dx_algor.c113 X509_ALGOR *algor) in X509_ALGOR_get0() argument
116 *paobj = algor->algorithm; in X509_ALGOR_get0()
119 if (algor->parameter == NULL) in X509_ALGOR_get0()
125 *pptype = algor->parameter->type; in X509_ALGOR_get0()
127 *ppval = algor->parameter->value.ptr; in X509_ALGOR_get0()
Dn_pkey.c75 X509_ALGOR *algor; member
101 ASN1_SIMPLE(NETSCAPE_PKEY, algor, X509_ALGOR),
140 pkey->algor->algorithm=OBJ_nid2obj(NID_rsaEncryption); in i2d_RSA_NET()
141 if ((pkey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err; in i2d_RSA_NET()
142 pkey->algor->parameter->type=V_ASN1_NULL; in i2d_RSA_NET()
158 enckey->enckey->algor->algorithm=OBJ_nid2obj(NID_rc4); in i2d_RSA_NET()
159 if ((enckey->enckey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err; in i2d_RSA_NET()
160 enckey->enckey->algor->parameter->type=V_ASN1_NULL; in i2d_RSA_NET()
268 if (OBJ_obj2nid(enckey->enckey->algor->algorithm) != NID_rc4) in d2i_RSA_NET()
Dx_pubkey.c84 ASN1_SIMPLE(X509_PUBKEY, algor, X509_ALGOR),
153 if (!EVP_PKEY_set_type(ret, OBJ_obj2nid(key->algor->algorithm))) in X509_PUBKEY_get()
355 if (!X509_ALGOR_set0(pub->algor, aobj, ptype, pval)) in X509_PUBKEY_set0_param()
376 *ppkalg = pub->algor->algorithm; in X509_PUBKEY_get0_param()
383 *pa = pub->algor; in X509_PUBKEY_get0_param()
Dp5_pbe.c77 int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
119 if (X509_ALGOR_set0(algor, OBJ_nid2obj(alg), V_ASN1_SEQUENCE, pbe_str))
Dx_sig.c65 ASN1_SIMPLE(X509_SIG, algor, X509_ALGOR),
Dt_spki.c80 i=OBJ_obj2nid(spki->spkac->pubkey->algor->algorithm); in NETSCAPE_SPKI_print()
Dt_req.c140 if (i2a_ASN1_OBJECT(bp, ri->pubkey->algor->algorithm) <= 0) in X509_REQ_print_ex()
Dt_x509.c210 if (i2a_ASN1_OBJECT(bp, ci->key->algor->algorithm) <= 0) in X509_print_ex()
/external/openssl/include/openssl/
Dpkcs12.h209 unsigned char *PKCS12_pbe_crypt(X509_ALGOR *algor, const char *pass,
212 void * PKCS12_item_decrypt_d2i(X509_ALGOR *algor, const ASN1_ITEM *it,
214 ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor, const ASN1_ITEM *it,
Dx509.h162 X509_ALGOR *algor; member
169 X509_ALGOR *algor; member
769 X509_ALGOR *algor);
1161 int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
Dsafestack.h201 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
202 (STACK_OF(type) *)PKCS12_decrypt_d2i(algor, \
2422 #define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
2423 …SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct),…
2425 #define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
2426 SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))
/external/openssl/crypto/x509/
Dx509.h162 X509_ALGOR *algor; member
169 X509_ALGOR *algor; member
769 X509_ALGOR *algor);
1161 int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
/external/openssl/apps/
Dpkcs12.c776 alg_print (bio_err, bag->value.shkeybag->algor); in dump_certs_pkeys_bag()
/external/openssl/crypto/stack/
Dsafestack.h201 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
202 (STACK_OF(type) *)PKCS12_decrypt_d2i(algor, \
2422 #define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
2423 …SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct),…
2425 #define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
2426 SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))