From 5147349feabe93d4cfd3d45e94002c1bb8f87923 Mon Sep 17 00:00:00 2001 From: manuroe Date: Fri, 12 Apr 2019 11:17:53 +0200 Subject: OLMKit: OMLPkSigning: Zero mutableSeed --- xcode/OLMKit/OLMPkSigning.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xcode') 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; } -- cgit v1.2.3