<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/SHA3_384/init()",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit8SHA3_384VACycfc"
  },
  "title" : "init()"
}
-->

# init()

Creates a SHA3-384 hash function.

```
init()
```

## Discussion

Initialize a new hash function by calling this method if you want to
hash data iteratively, such as when you don’t have a buffer large enough
to hold all the data at once. Provide data blocks to the hash function
using the `update(data:)` or [`update(bufferPointer:)`](/documentation/CryptoKit/SHA3_384/update(bufferPointer:)) method. After
providing all the data, call [`finalize()`](/documentation/CryptoKit/SHA3_384/finalize()) to get the digest.

If your data fits into a single buffer, you can use the `hash(data:)`
method instead, to compute the digest in a single call.

---

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)