---
title: "init(derRepresentation:)"
framework: cryptokit
role: symbol
role_heading: Initializer
path: "cryptokit/p256/signing/ecdsasignature/init(derrepresentation:)"
---

# init(derRepresentation:)

Creates a P-256 digital signature from a Distinguished Encoding Rules (DER) encoded representation.

## Declaration

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

## Parameters

- `derRepresentation`: The DER-encoded representation of the signature.

## See Also

### Creating a signature

- [init(rawRepresentation:)](cryptokit/p256/signing/ecdsasignature/init(rawrepresentation:).md)
