Class MetaClientSemanticEncryption
Provides methods that perform key wrapping based on the encryption purpose and use in the Smartcrypt Protocol.
Inherited Members
Namespace: PKWARE.Smartcrypt.MetaClient
Assembly: MetaClient.dll
Syntax
public static class MetaClientSemanticEncryption
Methods
DecryptGroupKey(IMetaClient, String)
Decrypts a GroupKey.
Declaration
[Pure]
[NotNull]
public static byte[] DecryptGroupKey(this IMetaClient metaClient, [NotNull] string data)
Parameters
| Type | Name | Description |
|---|---|---|
| IMetaClient | metaClient | The IMetaClient to use. |
| String | data | The data to decrypt. |
Returns
| Type | Description |
|---|---|
| Byte[] | The decrypted data. |
Exceptions
| Type | Condition |
|---|---|
| MetaClientException | With Category of CategoryUpgrade if the data are newer than understood by this software. With Category of CategoryInternal if the data are in an invalid format. |
DecryptHybrid(IMetaClient, String)
Decrypts a HybridEncryption ciphertext.
Declaration
[Pure]
[NotNull]
public static byte[] DecryptHybrid(this IMetaClient metaClient, [NotNull] string data)
Parameters
| Type | Name | Description |
|---|---|---|
| IMetaClient | metaClient | The IMetaClient to use. |
| String | data | The data to decrypt. |
Returns
| Type | Description |
|---|---|
| Byte[] | The decrypted data. |
Exceptions
| Type | Condition |
|---|---|
| MetaClientException | With Category of CategoryUpgrade if the data are newer than understood by this software. With Category of CategoryInternal if the data are in an invalid format. |