diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-17 15:56:09 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-17 15:56:09 +0300 |
commit | e30834fdcbaf8b273f6e6eed411dec580bfbb4dd (patch) | |
tree | b546145cd915eb8233ece0b8effed56ff111fff1 /src/apk_package.h | |
parent | 0942832325f8e81d9e3cc7019cf1b1016d226533 (diff) | |
download | apk-tools-e30834fdcbaf8b273f6e6eed411dec580bfbb4dd.tar.gz apk-tools-e30834fdcbaf8b273f6e6eed411dec580bfbb4dd.tar.bz2 apk-tools-e30834fdcbaf8b273f6e6eed411dec580bfbb4dd.tar.xz apk-tools-e30834fdcbaf8b273f6e6eed411dec580bfbb4dd.zip |
digest: use oneshot context flag where approriate
speeds up digest calculation on some cases.
Diffstat (limited to 'src/apk_package.h')
-rw-r--r-- | src/apk_package.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apk_package.h b/src/apk_package.h index 6b7e959..f77637a 100644 --- a/src/apk_package.h +++ b/src/apk_package.h @@ -45,6 +45,7 @@ struct apk_sign_ctx { int data_verified : 1; char data_checksum[EVP_MAX_MD_SIZE]; struct apk_checksum identity; + EVP_MD_CTX mdctx; struct { apk_blob_t data; @@ -97,7 +98,7 @@ void apk_sign_ctx_free(struct apk_sign_ctx *ctx); int apk_sign_ctx_process_file(struct apk_sign_ctx *ctx, const struct apk_file_info *fi, struct apk_istream *is); -int apk_sign_ctx_mpart_cb(void *ctx, EVP_MD_CTX *mdctx, int part); +int apk_sign_ctx_mpart_cb(void *ctx, int part, apk_blob_t blob); int apk_deps_add(struct apk_dependency_array **depends, struct apk_dependency *dep); |