DOFCipheraddFactory Method OpenDOF Object Access Library
Add a block cipher factory to the library.

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

C#
public static void addFactory(
	DOFCipherAlgorithm algorithm,
	DOFCipherStrength strength,
	DOFCipherFactory factory
)

Parameters

algorithm
Type: org.opendof.core.oal.securityDOFCipherAlgorithm
The recognized algorithm to be registered; refer to Algorithm .
strength
Type: org.opendof.core.oal.securityDOFCipherStrength
The strength of the encryption.
factory
Type: org.opendof.core.oal.securityDOFCipherFactory
The block cipher factory implementation; refer to Factory .
Exceptions

ExceptionCondition
DOFSecurityException if the cipher could not be added. This may occur for a number of reasons, including:
  • The algorithm is not recognized by the library
  • A factory was already added for the given algorithm
  • The cipher implementation fails to meet the library's requirements for the given algorithm and strength (e.g., incorrect block size, excessive key state size, or missing required functionality).
DOFSecurityException
Remarks

Add a block cipher factory to the library. Block cipher implementations may already be compiled and pre-registered with the library by default. However, if your library was not built with the cipher your application requires, this method allows an external block cipher to be registered and used. For security reasons, once a block cipher is registered, it cannot be replaced.
See Also

Reference