FormatV3

public final class FormatV3

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

    Declaration

    Swift

    public static func makeKey(forPassword password: String, withSalt salt: Data) -> Data

    Parameters

    password

    Password to convert

    salt

    Salt. Generally constructed with RNCryptor.randomDataOfLength(FormatV3.saltSize)

    Return Value

    Key of length FormatV3.keySize