HashData
internal data class HashData(val hashedUserId: <Error class: unknown class>, val salt: <Error class: unknown class>, val operationsLimit: <Error class: unknown class>, val hashingMemoryLimit: Int)
Constructors
Properties
Link copied to clipboard
The hashed ID of the user that originally created this backup. This hash is calculated using Argon2, with this salt, operationsLimit and hashingMemoryLimit. This array is HASHED_USER_ID_SIZE_IN_BYTES long.
Link copied to clipboard
Memory used by the hashing algorithm. See Libsodium's Documentation. This value has to be bigger than crypto_pwhash_MEMLIMIT_MIN.
Link copied to clipboard
Represents the maximum amount of computations to perform. Raising this number will make the function require more CPU cycles to compute a key. See Libsodium's Documentation.
Link copied to clipboard
The salt used in order to create the hashedUserId and used to derivate the encryption password to read/write the encrypted archive. This array is SALT_SIZE_IN_BYTES long.