CryptoKitError

public enum CryptoKitError : Error

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