Overview
Comment: | Use non-swappable memory |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d5ba7b8a87c38520b2c0ca103b585c38 |
User & Date: | js on 2020-01-03 00:03:58 |
Other Links: | manifest | tags |
Context
2020-01-03
| ||
00:19 | iOS: Update to recent changes check-in: 496f11bd4b user: js tags: trunk | |
00:03 | Use non-swappable memory check-in: d5ba7b8a87 user: js tags: trunk | |
2019-12-28
| ||
22:46 | Adjust to ObjFW changes check-in: 31d77b5098 user: js tags: trunk | |
Changes
Modified CryptoPassphrase.h from [4c913f774e] to [3050e24daf].
1 | 1 2 3 4 5 6 7 8 9 10 11 | - + - + | /* |
︙ |
Modified CryptoPassphrase.m from [af2775fb50] to [d60a88125c].
1 | 1 2 3 4 5 6 7 8 9 10 11 | - + - + | /* |
︙ | |||
60 61 62 63 64 65 66 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | - + + + | }; OFOptionsParser *optionsParser = [OFOptionsParser parserWithOptions: options]; of_unichar_t option; OFMutableData *keyFile = nil; OFString *prompt; const char *promptCString; |
︙ | |||
139 140 141 142 143 144 145 | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | - + + - - - + + + + + + + - - - - + + - - - + + - - - + + - - + + - - - - - - + + + + + - - - + - - + + - + - - - - - + + + + - - - - - - - - - - - | prompt = [OFString stringWithFormat: @"Passphrase for site \"%@\": ", generator.site]; promptCString = [prompt cStringWithEncoding: [OFLocale encoding]]; if (keyFilePath != nil) keyFile = [OFMutableData dataWithContentsOfFile: keyFilePath]; |
Modified LegacyPasswordGenerator.h from [8b2f2b2c68] to [ecf25f2249].
1 | 1 2 3 4 5 6 7 8 9 10 11 | - + - + | /* |
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 | - + - | #import "PasswordGenerator.h" @interface LegacyPasswordGenerator: OFObject <PasswordGenerator> { size_t _length; OFString *_site; OFData *_keyFile; |
Modified LegacyPasswordGenerator.m from [c0c1315d5a] to [d5c5dfec12].
1 | 1 2 3 4 5 6 7 8 9 10 11 | - + - + | /* |
︙ | |||
54 55 56 57 58 59 60 | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | + - + + - + - - + - - - + + - + - + - - - - + + + + - - - + + + + - - - + + + - - - - - - - - + + + - + - + | } - (void)derivePassword { OFSHA256Hash *siteHash = [OFSHA256Hash cryptoHashWithAllowsSwappableMemory: true]; size_t passphraseLength, combinedPassphraseLength; OFSecureData *combinedPassphrase; |
Modified NewPasswordGenerator.h from [9f48bbafee] to [9d87dde63d].
1 | 1 2 3 4 5 6 7 8 9 10 11 | - + - + | /* |
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 | - + - | #import "PasswordGenerator.h" @interface NewPasswordGenerator: OFObject <PasswordGenerator> { size_t _length; OFString *_site; OFData *_keyFile; |
Modified NewPasswordGenerator.m from [37a8c168df] to [17ced95bbb].
1 | 1 2 3 4 5 6 7 8 9 10 11 | - + - + | /* |
︙ | |||
41 42 43 44 45 46 47 | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | + - + + - + - - + - - - + + - + - + - - - - + + + + - - - + + + + - - - + + + - - - - - + - - + - + | } - (void)derivePassword { OFSHA384Hash *siteHash = [OFSHA384Hash cryptoHashWithAllowsSwappableMemory: true]; size_t passphraseLength, combinedPassphraseLength; OFSecureData *combinedPassphrase; |
Modified PasswordGenerator.h from [331c2d1755] to [2fc83e5fa2].
1 | 1 2 3 4 5 6 7 8 9 10 11 | - + - + | /* |
︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 | - - + + | #import <ObjFW/ObjFW.h> @protocol PasswordGenerator @property (nonatomic) size_t length; @property (copy, nonatomic) OFString *site; @property (retain, nonatomic) OFData *keyFile; |