<!--
{
  "documentType" : "article",
  "framework" : "Security",
  "identifier" : "/documentation/Security/security-transform-error-codes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Security Transform Error Codes"
}
-->

# Security Transform Error Codes

Recognize the error codes used in error objects created by a transform on failure.

## Topics

### Constants

[`var kSecTransformErrorAttributeNotFound: CFIndex`](/documentation/Security/kSecTransformErrorAttributeNotFound)

The attribute was not found.

[`var kSecTransformErrorInvalidOperation: CFIndex`](/documentation/Security/kSecTransformErrorInvalidOperation)

An invalid operation was attempted.

[`var kSecTransformErrorNotInitializedCorrectly: CFIndex`](/documentation/Security/kSecTransformErrorNotInitializedCorrectly)

A required initialization is missing: It is most likely a missing required attribute.

[`var kSecTransformErrorMoreThanOneOutput: CFIndex`](/documentation/Security/kSecTransformErrorMoreThanOneOutput)

A transform has an internal routing error that has caused multiple outputs instead of a single discrete output.

[`var kSecTransformErrorInvalidInputDictionary: CFIndex`](/documentation/Security/kSecTransformErrorInvalidInputDictionary)

A dictionary used to import a transform has invalid data.

[`var kSecTransformErrorInvalidAlgorithm: CFIndex`](/documentation/Security/kSecTransformErrorInvalidAlgorithm)

A transform that needs an algorithm as an attribute received an invalid algorithm.

[`var kSecTransformErrorInvalidLength: CFIndex`](/documentation/Security/kSecTransformErrorInvalidLength)

A transform that needs a length such as a digest transform has been given an invalid length.

[`var kSecTransformErrorInvalidType: CFIndex`](/documentation/Security/kSecTransformErrorInvalidType)

An invalid type has been set on an attribute.

[`var kSecTransformErrorInvalidInput: CFIndex`](/documentation/Security/kSecTransformErrorInvalidInput)

The input set on a transform is invalid.

[`var kSecTransformErrorNameAlreadyRegistered: CFIndex`](/documentation/Security/kSecTransformErrorNameAlreadyRegistered)

A custom transform of a particular name has already been registered.

[`var kSecTransformErrorUnsupportedAttribute: CFIndex`](/documentation/Security/kSecTransformErrorUnsupportedAttribute)

An illegal action such as setting a read-only attribute has occurred.

[`var kSecTransformOperationNotSupportedOnGroup: CFIndex`](/documentation/Security/kSecTransformOperationNotSupportedOnGroup)

An illegal action on a group transform has occurred.

[`var kSecTransformErrorMissingParameter: CFIndex`](/documentation/Security/kSecTransformErrorMissingParameter)

A transform is missing a required attribute.

[`var kSecTransformErrorInvalidConnection: CFIndex`](/documentation/Security/kSecTransformErrorInvalidConnection)

A connection between transforms in different groups was attempted.

[`var kSecTransformTransformIsExecuting: CFIndex`](/documentation/Security/kSecTransformTransformIsExecuting)

An illegal operation was called on a Transform while it was executing.

[`var kSecTransformInvalidOverride: CFIndex`](/documentation/Security/kSecTransformInvalidOverride)

An illegal override was given to a custom transform.

[`var kSecTransformTransformIsNotRegistered: CFIndex`](/documentation/Security/kSecTransformTransformIsNotRegistered)

A custom transform was asked to be created but the transform has not been registered.

[`var kSecTransformErrorAbortInProgress: CFIndex`](/documentation/Security/kSecTransformErrorAbortInProgress)

The abort attribute has been set and the transform is in the process of shutting down.

[`var kSecTransformErrorAborted: CFIndex`](/documentation/Security/kSecTransformErrorAborted)

The transform was aborted.

[`var kSecTransformInvalidArgument: CFIndex`](/documentation/Security/kSecTransformInvalidArgument)

An invalid argument was given to a Transform API.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)