Enumerations

The following enumerations are available globally.

  • AES

    The Advanced Encryption Standard (AES)

    See more

    Declaration

    Swift

    public enum AES
  • ChaCha20-Poly1305 as described in RFC 7539 with 96-bit nonces.

    See more

    Declaration

    Swift

    public enum ChaChaPoly : Cipher
  • Errors thrown in CryptoKit

    • incorrectKeySize: A key is being deserialized with an incorrect key size.
    • incorrectParameterSize: The number of bytes passed for a given argument is incorrect.
    • authenticationFailure: The authentication tag or signature is incorrect.
    • underlyingCoreCryptoError: An unexpected error at a lower-level occured.
    • wrapFailure: Failed to wrap key
    • unwrapFailure: Failed to unwrap key
    See more

    Declaration

    Swift

    public enum CryptoKitError : Error
  • Errors encountered when parsing ASN.1 formatted keys.

    See more

    Declaration

    Swift

    public enum CryptoKitASN1Error : Error
  • Algorithms that we support for legacy reasons but that are insecure to use. Do not adopt in new protocols.

    See more

    Declaration

    Swift

    public enum Insecure
  • The NIST P-256 Elliptic Curve.

    See more

    Declaration

    Swift

    public enum P256
  • The NIST P-384 Elliptic Curve.

    See more

    Declaration

    Swift

    public enum P384
  • The NIST P-521 Elliptic Curve.

    See more

    Declaration

    Swift

    public enum P521
  • The Curve25519 Elliptic Curve.

    See more

    Declaration

    Swift

    public enum Curve25519