diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-md5.cpp | 5 | ||||
| -rw-r--r-- | source/core/slang-md5.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/source/core/slang-md5.cpp b/source/core/slang-md5.cpp index 95b4816bf..7371b21d2 100644 --- a/source/core/slang-md5.cpp +++ b/source/core/slang-md5.cpp @@ -232,6 +232,11 @@ namespace Slang update(ctx, hash.values, sizeof(hash.values)); } + void MD5HashGen::update(MD5Context* ctx, ISlangBlob* blob) + { + update(ctx, blob->getBufferPointer(), blob->getBufferSize()); + } + void MD5HashGen::update(MD5Context* ctx, const void* data, SlangInt size) { MD5_u32plus saved_lo; diff --git a/source/core/slang-md5.h b/source/core/slang-md5.h index 8c51a03ec..2e99fb667 100644 --- a/source/core/slang-md5.h +++ b/source/core/slang-md5.h @@ -70,6 +70,8 @@ namespace Slang void update(MD5Context* ctx, String str); // Helper update function for Checksums void update(MD5Context* ctx, const slang::Digest& checksum); + // Helper update function for ISlangBlob + void update(MD5Context* ctx, ISlangBlob* blob); void finalize(MD5Context* ctx, slang::Digest* result); |
