/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
D | SHA1ImplTest.java | 82 byte[] dgst = md.digest(); in testOneBlockMessage() 87 int j = ((dgst[i ]&0xff)<<24) | ((dgst[i+1]&0xff)<<16) | in testOneBlockMessage() 88 ((dgst[i+2]&0xff)<<8 ) | (dgst[i+3]&0xff) ; in testOneBlockMessage() 111 byte[] dgst = md.digest(); in testMultiBlockMessage() 116 int j = ((dgst[i ]&0xff)<<24) | ((dgst[i+1]&0xff)<<16) | in testMultiBlockMessage() 117 ((dgst[i+2]&0xff)<<8 ) | (dgst[i+3]&0xff) ; in testMultiBlockMessage() 149 byte[] dgst = md.digest(); in testLongMessage() 153 int j = ((dgst[i ]&0xff)<<24) | ((dgst[i+1]&0xff)<<16) | in testLongMessage() 154 ((dgst[i+2]&0xff)<<8 ) | (dgst[i+3]&0xff) ; in testLongMessage()
|
/external/openssl/crypto/ecdsa/ |
D | ecs_sign.c | 62 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() argument 64 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey); in ECDSA_do_sign() 67 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, in ECDSA_do_sign_ex() argument 73 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex() 76 int ECDSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char in ECDSA_sign() argument 79 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); in ECDSA_sign() 82 int ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, unsigned char in ECDSA_sign_ex() argument 87 RAND_seed(dgst, dlen); in ECDSA_sign_ex() 88 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ECDSA_sign_ex()
|
D | ecdsa.h | 118 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey); 130 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen, 142 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, 190 int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen, 207 int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen, 222 int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen,
|
D | ecs_vrf.c | 69 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, in ECDSA_do_verify() argument 75 return ecdsa->meth->ecdsa_do_verify(dgst, dgst_len, sig, eckey); in ECDSA_do_verify() 83 int ECDSA_verify(int type, const unsigned char *dgst, int dgst_len, in ECDSA_verify() argument 92 ret=ECDSA_do_verify(dgst, dgst_len, s, eckey); in ECDSA_verify()
|
D | ecs_locl.h | 71 ECDSA_SIG *(*ecdsa_do_sign)(const unsigned char *dgst, int dgst_len, 75 int (*ecdsa_do_verify)(const unsigned char *dgst, int dgst_len,
|
D | ecs_ossl.c | 64 static ECDSA_SIG *ecdsa_do_sign(const unsigned char *dgst, int dlen, 68 static int ecdsa_do_verify(const unsigned char *dgst, int dgst_len, 222 static ECDSA_SIG *ecdsa_do_sign(const unsigned char *dgst, int dgst_len, in ecdsa_do_sign() argument 270 if (!BN_bin2bn(dgst, dgst_len, m)) in ecdsa_do_sign() 353 static int ecdsa_do_verify(const unsigned char *dgst, int dgst_len, in ecdsa_do_verify() argument 416 if (!BN_bin2bn(dgst, dgst_len, m)) in ecdsa_do_verify()
|
/external/openssl/include/openssl/ |
D | ecdsa.h | 118 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey); 130 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen, 142 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, 190 int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen, 207 int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen, 222 int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen,
|
D | dsa.h | 132 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); 135 int (*dsa_do_verify)(const unsigned char *dgst, int dgst_len, 197 DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa); 198 int DSA_do_verify(const unsigned char *dgst,int dgst_len, 215 int DSA_sign(int type,const unsigned char *dgst,int dlen, 217 int DSA_verify(int type,const unsigned char *dgst,int dgst_len,
|
D | ocsp.h | 413 OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer); 415 OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, 433 const EVP_MD *dgst, 478 X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,
|
/external/openssl/crypto/ocsp/ |
D | ocsp_lib.c | 76 OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer) in OCSP_cert_to_id() argument 82 if(!dgst) dgst = EVP_sha1(); in OCSP_cert_to_id() 95 return OCSP_cert_id_new(dgst, iname, ikey, serial); in OCSP_cert_to_id() 99 OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, in OCSP_cert_id_new() argument 114 if ((nid = EVP_MD_type(dgst)) == NID_undef) in OCSP_cert_id_new() 123 if (!X509_NAME_digest(issuerName, dgst, md, &i)) goto digerr; in OCSP_cert_id_new() 127 if (!EVP_Digest(issuerKey->data, issuerKey->length, md, &i, dgst, NULL)) in OCSP_cert_id_new()
|
D | ocsp_vfy.c | 304 const EVP_MD *dgst; in ocsp_match_issuerid() local 308 if (!(dgst = EVP_get_digestbyobj(cid->hashAlgorithm->algorithm))) in ocsp_match_issuerid() 314 mdlen = EVP_MD_size(dgst); in ocsp_match_issuerid() 321 if (!X509_NAME_digest(iname, dgst, md, NULL)) in ocsp_match_issuerid() 325 X509_pubkey_digest(cert, dgst, md, NULL); in ocsp_match_issuerid()
|
D | ocsp_srv.c | 209 X509 *signer, EVP_PKEY *key, const EVP_MD *dgst, in OCSP_basic_sign() argument 259 if (!OCSP_BASICRESP_sign(brsp, key, dgst, 0)) goto err; in OCSP_basic_sign()
|
D | ocsp.h | 413 OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer); 415 OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, 433 const EVP_MD *dgst, 478 X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,
|
D | ocsp_cl.c | 146 const EVP_MD *dgst, in OCSP_request_sign() argument 165 if (!OCSP_REQUEST_sign(req, key, dgst)) goto err; in OCSP_request_sign()
|
/external/openssl/crypto/dsa/ |
D | dsa_asn1.c | 153 int DSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, in DSA_sign() argument 157 RAND_seed(dgst, dlen); in DSA_sign() 158 s=DSA_do_sign(dgst,dlen,dsa); in DSA_sign() 175 int DSA_verify(int type, const unsigned char *dgst, int dgst_len, in DSA_verify() argument 184 ret=DSA_do_verify(dgst,dgst_len,s,dsa); in DSA_verify()
|
D | dsa.h | 132 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); 135 int (*dsa_do_verify)(const unsigned char *dgst, int dgst_len, 197 DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa); 198 int DSA_do_verify(const unsigned char *dgst,int dgst_len, 215 int DSA_sign(int type,const unsigned char *dgst,int dlen, 217 int DSA_verify(int type,const unsigned char *dgst,int dgst_len,
|
D | dsa_vrf.c | 64 int DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig, in DSA_do_verify() argument 75 return dsa->meth->dsa_do_verify(dgst, dgst_len, sig, dsa); in DSA_do_verify()
|
D | dsa_ossl.c | 69 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 71 static int dsa_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig, 131 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in dsa_do_sign() argument 174 if (BN_bin2bn(dgst,dlen,&m) == NULL) in dsa_do_sign() 307 static int dsa_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig, in dsa_do_verify() argument 362 if (BN_bin2bn(dgst,dgst_len,&u1) == NULL) goto err; in dsa_do_verify()
|
D | dsa_sign.c | 66 DSA_SIG * DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in DSA_do_sign() argument 76 return dsa->meth->dsa_do_sign(dgst, dlen, dsa); in DSA_do_sign()
|
/external/openssl/crypto/pkcs7/ |
D | pk7_lib.c | 367 const EVP_MD *dgst) in PKCS7_SIGNER_INFO_set() argument 391 X509_ALGOR_set0(p7i->digest_alg, OBJ_nid2obj(EVP_MD_type(dgst)), in PKCS7_SIGNER_INFO_set() 414 const EVP_MD *dgst) in PKCS7_add_signature() argument 418 if (dgst == NULL) in PKCS7_add_signature() 423 dgst = EVP_get_digestbynid(def_nid); in PKCS7_add_signature() 424 if (dgst == NULL) in PKCS7_add_signature() 433 if (!PKCS7_SIGNER_INFO_set(si,x509,pkey,dgst)) goto err; in PKCS7_add_signature()
|
D | doc | 5 EVP_MD *dgst);
|
/external/openssl/crypto/rsa/ |
D | rsa_oaep.c | 187 const unsigned char *seed, long seedlen, const EVP_MD *dgst) in PKCS1_MGF1() argument 197 mdlen = EVP_MD_size(dgst); in PKCS1_MGF1() 206 if (!EVP_DigestInit_ex(&c,dgst, NULL) in PKCS1_MGF1()
|
/external/openssl/apps/ |
D | ca.c | 200 const EVP_MD *dgst,STACK_OF(OPENSSL_STRING) *sigopts, 207 const EVP_MD *dgst,STACK_OF(OPENSSL_STRING) *sigopts, 215 const EVP_MD *dgst,STACK_OF(OPENSSL_STRING) *sigopts, 222 static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, const EVP_MD *dgst, 315 const EVP_MD *dgst=NULL; in MAIN() local 1056 if ((dgst=EVP_get_digestbyname(md)) == NULL) in MAIN() 1072 OBJ_nid2ln(dgst->type)); in MAIN() 1187 j=certify_spkac(&x,spkac_file,pkey,x509,dgst,sigopts, in MAIN() 1212 j=certify_cert(&x,ss_cert_file,pkey,x509,dgst,sigopts, in MAIN() 1233 j=certify(&x,infile,pkey,x509p,dgst,sigopts, attribs,db, in MAIN() [all …]
|
D | enc.c | 131 const EVP_MD *dgst=NULL; in MAIN() local 334 if (md && (dgst=EVP_get_digestbyname(md)) == NULL) in MAIN() 340 if (dgst == NULL) in MAIN() 342 dgst = EVP_md5(); in MAIN() 555 EVP_BytesToKey(cipher,dgst,sptr, in MAIN()
|
/external/openssl/crypto/engine/ |
D | eng_cryptodev.c | 121 static DSA_SIG *cryptodev_dsa_do_sign(const unsigned char *dgst, 123 static int cryptodev_dsa_verify(const unsigned char *dgst, int dgst_len, 1179 cryptodev_dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in cryptodev_dsa_do_sign() argument 1196 kop.crk_param[0].crp_p = (caddr_t)dgst; in cryptodev_dsa_do_sign() 1217 dsaret = (meth->dsa_do_sign)(dgst, dlen, dsa); in cryptodev_dsa_do_sign() 1226 cryptodev_dsa_verify(const unsigned char *dgst, int dlen, in cryptodev_dsa_verify() argument 1236 kop.crk_param[0].crp_p = (caddr_t)dgst; in cryptodev_dsa_verify() 1258 dsaret = (meth->dsa_do_verify)(dgst, dlen, sig, dsa); in cryptodev_dsa_verify()
|