<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZEFISignatureSHA256Hash/initWithData:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZEFISignatureSHA256Hash(im)initWithData:"
  },
  "title" : "initWithData:"
}
-->

# initWithData:

Creates a signature from SHA-256 hash data.

```
- (instancetype) initWithData:(NSData *) data;
```

## Parameters

`data`

Data containing the SHA-256 hash.

## Discussion

The hash data must be exactly 32 bytes in length. If data isn’t exactly 32 bytes, the framework raises an exception.

---

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)