IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

CipherMode Property

The cipher mode of operation.

Syntax

ANSI (Cross Platform)
int GetCipherMode();
int SetCipherMode(int iCipherMode); Unicode (Windows) INT GetCipherMode();
INT SetCipherMode(INT iCipherMode);

Possible Values

CM_CBC(0), 
CM_ECB(1),
CM_OFB(2),
CM_CFB(3),
CM_CTS(4),
CM_8OFB(5),
CM_8CFB(7)
@property (nonatomic,readwrite,assign,getter=cipherMode,setter=setCipherMode:) int cipherMode;
- (int)cipherMode;
- (void)setCipherMode:(int)newCipherMode;

Possible Values

CM_CBC(0), 
CM_ECB(1),
CM_OFB(2),
CM_CFB(3),
CM_CTS(4),
CM_8OFB(5),
CM_8CFB(7)
#define PID_IDEA_CIPHERMODE 1

IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_IDEA_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_IDEA_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

The cipher mode of operation.

Possible values are:

0 (cmCBC - default) The Cipher Block Chaining (CBC) is a mode of operation for a block cipher, one in which a sequence of bits is encrypted as a single unit or block with a cipher key applied to the entire block.
1 (cmECB) The Electronic Codebook (ECB) mode encrypts each block separately. Important: It is not recommend to use this model when encrypting more than one block because it may introduce security risks.
2 (cmOFB) The Output Feedback (n-bit, NOFB) mode makes a block cipher into a synchronous stream cipher. It has some similarities to CFB mode in that it permits encryption of differing block sizes, but has the key difference that the output of the encryption block function is the feedback (instead of the ciphertext).
3 (cmCFB) The Cipher Feedback (CFB) mode processes a small amount of incremental text into ciphertext, rather than processing a whole block at one time.
4 (cmCTS) The Cipher Text Stealing (CTS) mode handles any length of plain text and produces cipher text whose length matches the plain text length. This mode behaves like the CBC mode for all but the last two blocks of the plain text.
5 (cm8OFB) 8-bit Output Feedback (OFB) cipher mode.
7 (cm8CFB) 8-bit Cipher Feedback (CFB) cipher mode.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 C++ Edition - Version 20.0 [Build 8155]