---
title: "x963DerivedSymmetricKey(using:sharedInfo:outputByteCount:)"
framework: cryptokit
role: symbol
role_heading: Instance Method
path: "cryptokit/sharedsecret/x963derivedsymmetrickey(using:sharedinfo:outputbytecount:)"
---

# x963DerivedSymmetricKey(using:sharedInfo:outputByteCount:)

Derives a symmetric encryption key from the secret using x9.63 key derivation.

## Declaration

```swift
func x963DerivedSymmetricKey<H, SI>(using hashFunction: H.Type, sharedInfo: SI, outputByteCount: Int) -> SymmetricKey where H : HashFunction, SI : DataProtocol
```

## Parameters

- `hashFunction`: The hash function to use for key derivation.
- `sharedInfo`: The shared information to use for key derivation.
- `outputByteCount`: The length in bytes of resulting symmetric key.

## Return Value

Return Value The derived symmetric key.

## See Also

### Deriving keys

- [hkdfDerivedSymmetricKey(using:salt:sharedInfo:outputByteCount:)](cryptokit/sharedsecret/hkdfderivedsymmetrickey(using:salt:sharedinfo:outputbytecount:).md)
