Home
last modified time | relevance | path

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

/external/openssl/crypto/evp/
Dopenbsd_hw.c282 static int dev_crypto_init_digest(MD_DATA *md_data,int mac)
284 if(!dev_crypto_init(&md_data->sess))
287 md_data->len=0;
288 md_data->data=NULL;
290 md_data->sess.mac=mac;
292 if (ioctl(fd,CIOCGSESSION,&md_data->sess) == -1)
300 static int dev_crypto_cleanup_digest(MD_DATA *md_data)
302 if (ioctl(fd,CIOCFSESSION,&md_data->sess.ses) == -1)
314 { return dev_crypto_init_digest(ctx->md_data,CRYPTO_MD5); }
374 MD_DATA *md_data=ctx->md_data;
[all …]
Dm_sha1.c75 { return SHA1_Init(ctx->md_data); } in init()
78 { return SHA1_Update(ctx->md_data,data,count); } in update()
81 { return SHA1_Final(md,ctx->md_data); } in final()
107 { return SHA224_Init(ctx->md_data); } in init224()
109 { return SHA256_Init(ctx->md_data); } in init256()
116 { return SHA256_Update(ctx->md_data,data,count); } in update256()
118 { return SHA256_Final(md,ctx->md_data); } in final256()
161 { return SHA384_Init(ctx->md_data); } in init384()
163 { return SHA512_Init(ctx->md_data); } in init512()
166 { return SHA512_Update(ctx->md_data,data,count); } in update512()
[all …]
Ddigest.c205 OPENSSL_free(ctx->md_data); in EVP_DigestInit_ex()
210 ctx->md_data=OPENSSL_malloc(type->ctx_size); in EVP_DigestInit_ex()
211 if (ctx->md_data == NULL) in EVP_DigestInit_ex()
237 OPENSSL_free(ctx->md_data); in EVP_DigestInit_ex()
238 ctx->md_data = NULL; in EVP_DigestInit_ex()
280 memset(ctx->md_data,0,ctx->digest->ctx_size); in EVP_DigestFinal_ex()
310 tmp_buf = out->md_data; in EVP_MD_CTX_copy_ex()
317 if (in->md_data && out->digest->ctx_size) in EVP_MD_CTX_copy_ex()
320 out->md_data = tmp_buf; in EVP_MD_CTX_copy_ex()
323 out->md_data=OPENSSL_malloc(out->digest->ctx_size); in EVP_MD_CTX_copy_ex()
[all …]
Dm_wp.c15 { return WHIRLPOOL_Init(ctx->md_data); } in init()
18 { return WHIRLPOOL_Update(ctx->md_data,data,count); } in update()
21 { return WHIRLPOOL_Final(md,ctx->md_data); } in final()
Dm_md4.c75 { return MD4_Init(ctx->md_data); } in init()
78 { return MD4_Update(ctx->md_data,data,count); } in update()
81 { return MD4_Final(md,ctx->md_data); } in final()
Dm_ecdsa.c122 { return SHA1_Init(ctx->md_data); } in init()
125 { return SHA1_Update(ctx->md_data,data,count); } in update()
128 { return SHA1_Final(md,ctx->md_data); } in final()
Dm_mdc2.c75 { return MDC2_Init(ctx->md_data); } in init()
78 { return MDC2_Update(ctx->md_data,data,count); } in update()
81 { return MDC2_Final(md,ctx->md_data); } in final()
Dm_ripemd.c74 { return RIPEMD160_Init(ctx->md_data); } in init()
77 { return RIPEMD160_Update(ctx->md_data,data,count); } in update()
80 { return RIPEMD160_Final(md,ctx->md_data); } in final()
Dm_md5.c74 { return MD5_Init(ctx->md_data); } in init()
77 { return MD5_Update(ctx->md_data,data,count); } in update()
80 { return MD5_Final(md,ctx->md_data); } in final()
Dm_dss1.c74 { return SHA1_Init(ctx->md_data); } in init()
77 { return SHA1_Update(ctx->md_data,data,count); } in update()
80 { return SHA1_Final(md,ctx->md_data); } in final()
Dm_dss.c72 { return SHA1_Init(ctx->md_data); } in init()
75 { return SHA1_Update(ctx->md_data,data,count); } in update()
78 { return SHA1_Final(md,ctx->md_data); } in final()
Dbio_ok.c494 RAND_pseudo_bytes(md->md_data, md->digest->md_size); in sig_out()
495 memcpy(&(ctx->buf[ctx->buf_len]), md->md_data, md->digest->md_size); in sig_out()
526 memcpy(md->md_data, &(ctx->buf[ctx->buf_off]), md->digest->md_size); in sig_in()
527 longswap(md->md_data, md->digest->md_size); in sig_in()
Devp.h270 void *md_data; member
/external/openssh/
Dmd-sha256.c42 SHA256_Init(ctxt->md_data); in ssh_sha256_init()
49 SHA256_Update(ctxt->md_data, data, len); in ssh_sha256_update()
56 SHA256_Final(digest, ctxt->md_data); in ssh_sha256_final()
63 memset(ctxt->md_data, 0, sizeof(SHA256_CTX)); in ssh_sha256_cleanup()
/external/openssl/crypto/engine/
Deng_openssl.c314 return SHA1_Init(ctx->md_data); in test_sha1_init()
321 return SHA1_Update(ctx->md_data,data,count); in test_sha1_update()
328 return SHA1_Final(md,ctx->md_data); in test_sha1_final()
Deng_cryptodev.c677 struct dev_crypto_state *state = ctx->md_data; in cryptodev_digest_init()
711 struct dev_crypto_state *state = ctx->md_data; in cryptodev_digest_update()
757 struct dev_crypto_state *state = ctx->md_data; in cryptodev_digest_final()
793 struct dev_crypto_state *state = ctx->md_data; in cryptodev_digest_cleanup()
824 struct dev_crypto_state *fstate = from->md_data; in cryptodev_digest_copy()
825 struct dev_crypto_state *dstate = to->md_data; in cryptodev_digest_copy()
/external/openssl/crypto/mdc2/
Dmdc2test.c125 ((MDC2_CTX *)c.md_data)->pad_type=2; in main()
/external/openssl/crypto/pkcs7/
Dpk7_doit.c705 unsigned char md_data[EVP_MAX_MD_SIZE]; in do_pkcs7_signed_attrib() local
720 if (!EVP_DigestFinal_ex(mctx, md_data,&md_len)) in do_pkcs7_signed_attrib()
725 if (!PKCS7_add1_attrib_digest(si, md_data, md_len)) in do_pkcs7_signed_attrib()
866 unsigned char md_data[EVP_MAX_MD_SIZE]; in PKCS7_dataFinal() local
871 if (!EVP_DigestFinal_ex(mdc,md_data,&md_len)) in PKCS7_dataFinal()
873 M_ASN1_OCTET_STRING_set(p7->d.digest->digest, md_data, md_len); in PKCS7_dataFinal()
/external/ipsec-tools/src/racoon/missing/crypto/sha2/
Dsha2.c1068 #define data(ctx) ((SHA256_CTX *)(ctx)->md_data)
1087 #define data(ctx) ((SHA384_CTX *)(ctx)->md_data)
1106 #define data(ctx) ((SHA512_CTX *)(ctx)->md_data)
/external/openssl/include/openssl/
Dpem.h193 char *md_data; /* message digest, could be pkey encrypted */ member
Devp.h270 void *md_data; member
/external/openssl/crypto/pem/
Dpem.h193 char *md_data; /* message digest, could be pkey encrypted */ member