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: DOFCipherA DOFCipher implementation for the given algorithm, strength, and key.
Exceptions
Exception | Condition |
---|---|
DOFSecurityException | If the cipher can not be created. |
DOFSecurityException |
Remarks
See Also