projects
/
platform
/
upstream
/
libzypp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 17.22.1
[platform/upstream/libzypp.git]
/
zypp
/
Digest.h
diff --git
a/zypp/Digest.h
b/zypp/Digest.h
index
9756354
..
6e6075e
100644
(file)
--- a/
zypp/Digest.h
+++ b/
zypp/Digest.h
@@
-99,6
+99,13
@@
namespace zypp {
* */
bool update(const char* bytes, size_t len);
* */
bool update(const char* bytes, size_t len);
+ /** \brief feed data into digest computation algorithm
+ * @param is
+ * @param bufsize
+ * @return whether an error occured
+ * */
+ bool update(std::istream& is, size_t bufsize = 4096);
+
/** \brief get hex string representation of the digest
*
* this function will finalize the digest computation. calls to update
/** \brief get hex string representation of the digest
*
* this function will finalize the digest computation. calls to update
@@
-108,6
+115,12
@@
namespace zypp {
* */
std::string digest();
* */
std::string digest();
+ /** \brief get hex string representation of the digest vector given as parameter
+ *
+ * @return hex string representation of the digest
+ * */
+ static std::string digestVectorToString ( const std::vector<unsigned char> &vec );
+
/** \brief get vector of unsigned char representation of the digest
*
* this function will finalize the digest computation. calls to update
/** \brief get vector of unsigned char representation of the digest
*
* this function will finalize the digest computation. calls to update