---
title: "init(integrityCheckedRepresentation:)"
framework: cryptokit
role: symbol
role_heading: Initializer
path: "cryptokit/mlkem1024/privatekey/init(integritycheckedrepresentation:)"
---

# init(integrityCheckedRepresentation:)

Initializes a private key from an integrity-checked representation.

## Declaration

```swift
init<D>(integrityCheckedRepresentation: D) throws where D : DataProtocol
```

## Parameters

- `integrityCheckedRepresentation`: A representation of the private key that includes the seed value, and a hash of the corresponding public key.

## See Also

### Creating a private key

- [generate()](cryptokit/mlkem1024/privatekey/generate().md)
- [init()](cryptokit/mlkem1024/privatekey/init().md)
- [init(seedRepresentation:publicKey:)](cryptokit/mlkem1024/privatekey/init(seedrepresentation:publickey:).md)
