Home
last modified time | relevance | path

Searched refs:sumwrk (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_set_format_xar.c2571 checksum_init(struct chksumwork *sumwrk, enum sumalg sum_alg) in checksum_init() argument
2573 sumwrk->alg = sum_alg; in checksum_init()
2578 archive_sha1_init(&(sumwrk->sha1ctx)); in checksum_init()
2581 archive_md5_init(&(sumwrk->md5ctx)); in checksum_init()
2587 checksum_update(struct chksumwork *sumwrk, const void *buff, size_t size) in checksum_update() argument
2590 switch (sumwrk->alg) { in checksum_update()
2594 archive_sha1_update(&(sumwrk->sha1ctx), buff, size); in checksum_update()
2597 archive_md5_update(&(sumwrk->md5ctx), buff, size); in checksum_update()
2603 checksum_final(struct chksumwork *sumwrk, struct chksumval *sumval) in checksum_final() argument
2606 switch (sumwrk->alg) { in checksum_final()
[all …]
H A Darchive_read_support_format_xar.c1357 _checksum_init(struct chksumwork *sumwrk, int sum_alg) in _checksum_init() argument
1359 sumwrk->alg = sum_alg; in _checksum_init()
1364 archive_sha1_init(&(sumwrk->sha1ctx)); in _checksum_init()
1367 archive_md5_init(&(sumwrk->md5ctx)); in _checksum_init()
1373 _checksum_update(struct chksumwork *sumwrk, const void *buff, size_t size) in _checksum_update() argument
1376 switch (sumwrk->alg) { in _checksum_update()
1380 archive_sha1_update(&(sumwrk->sha1ctx), buff, size); in _checksum_update()
1383 archive_md5_update(&(sumwrk->md5ctx), buff, size); in _checksum_update()
1389 _checksum_final(struct chksumwork *sumwrk, const void *val, size_t len) in _checksum_final() argument
1394 switch (sumwrk->alg) { in _checksum_final()
[all …]