SecureBlackbox Lite 2020 C++ Edition

Questions / Feedback?

Mode Property

Specifies the symmetric cipher mode of operation.

Syntax

ANSI (Cross Platform)
int GetMode();
int SetMode(int iMode); Unicode (Windows) INT GetMode();
INT SetMode(INT iMode);

Possible Values

SCM_DEFAULT(0), 
SCM_ECB(1),
SCM_CBC(2),
SCM_CTR(3),
SCM_CFB8(4),
SCM_GCM(5),
SCM_CCM(6),
SCM_POLY_1305(7)
@property (nonatomic,readwrite,assign,getter=mode,setter=setMode:) int mode;
- (int)mode;
- (void)setMode:(int)newMode;

Possible Values

SCM_DEFAULT(0), 
SCM_ECB(1),
SCM_CBC(2),
SCM_CTR(3),
SCM_CFB8(4),
SCM_GCM(5),
SCM_CCM(6),
SCM_POLY_1305(7)
#define PID_SYMMETRICCRYPTO_MODE 21

SECUREBLACKBOXLITE_EXTERNAL void* SECUREBLACKBOXLITE_CALL SecureBlackboxLite_SymmetricCrypto_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
SECUREBLACKBOXLITE_EXTERNAL int SECUREBLACKBOXLITE_CALL SecureBlackboxLite_SymmetricCrypto_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

Use this property to specify the mode of operation as required by your environment. The defaultsetting is CBC.

scmDefault0The default mode in current circumstances.

scmECB1ECB (electronic code book) mode. This is insecure, unless you know how to use it right.

scmCBC2CBC (cipher block chaining mode)

scmCTR3Counter mode

scmCFB84Cipher feedback mode

scmGCM5Galois counter mode

scmCCM6CCM mode

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 C++ Edition - Version 20.0 [Build 8166]