Protocols
The following protocols are available globally.
-
To avoid accidental confusion if data is encrypted or not, this protocol can be used to indicate that a data object is encrypted. The actual encrypted bytes can be retrieved by accessing
See morebytes
. In contrast toCiphertext
classes or structs deriving fromEncryptedData
can contain additinal information such as a message authentication code et cetera.Declaration
Swift
public protocol EncryptedData