diff options
author | manuroe <manu@matrix.org> | 2019-04-12 11:17:53 +0200 |
---|---|---|
committer | manuroe <manu@matrix.org> | 2019-04-12 11:17:53 +0200 |
commit | 5147349feabe93d4cfd3d45e94002c1bb8f87923 (patch) | |
tree | c59f8690f0ab0ad4a266955a153b4af50450cb72 /xcode | |
parent | 89357b6a495ce7b6625db206d416ed428b613804 (diff) |
OLMKit: OMLPkSigning: Zero mutableSeed
Diffstat (limited to 'xcode')
-rw-r--r-- | xcode/OLMKit/OLMPkSigning.m | 2 |
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; } |