Table of Contents

Interface IAlgorithmProvider

Namespace
The.Security.Cryptography
Assembly
Instagile.dll

Factory for platform-specific cryptographic algorithms.

public interface IAlgorithmProvider

Methods

CreateCipher()

Initialise a block-cipher algorithm with a generated key.

ISymmetricAlgorithm CreateCipher()

Returns

ISymmetricAlgorithm

CreateCipherAsync(byte[])

Initialise a block-cipher algorithm with a supplied key.

Task<ISymmetricAlgorithm> CreateCipherAsync(byte[] material)

Parameters

material byte[]

Returns

Task<ISymmetricAlgorithm>

CreateCipherAsync(string, byte[])

Initialise a block-cipher algorithm with a supplied password (from which a key will be derived).

Task<ISymmetricAlgorithm> CreateCipherAsync(string password, byte[] salt)

Parameters

password string
salt byte[]

Returns

Task<ISymmetricAlgorithm>