The BlowfishECB type exposes the following members.

Constructors

  NameDescription
Public methodBlowfishECB()()()()
Zero constructor, properly initializes an instance. Initialize afterwards to set up a valid key!
Public methodBlowfishECB(array<Byte>[]()[][], Int32, Int32)
Initializes a new instance of the BlowfishECB class

Methods

  NameDescription
Public methodClone
Public methodDecrypt
Decrypts single bytes.
Public methodDecryptBlock
Decrypts a single block.
Public methodEncrypt
Encrypts byte buffers.
Public methodEncryptBlock
Encrypts a single block.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Resets the instance with new or initial key material. Allows the switch of keys at runtime without any new internal object allocation.
Public methodInvalidate
Deletes all internal data structures and invalidates this instance.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRunSelfTest
To execute a selftest.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Protected fieldblock
Single block cache.
Public fieldStatic memberBLOCK_SIZE
The block size in bytes.
Protected fieldisWeakKey
1 if a weak key was detected, 0 if not and -1 if it hasn't been determined yet.
Public fieldStatic memberMAX_KEY_LENGTH
The maximum and recommended key size in bytes.
Protected fieldpbox
Runtime p-box.
Protected fieldStatic memberPBOX_INIT
The P-box initialization data.
Protected fieldStatic memberSBOX_INIT_1
The first S-box initialization data.
Protected fieldStatic memberSBOX_INIT_2
The second S-box initialization data.
Protected fieldStatic memberSBOX_INIT_3
The third S-box initialization data.
Protected fieldStatic memberSBOX_INIT_4
The fourth S-box initialization data.
Protected fieldsbox1
Runtime s-box #1.
Protected fieldsbox2
Runtime s-box #2.
Protected fieldsbox3
Runtime s-box #3.
Protected fieldsbox4
Runtime s-box #4.

Properties

  NameDescription
Public propertyIsWeakKey
To check if the key used is weak.

See Also