Contents

mainKey

The main key used to append data to an existing archive.

Declaration

var mainKey: SymmetricKey? { get set }

Discussion

Use the main key to append data to an existing AEA archive with the encryptionStream(appendingTo:encryptionContext:flags:threadCount:) function.

You can use the original credentials for symmetric key or password encryption. You need this key to reopen archives created with the ECDHE profiles.

The main key can’t be used to open the stream for decryption.

See Also

Setting and retrieving keys