DOFCiphercreate Method OpenDOF Object Access Library
Create a block cipher for the given algorithm, strength, and key.

Namespace: org.opendof.core.oal.security
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public static DOFCipher create(
	DOFCipherAlgorithm algorithm,
	DOFCipherStrength strength,
	byte[] key
)

Parameters

algorithm
Type: org.opendof.core.oal.securityDOFCipherAlgorithm
The recognized algorithm.
strength
Type: org.opendof.core.oal.securityDOFCipherStrength
The security strength as defined by the DOF Technical Committee.
key
Type: SystemByte
The 32-byte key for this cipher.

Return Value

Type: DOFCipher
A DOFCipher implementation for the given algorithm, strength, and key.
Exceptions

ExceptionCondition
DOFSecurityExceptionIf the cipher can not be created.
DOFSecurityException
Remarks

Create a block cipher for the given algorithm, strength, and key. This is used internally by the OAL to encrypt and decrypt.
See Also

Reference