Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Commit 0a8175d

Browse files
committed
Fixed typo
1 parent 3af0155 commit 0a8175d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ SETOMasterKey *masterKey = ...;
9595
NSInteger vaultVersion = ...;
9696
NSString *passphrase = ...;
9797
NSData *pepper = ...; // optional
98-
uint64_t scryptCostParam = ...; // use kSETOMasterKeyFileDefaulScryptCostParam if you are not sure
98+
uint64_t scryptCostParam = ...; // use kSETOMasterKeyFileDefaultScryptCostParam if you are not sure
9999
NSError *error;
100100
NSData *jsonData = [SETOMasterKeyFile lockMasterKey:masterKey withVaultVersion:vaultVersion passphrase:passphrase pepper:pepper scryptCostParam:scryptCostParam error:&error];
101101
```
@@ -108,7 +108,7 @@ dispatch_async(dispatch_get_global_queue(QOS_CLASS_UTILITY, 0), ^{
108108
NSInteger vaultVersion = ...;
109109
NSString *passphrase = ...;
110110
NSData *pepper = ...; // optional
111-
uint64_t scryptCostParam = ...; // use kSETOMasterKeyFileDefaulScryptCostParam if you are not sure
111+
uint64_t scryptCostParam = ...; // use kSETOMasterKeyFileDefaultScryptCostParam if you are not sure
112112
NSError *error;
113113
NSData *jsonData = [SETOMasterKeyFile lockMasterKey:masterKey withVaultVersion:vaultVersion passphrase:passphrase pepper:pepper scryptCostParam:scryptCostParam error:&error];
114114
dispatch_async(dispatch_get_main_queue(), ^{

SETOCryptomatorCryptor/Core/SETOMasterKeyFile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ typedef NS_ENUM(NSInteger, SETOMasterKeyFileError) {
1919
SETOMasterKeyFileKeyWrapFailedError
2020
};
2121

22-
extern uint64_t const kSETOMasterKeyFileDefaulScryptCostParam;
22+
extern uint64_t const kSETOMasterKeyFileDefaultScryptCostParam;
2323

2424
@interface SETOMasterKeyFile : NSObject
2525

@@ -61,7 +61,7 @@ extern uint64_t const kSETOMasterKeyFileDefaulScryptCostParam;
6161
* @param vaultVersion The vault version that should be stored in this master key file (for downwards compatibility).
6262
* @param passphrase The passphrase used during key derivation.
6363
* @param pepper An application-specific pepper added to the scrypt's salt (if applicable).
64-
* @param scryptCostParam The work factor for the key derivation function (scrypt). Use @p kSETOMasterKeyFileDefaulScryptCostParam if you are not sure.
64+
* @param scryptCostParam The work factor for the key derivation function (scrypt). Use @p kSETOMasterKeyFileDefaultScryptCostParam if you are not sure.
6565
* @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify @p NULL for this parameter if you do not want the error information.
6666
*
6767
* @return A JSON representation of the encrypted master key with its key derivation parameters.

SETOCryptomatorCryptor/Core/SETOMasterKeyFile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
NSString *const kSETOMasterKeyFilePrimaryMasterKeyKey = @"primaryMasterKey";
3030
NSString *const kSETOMasterKeyFileMacMasterKeyKey = @"hmacMasterKey";
3131

32-
uint64_t const kSETOMasterKeyFileDefaulScryptCostParam = 32768; // 2^15
32+
uint64_t const kSETOMasterKeyFileDefaultScryptCostParam = 32768; // 2^15
3333
int const kSETOMasterKeyFileDefaultScryptSaltSize = 8;
3434
uint32_t const kSETOMasterKeyFileDefaultScryptBlockSize = 8;
3535

0 commit comments

Comments
 (0)