EncryptedKey

struct EncryptedKey
  • Compare two encrypted keys. Keys need to be comparable in order to do lookups.

    Declaration

    Swift

    public static func == (lhs: EncryptedKey, rhs: EncryptedKey) -> Bool

    Parameters

    lhs

    An encrypted key.

    rhs

    Another encrypted key.

    Return Value

    true if and only if lhs equals to rhs.

  • 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 }