---
title: "System::Security::Cryptography::AsymmetricSignatureDeformatter::SetKey method"
url: "https://reference.aspose.com/pub/cpp/system.security.cryptography/asymmetricsignaturedeformatter/setkey/"
product: "Aspose.PUB for C++"
description: "System::Security::Cryptography::AsymmetricSignatureDeformatter::SetKey method. Sets key to use with algorithm in C++."
---

## AsymmetricSignatureDeformatter::SetKey method


Sets key to use with algorithm.

```cpp
virtual void System::Security::Cryptography::AsymmetricSignatureDeformatter::SetKey(System::SharedPtr<AsymmetricAlgorithm> key)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | System::SharedPtr\<AsymmetricAlgorithm\> | Asymmetric algorithm that holds a key to use. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [AsymmetricAlgorithm](../../asymmetricalgorithm/)
* Class [AsymmetricSignatureDeformatter](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.PUB for C++](../../../)
