aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMUtility.h
diff options
context:
space:
mode:
Diffstat (limited to 'xcode/OLMKit/OLMUtility.h')
-rw-r--r--xcode/OLMKit/OLMUtility.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xcode/OLMKit/OLMUtility.h b/xcode/OLMKit/OLMUtility.h
index a8a3743..1952b8e 100644
--- a/xcode/OLMKit/OLMUtility.h
+++ b/xcode/OLMKit/OLMUtility.h
@@ -11,6 +11,14 @@
@interface OLMUtility : NSObject
/**
+ Calculate the SHA-256 hash of the input and encodes it as base64.
+
+ @param message the message to hash.
+ @return the base64-encoded hash value.
+ */
+- (NSString*)sha256:(NSData*)message;
+
+/**
Verify an ed25519 signature.
@param signature the base64-encoded signature to be checked.