FormatV3
public final class FormatV3: NSObject
V3 format settings
-
Size of AES and HMAC keys
Declaration
Swift
public static let keySize = kCCKeySizeAES256
-
Size of PBKDF2 salt
Declaration
Swift
public static let saltSize = 8
-
Generate a key from a password and salt - parameters: - password: Password to convert - salt: Salt. Generally constructed with RNCryptor.randomDataOfLength(FormatV3.saltSize) - returns: Key of length FormatV3.keySize
Declaration
Swift
public static func keyForPassword(password: String, salt: NSData) -> NSData
Parameters
password
Password to convert
salt
Salt. Generally constructed with RNCryptor.randomDataOfLength(FormatV3.saltSize)
Return Value
Key of length FormatV3.keySize