<!--
{
  "documentType" : "article",
  "framework" : "GSS",
  "identifier" : "/documentation/GSS/message-protection",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Message Protection"
}
-->

# Message Protection

Provide cryptographic protection to secure message integrity.

## Topics

### Message Wrapping and Verification

Apply a Message Integrity Code (MIC) to a message to guarantee its integrity. Ensure confidentiality using encryption and decryption.

[`gss_get_mic`](/documentation/GSS/gss_get_mic(_:_:_:_:_:))

Returns a token that contains the MIC for a message.

[`gss_verify_mic`](/documentation/GSS/gss_verify_mic(_:_:_:_:_:))

Returns an indication of whether the integrity of a message is intact, given its MIC token.

[`gss_wrap`](/documentation/GSS/gss_wrap(_:_:_:_:_:_:_:))

Returns a secure message created by calculating and attaching a MIC to the input message, and then optionally encrypting it.

[`gss_unwrap`](/documentation/GSS/gss_unwrap(_:_:_:_:_:_:))

Returns the original version of a secure message by optionally decrypting it and then extracting and verifying the attached MIC.

[`gss_sign`](/documentation/GSS/gss_sign(_:_:_:_:_:))

Returns a digital signature for a message.

[`gss_verify`](/documentation/GSS/gss_verify(_:_:_:_:_:))

Returns a flag that indicates the integrity of a message’s digital signature.

[`gss_seal`](/documentation/GSS/gss_seal(_:_:_:_:_:_:_:))

Returns a secure message created by calculating and attaching a MIC to the input message, and then optionally encrypting it.

[`gss_unseal`](/documentation/GSS/gss_unseal(_:_:_:_:_:_:))

Returns the original version of a secure message by optionally decrypting it and then extracting and verifying the attached MIC.



---

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)