SymmetricProviderFactory

SymmetricProviderFactory implements a class factory for symmetric cryptographers.

Namespace:
KpokPatagon.Security.Cryptography
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes

Methods

Create

Creates a new instance of a ISymmetricProvider.

Signature:
public ISymmetricProvider Create(options)
Parameters
Name Type Summary
options CryptographyOptions
Exceptions
Type Summary
CryptographyException Thrown when there is a problem when creating the symmetric cryptographer.
SymmetricKeyNotFoundException Thrown when the symmetrick key was not found.

Create

Creates a new instance of a ISymmetricProvider.

Signature:
public ISymmetricProvider Create(symmetricKey, previousSymmericKey)
Parameters
Name Type Summary
symmetricKey Byte[]
previousSymmericKey Byte[]
Exceptions
Type Summary
ArgumentException Thrown when symmetricKey is null or empty.
CryptographyException Thrown when there is a problem when creating the symmetric cryptographer.
SymmetricKeyNotFoundException Thrown when the symmetrick key was not found.

In this document