diff options
Diffstat (limited to 'lib/util/data_blob.h')
-rw-r--r-- | lib/util/data_blob.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util/data_blob.h b/lib/util/data_blob.h index 7a0dc3b0014..0f3eae16592 100644 --- a/lib/util/data_blob.h +++ b/lib/util/data_blob.h @@ -87,6 +87,12 @@ check if two data blobs are equal _PUBLIC_ int data_blob_cmp(const DATA_BLOB *d1, const DATA_BLOB *d2); /** +check if two data blobs are equal, where the time taken should not depend on the +contents of either blob. +**/ +_PUBLIC_ int data_blob_cmp_const_time(const DATA_BLOB *d1, const DATA_BLOB *d2); + +/** print the data_blob as hex string **/ _PUBLIC_ char *data_blob_hex_string_upper(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob); |