Click or drag to resize

Cipher Class

Block cipher utilities
Inheritance Hierarchy
SystemObject
  CryptoSysAPICipher

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public class Cipher

The Cipher type exposes the following members.

Properties
 NameDescription
Public propertyErrCode Last error code (for Init, Update and Final object methods only)
Top
Methods
 NameDescription
Public methodStatic memberBlockBytes Return the block size in bytes for a given cipher algorithm
Public methodStatic memberDecrypt(Byte, Byte, Byte, CipherAlgorithm, Mode, Padding, CipherOpts) Decrypt data in a byte array using the specified block cipher algorithm, mode and padding.
Public methodStatic memberDecrypt(String, String, String, CipherAlgorithm, Mode, Padding, CipherOpts) Decrypt hex-encoded data using specified block cipher algorithm, mode and padding.
Public methodDispose Dispose of this object and clear any stored data.
Public methodStatic memberEncrypt(Byte, Byte, Byte, CipherAlgorithm, Mode, Padding, CipherOpts) Encrypt data in a byte array using the specified block cipher algorithm, mode and padding.
Public methodStatic memberEncrypt(String, String, String, CipherAlgorithm, Mode, Padding, CipherOpts) Encrypt hex-encoded data using specified block cipher algorithm, mode and padding.
Public methodStatic memberFileDecrypt Decrypt a file with block cipher
Public methodStatic memberFileEncrypt Encrypt a file with block cipher
Public methodInitDecrypt(Byte, Byte, CipherAlgorithm, Mode) Initializes with key, iv, algorithm and mode ready to start decrypting with repeated update operations.
Public methodInitDecrypt(String, String, CipherAlgorithm, Mode) Initializes with hex-encoded key, iv, algorithm and mode ready to start decrypting with repeated update operations.
Public methodInitEncrypt(Byte, Byte, CipherAlgorithm, Mode) Initializes with key, iv, algorithm and mode ready to start encrypting with repeated update operations.
Public methodInitEncrypt(String, String, CipherAlgorithm, Mode) Initializes with hex-encoded key, iv, algorithm and mode ready to start encrypting with repeated update operations.
Public methodStatic memberInstance Create the one and only instance
Public methodStatic memberKeyBytes Return the key size in bytes for a given cipher algorithm
Public methodStatic memberKeyUnwrap Unwraps (decrypts) key material with a key-encryption key
Public methodStatic memberKeyWrap Wraps (encrypts) key material with a key-encryption key
Public methodStatic memberPad(Byte, CipherAlgorithm, Padding) Pad byte array for block cipher.
Public methodStatic memberPad(String, CipherAlgorithm, Padding) Pads hex-encoded string for block cipher.
Public methodStatic memberUnpad(Byte, CipherAlgorithm, Padding) Remove padding from an encryption block.
Public methodStatic memberUnpad(String, CipherAlgorithm, Padding) Remove padding from a hex-encoded encryption block.
Public methodUpdate(Byte) Transform byte input data with previously initialized key, mode and direction.
Public methodUpdate(String) Transform hex string data with previously initialized key, mode and direction
Top
See Also