/external/openssl/crypto/hmac/ |
D | hmac.c | 85 if (!EVP_DigestInit_ex(&ctx->md_ctx,md, impl)) in HMAC_Init_ex() 87 if (!EVP_DigestUpdate(&ctx->md_ctx,key,len)) in HMAC_Init_ex() 89 if (!EVP_DigestFinal_ex(&(ctx->md_ctx),ctx->key, in HMAC_Init_ex() 120 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx,&ctx->i_ctx)) in HMAC_Init_ex() 136 return EVP_DigestUpdate(&ctx->md_ctx,data,len); in HMAC_Update() 147 if (!EVP_DigestFinal_ex(&ctx->md_ctx,buf,&i)) in HMAC_Final() 149 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx,&ctx->o_ctx)) in HMAC_Final() 151 if (!EVP_DigestUpdate(&ctx->md_ctx,buf,i)) in HMAC_Final() 153 if (!EVP_DigestFinal_ex(&ctx->md_ctx,md,len)) in HMAC_Final() 164 EVP_MD_CTX_init(&ctx->md_ctx); in HMAC_CTX_init() [all …]
|
D | hmac.h | 78 EVP_MD_CTX md_ctx; member
|
/external/openssl/ssl/ |
D | s3_enc.c | 702 EVP_MD_CTX md_ctx; in n_ssl3_mac() local 731 EVP_MD_CTX_init(&md_ctx); in n_ssl3_mac() 733 EVP_MD_CTX_copy_ex( &md_ctx,hash); in n_ssl3_mac() 734 EVP_DigestUpdate(&md_ctx,mac_sec,md_size); in n_ssl3_mac() 735 EVP_DigestUpdate(&md_ctx,ssl3_pad_1,npad); in n_ssl3_mac() 736 EVP_DigestUpdate(&md_ctx,seq,8); in n_ssl3_mac() 738 EVP_DigestUpdate(&md_ctx,&rec_char,1); in n_ssl3_mac() 741 EVP_DigestUpdate(&md_ctx,md,2); in n_ssl3_mac() 742 EVP_DigestUpdate(&md_ctx,rec->input,rec->length); in n_ssl3_mac() 743 EVP_DigestFinal_ex( &md_ctx,md,NULL); in n_ssl3_mac() [all …]
|
D | d1_srvr.c | 889 EVP_MD_CTX md_ctx; in dtls1_send_server_key_exchange() local 891 EVP_MD_CTX_init(&md_ctx); in dtls1_send_server_key_exchange() 1215 EVP_DigestInit_ex(&md_ctx,(num == 2) in dtls1_send_server_key_exchange() 1217 EVP_DigestUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in dtls1_send_server_key_exchange() 1218 EVP_DigestUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in dtls1_send_server_key_exchange() 1219 EVP_DigestUpdate(&md_ctx,&(d[DTLS1_HM_HEADER_LENGTH]),n); in dtls1_send_server_key_exchange() 1220 EVP_DigestFinal_ex(&md_ctx,q, in dtls1_send_server_key_exchange() 1240 EVP_SignInit_ex(&md_ctx,EVP_dss1(), NULL); in dtls1_send_server_key_exchange() 1241 EVP_SignUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in dtls1_send_server_key_exchange() 1242 EVP_SignUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in dtls1_send_server_key_exchange() [all …]
|
D | s3_clnt.c | 1213 EVP_MD_CTX md_ctx; in ssl3_get_key_exchange() local 1294 EVP_MD_CTX_init(&md_ctx); in ssl3_get_key_exchange() 1608 EVP_DigestInit_ex(&md_ctx,(num == 2) in ssl3_get_key_exchange() 1610 EVP_DigestUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_key_exchange() 1611 EVP_DigestUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_key_exchange() 1612 EVP_DigestUpdate(&md_ctx,param,param_len); in ssl3_get_key_exchange() 1613 EVP_DigestFinal_ex(&md_ctx,q,(unsigned int *)&i); in ssl3_get_key_exchange() 1639 EVP_VerifyInit_ex(&md_ctx,EVP_dss1(), NULL); in ssl3_get_key_exchange() 1640 EVP_VerifyUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_key_exchange() 1641 EVP_VerifyUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_key_exchange() [all …]
|
D | s3_srvr.c | 1442 EVP_MD_CTX md_ctx; in ssl3_send_server_key_exchange() local 1444 EVP_MD_CTX_init(&md_ctx); in ssl3_send_server_key_exchange() 1767 EVP_DigestInit_ex(&md_ctx,(num == 2) in ssl3_send_server_key_exchange() 1769 EVP_DigestUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() 1770 EVP_DigestUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() 1771 EVP_DigestUpdate(&md_ctx,&(d[4]),n); in ssl3_send_server_key_exchange() 1772 EVP_DigestFinal_ex(&md_ctx,q, in ssl3_send_server_key_exchange() 1792 EVP_SignInit_ex(&md_ctx,EVP_dss1(), NULL); in ssl3_send_server_key_exchange() 1793 EVP_SignUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() 1794 EVP_SignUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() [all …]
|
/external/openssl/crypto/ecdsa/ |
D | ecdsatest.c | 188 EVP_MD_CTX md_ctx; in x9_62_test_internal() local 193 EVP_MD_CTX_init(&md_ctx); in x9_62_test_internal() 195 EVP_DigestInit(&md_ctx, EVP_ecdsa()); in x9_62_test_internal() 196 EVP_DigestUpdate(&md_ctx, (const void*)message, 3); in x9_62_test_internal() 197 EVP_DigestFinal(&md_ctx, digest, &dgst_len); in x9_62_test_internal() 242 EVP_MD_CTX_cleanup(&md_ctx); in x9_62_test_internal()
|
/external/openssl/include/openssl/ |
D | hmac.h | 78 EVP_MD_CTX md_ctx; member
|