Click or drag to resize

Cipher Class

Generic Block Cipher
Inheritance Hierarchy
SystemObject
  CryptoSysPKICipher

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public class Cipher

The Cipher type exposes the following members.

Methods
 NameDescription
Public methodStatic memberBlockBytes Return the block size in bytes for a given cipher algorithm.
Public methodStatic memberDecrypt(Byte, Byte, Byte, CipherAlgorithm, Mode) Decrypt data block in byte array.
Public methodStatic memberDecrypt(String, String, String, CipherAlgorithm, Mode) Decrypt data block as hex-encoded string.
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 methodStatic memberDecryptAEAD(Byte, Byte, Byte, AeadAlgorithm) Decrypt data using the AES-GCM authenticated encryption algorithm.
Public methodStatic memberDecryptAEAD(Byte, Byte, Byte, Byte, AeadAlgorithm, CipherOpts) Decrypt data using the AES-GCM authenticated encryption algorithm with AAD and options.
Public methodStatic memberEncrypt(Byte, Byte, Byte, CipherAlgorithm, Mode) Encrypt data block in byte array.
Public methodStatic memberEncrypt(String, String, String, CipherAlgorithm, Mode) Encrypt data block as hex-encoded string.
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 memberEncryptAEAD(Byte, Byte, Byte, AeadAlgorithm) Encrypt data using the AES-GCM authenticated encryption algorithm.
Public methodStatic memberEncryptAEAD(Byte, Byte, Byte, Byte, AeadAlgorithm, CipherOpts) Encrypt data using the AES-GCM authenticated encryption algorithm with AAD and options.
Public methodStatic memberFileDecrypt(String, String, Byte, Byte, CipherAlgorithm, Mode, Padding, CipherOpts) Decrypt a file.
Public methodStatic memberFileDecrypt(String, String, String, String, CipherAlgorithm, Mode, Padding, CipherOpts) Decrypt a file passing key and IV as hex strings.
Public methodStatic memberFileEncrypt(String, String, Byte, Byte, CipherAlgorithm, Mode, Padding, CipherOpts) Encrypt a file.
Public methodStatic memberFileEncrypt(String, String, String, String, CipherAlgorithm, Mode, Padding, CipherOpts) Encrypt a file passing key and IV as hex strings.
Public methodStatic memberKeyBytes Return the key size in bytes for a given cipher algorithm.
Public methodStatic memberKeyUnwrap Unwrap (decrypt) key material with a key-encryption key.
Public methodStatic memberKeyWrap Wrap (encrypt) key material with a key-encryption key.
Public methodStatic memberPad(Byte, CipherAlgorithm, Padding) Pad byte array to correct length for ECB and CBC encryption.
Public methodStatic memberPad(String, CipherAlgorithm, Padding) Pad hex-encoded string to correct length for ECB and CBC encryption.
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.
Top
See Also