aboutsummaryrefslogtreecommitdiff
path: root/xcode
diff options
context:
space:
mode:
authormanuroe <manu@matrix.org>2019-04-12 11:17:53 +0200
committermanuroe <manu@matrix.org>2019-04-12 11:17:53 +0200
commit5147349feabe93d4cfd3d45e94002c1bb8f87923 (patch)
treec59f8690f0ab0ad4a266955a153b4af50450cb72 /xcode
parent89357b6a495ce7b6625db206d416ed428b613804 (diff)
OLMKit: OMLPkSigning: Zero mutableSeed
Diffstat (limited to 'xcode')
-rw-r--r--xcode/OLMKit/OLMPkSigning.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/xcode/OLMKit/OLMPkSigning.m b/xcode/OLMKit/OLMPkSigning.m
index e3f1a61..d5c7d09 100644
--- a/xcode/OLMKit/OLMPkSigning.m
+++ b/xcode/OLMKit/OLMPkSigning.m
@@ -72,6 +72,8 @@
return nil;
}
+ [mutableSeed resetBytesInRange:NSMakeRange(0, mutableSeed.length)];
+
NSString *publicKey = [[NSString alloc] initWithData:publicKeyData encoding:NSUTF8StringEncoding];
return publicKey;
}