Adjust to ObjFW changes

This commit is contained in:
Jonathan Schleifer 2019-12-28 23:46:05 +01:00
parent 773af9361e
commit 0321101564
No known key found for this signature in database
GPG key ID: 79D21189A2D4708D
2 changed files with 6 additions and 4 deletions

View file

@ -55,7 +55,8 @@
- (void)derivePassword
{
OFSHA256Hash *siteHash = [OFSHA256Hash cryptoHash];
OFSHA256Hash *siteHash = [OFSHA256Hash
cryptoHashWithAllowsSwappableMemory: true];
size_t passphraseLength, combinedPassphraseLength;
char *combinedPassphrase;
@ -89,7 +90,7 @@
of_scrypt(8, 524288, 2, siteHash.digest,
[siteHash.class digestSize], combinedPassphrase,
combinedPassphraseLength, _output, _length);
combinedPassphraseLength, _output, _length, true);
} @finally {
of_explicit_memset(combinedPassphrase, 0,
combinedPassphraseLength);