Adjust to ObjFW changes
This commit is contained in:
parent
773af9361e
commit
0321101564
2 changed files with 6 additions and 4 deletions
|
@ -55,7 +55,8 @@
|
||||||
|
|
||||||
- (void)derivePassword
|
- (void)derivePassword
|
||||||
{
|
{
|
||||||
OFSHA256Hash *siteHash = [OFSHA256Hash cryptoHash];
|
OFSHA256Hash *siteHash = [OFSHA256Hash
|
||||||
|
cryptoHashWithAllowsSwappableMemory: true];
|
||||||
size_t passphraseLength, combinedPassphraseLength;
|
size_t passphraseLength, combinedPassphraseLength;
|
||||||
char *combinedPassphrase;
|
char *combinedPassphrase;
|
||||||
|
|
||||||
|
@ -89,7 +90,7 @@
|
||||||
|
|
||||||
of_scrypt(8, 524288, 2, siteHash.digest,
|
of_scrypt(8, 524288, 2, siteHash.digest,
|
||||||
[siteHash.class digestSize], combinedPassphrase,
|
[siteHash.class digestSize], combinedPassphrase,
|
||||||
combinedPassphraseLength, _output, _length);
|
combinedPassphraseLength, _output, _length, true);
|
||||||
} @finally {
|
} @finally {
|
||||||
of_explicit_memset(combinedPassphrase, 0,
|
of_explicit_memset(combinedPassphrase, 0,
|
||||||
combinedPassphraseLength);
|
combinedPassphraseLength);
|
||||||
|
|
|
@ -42,7 +42,8 @@
|
||||||
|
|
||||||
- (void)derivePassword
|
- (void)derivePassword
|
||||||
{
|
{
|
||||||
OFSHA384Hash *siteHash = [OFSHA384Hash cryptoHash];
|
OFSHA384Hash *siteHash = [OFSHA384Hash
|
||||||
|
cryptoHashWithAllowsSwappableMemory: true];
|
||||||
size_t passphraseLength, combinedPassphraseLength;
|
size_t passphraseLength, combinedPassphraseLength;
|
||||||
char *combinedPassphrase;
|
char *combinedPassphrase;
|
||||||
|
|
||||||
|
@ -76,7 +77,7 @@
|
||||||
|
|
||||||
of_scrypt(8, 524288, 2, siteHash.digest,
|
of_scrypt(8, 524288, 2, siteHash.digest,
|
||||||
[siteHash.class digestSize], combinedPassphrase,
|
[siteHash.class digestSize], combinedPassphrase,
|
||||||
combinedPassphraseLength, _output, _length);
|
combinedPassphraseLength, _output, _length, true);
|
||||||
} @finally {
|
} @finally {
|
||||||
of_explicit_memset(combinedPassphrase, 0,
|
of_explicit_memset(combinedPassphrase, 0,
|
||||||
combinedPassphraseLength);
|
combinedPassphraseLength);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue