Home
last modified time | relevance | path

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

/external/openssl/crypto/rsa/
Drsa_sign.c77 X509_ALGOR algor; in RSA_sign() local
93 sig.algor= &algor; in RSA_sign()
94 sig.algor->algorithm=OBJ_nid2obj(type); in RSA_sign()
95 if (sig.algor->algorithm == NULL) in RSA_sign()
100 if (sig.algor->algorithm->length == 0) in RSA_sign()
107 sig.algor->parameter= &parameter; in RSA_sign()
198 if(sig->algor->parameter in RSA_verify()
199 && ASN1_TYPE_get(sig->algor->parameter) != V_ASN1_NULL) in RSA_verify()
205 sigtype=OBJ_obj2nid(sig->algor->algorithm); in RSA_verify()
/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()
113 void * PKCS12_item_decrypt_d2i(X509_ALGOR *algor, const ASN1_ITEM *it, in PKCS12_item_decrypt_d2i() argument
121 if (!PKCS12_pbe_crypt(algor, pass, passlen, oct->data, oct->length, in PKCS12_item_decrypt_d2i()
150 ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor, const ASN1_ITEM *it, in PKCS12_item_i2d_encrypt() argument
166 if (!PKCS12_pbe_crypt(algor, pass, passlen, in, inlen, &oct->data, in PKCS12_item_i2d_encrypt()
Dp12_mutl.c86 EVP_get_digestbyobj (p12->mac->dinfo->algor->algorithm))) { in PKCS12_gen_mac()
173 p12->mac->dinfo->algor->algorithm = OBJ_nid2obj(EVP_MD_type(md_type)); in PKCS12_setup_mac()
174 if (!(p12->mac->dinfo->algor->parameter = ASN1_TYPE_new())) { in PKCS12_setup_mac()
178 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()
Dpkcs12.h211 unsigned char *PKCS12_pbe_crypt(X509_ALGOR *algor, const char *pass,
214 void * PKCS12_item_decrypt_d2i(X509_ALGOR *algor, const ASN1_ITEM *it,
216 ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor, const ASN1_ITEM *it,
Dp12_p8d.c65 return PKCS12_item_decrypt_d2i(p8->algor, ASN1_ITEM_rptr(PKCS8_PRIV_KEY_INFO), pass, in PKCS8_decrypt()
Dp12_npas.c196 alg_get(bag->value.shkeybag->algor, &p8_nid, &p8_iter, &p8_saltlen); in newpass_bag()
/external/openssl/crypto/asn1/
Dp5_pbe.c81 X509_ALGOR *algor; variable
118 if (!(algor = X509_ALGOR_new())) {
122 ASN1_OBJECT_free(algor->algorithm);
123 algor->algorithm = al;
124 algor->parameter = astype;
126 return (algor);
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),
139 pkey->algor->algorithm=OBJ_nid2obj(NID_rsaEncryption); in i2d_RSA_NET()
140 if ((pkey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err; in i2d_RSA_NET()
141 pkey->algor->parameter->type=V_ASN1_NULL; in i2d_RSA_NET()
157 enckey->enckey->algor->algorithm=OBJ_nid2obj(NID_rc4); in i2d_RSA_NET()
158 if ((enckey->enckey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err; in i2d_RSA_NET()
159 enckey->enckey->algor->parameter->type=V_ASN1_NULL; in i2d_RSA_NET()
263 if (OBJ_obj2nid(enckey->enckey->algor->algorithm) != NID_rc4) in d2i_RSA_NET()
Dx_pubkey.c82 ASN1_SIMPLE(X509_PUBKEY, algor, X509_ALGOR),
99 a=pk->algor;
279 type=OBJ_obj2nid(key->algor->algorithm); in X509_PUBKEY_get()
290 a=key->algor; in X509_PUBKEY_get()
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.c206 if (i2a_ASN1_OBJECT(bp, ci->key->algor->algorithm) <= 0) in X509_print_ex()
/external/openssl/include/openssl/
Dpkcs12.h211 unsigned char *PKCS12_pbe_crypt(X509_ALGOR *algor, const char *pass,
214 void * PKCS12_item_decrypt_d2i(X509_ALGOR *algor, const ASN1_ITEM *it,
216 ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor, const ASN1_ITEM *it,
Dx509.h161 X509_ALGOR *algor; member
168 X509_ALGOR *algor; member
870 X509_ALGOR *algor);
Dsafestack.h148 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
149 (STACK_OF(type) *)PKCS12_decrypt_d2i(algor, \
213 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
214 …((STACK *)PKCS12_decrypt_d2i(algor,(char *(*)())d2i_func, (void(*)(void *))free_func,pass,passlen,…
1979 #define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
1980 …SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct),…
1982 #define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
1983 SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))
/external/openssl/crypto/x509/
Dx509.h161 X509_ALGOR *algor; member
168 X509_ALGOR *algor; member
870 X509_ALGOR *algor);
/external/openssl/crypto/pkcs7/
Dpk7_lib.c539 if (!(p7i->key_enc_algor= X509_ALGOR_dup(x509->cert_info->key->algor))) in PKCS7_RECIP_INFO_set()
/external/openssl/crypto/stack/
Dsafestack.h148 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
149 (STACK_OF(type) *)PKCS12_decrypt_d2i(algor, \
213 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
214 …((STACK *)PKCS12_decrypt_d2i(algor,(char *(*)())d2i_func, (void(*)(void *))free_func,pass,passlen,…
1979 #define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
1980 …SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct),…
1982 #define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
1983 SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))
/external/openssl/apps/
Dpkcs12.c768 alg_print (bio_err, bag->value.shkeybag->algor); in dump_certs_pkeys_bag()