Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kBlowfishCipher_Construct | ( | kBlowfishCipher * | blowfish,
|  | const kByte * | key,
|  | kSize | keyLength,
|  | kCipherPadding | padding,
|  | kCipherMode | cipherMode,
|  | kAlloc | allocator
| ) |  |

Constructs a kBlowfishCipher instance.

Parameters

  blowfish | Receives constructed blowfish cipher object.
  key | Key.
  keyLength | Length of the key.
  padding | Padding mode to be used in encryption.
  cipherMode | Cipher mode used for encryption and decryption.
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.