---
title: ArchiveEncryptionContext.EncryptionMode
framework: applearchive
role: symbol
role_heading: Structure
path: applearchive/archiveencryptioncontext/encryptionmode-swift.struct
---

# ArchiveEncryptionContext.EncryptionMode

Constants that describe the checksum modes of an encryption context.

## Declaration

```swift
struct EncryptionMode
```

## Topics

### Encryption Mode Constants

- [none](applearchive/archiveencryptioncontext/encryptionmode-swift.struct/none.md)
- [ecdhe_p256](applearchive/archiveencryptioncontext/encryptionmode-swift.struct/ecdhe_p256.md)
- [scrypt](applearchive/archiveencryptioncontext/encryptionmode-swift.struct/scrypt.md)
- [symmetric](applearchive/archiveencryptioncontext/encryptionmode-swift.struct/symmetric.md)

## Relationships

### Conforms To

- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)

## See Also

### Getting and setting encryption context properties

- [decryptAttributes()](applearchive/archiveencryptioncontext/decryptattributes().md)
- [archiveIdentifier](applearchive/archiveencryptioncontext/archiveidentifier.md)
- [authData](applearchive/archiveencryptioncontext/authdata.md)
- [checksumMode](applearchive/archiveencryptioncontext/checksummode-swift.property.md)
- [ArchiveEncryptionContext.ChecksumMode](applearchive/archiveencryptioncontext/checksummode-swift.struct.md)
- [containerSize](applearchive/archiveencryptioncontext/containersize.md)
- [encryptionMode](applearchive/archiveencryptioncontext/encryptionmode-swift.property.md)
- [compressionAlgorithm](applearchive/archiveencryptioncontext/compressionalgorithm.md)
- [ArchiveCompression](applearchive/archivecompression.md)
- [compressionBlockSize](applearchive/archiveencryptioncontext/compressionblocksize.md)
- [paddingSize](applearchive/archiveencryptioncontext/paddingsize.md)
- [profile](applearchive/archiveencryptioncontext/profile-swift.property.md)
- [ArchiveEncryptionContext.Profile](applearchive/archiveencryptioncontext/profile-swift.struct.md)
- [rawSize](applearchive/archiveencryptioncontext/rawsize.md)
- [signatureEncryptionKey](applearchive/archiveencryptioncontext/signatureencryptionkey.md)
