---
title: "init(copying:)"
framework: cryptokit
role: symbol
role_heading: Initializer
path: "cryptokit/symmetrickey/init(copying:)"
---

# init(copying:)

Creates a key from the given data.

## Declaration

```swift
@export(implementation) init(copying bytes: RawSpan)
```

## Parameters

- `bytes`: The span of bytes from which to create the key.
