AuthenticatedCiphertext
public struct AuthenticatedCiphertext : EncryptedData
                This class represents an authenticated ciphertext, which is an encrypted message including the nonce used for indeterministic encryption and a message authentication code for verifying the integrity of the encrypted message.
- 
                  
                  
The size of the authentication code and the nonce in bytes. For the full size in bytes of an authenticated ciphertext see
sizeInBytes.Declaration
Swift
public static let PrefixSizeInBytes: UInt32 - 
                  
                  
The nonce.
Declaration
Swift
public let nonce: Nonce - 
                  
                  
The message authentication code.
Declaration
Swift
public let authenticationCode: AuthenticationCode - 
                  
                  
The encrypted message.
Declaration
Swift
public let ciphertext: Ciphertext - 
                  
                  
The size of the authenticated ciphertext in bytes. This includes the nonce, authentication code, and the encryped message.
Declaration
Swift
public var sizeInBytes: UInt32 { get } - 
                  
                  
The authenticated ciphertext. This includes the nonce, authentication code, and the encryped message.
Declaration
Swift
public var bytes: Bytes { get } - 
                  
                  
Initializes an authenticated ciphertext.
Declaration
Swift
public init(nonce: Nonce, authenticationCode: AuthenticationCode, ciphertext: Ciphertext)Parameters
nonceThe nonce.
authenticationCodeThe message authentication code.
ciphertextThe encrypted message.
 - 
                  
                  
Inizializes an authenticated ciphertext from a byte array.
Declaration
Swift
public init?(bytes: Bytes)Parameters
bytesThe byte array.
 
            View on GitHub
          
      AuthenticatedCiphertext Structure Reference