EncryptedKey
struct EncryptedKey
Encrypted keys that are used to identify values in a storage backend.
-
The size of the key in bytes.
Declaration
Swift
public static let SizeInBytes: UInt32 -
The personalized hash of the plaintext key.
Declaration
Swift
let value: GenericHash -
Initialize an encrypted key.
Declaration
Swift
init?(_ value: GenericHash)Parameters
valueThe personalized has of the plaintext key.
Return Value
nilif the size is incorrect.
-
Compare two encrypted keys. Keys need to be comparable in order to do lookups.
Declaration
Swift
public static func == (lhs: EncryptedKey, rhs: EncryptedKey) -> BoolParameters
lhsAn encrypted key.
rhsAnother encrypted key.
Return Value
trueif and only iflhsequals torhs.
-
The hash value, for being able to use encrypted keys in dictionaries or sets. This should not be confused with the personalized hash of the plaintext key.
Declaration
Swift
public var hashValue: Int { get }
-
A textual representation of an encrypted key.
Declaration
Swift
public var description: String { get }
View on GitHub
EncryptedKey Structure Reference