SecureBlackbox 2020 iOS Edition

Questions / Feedback?

mode (property)

Specifies the symmetric cipher mode of operation.

Syntax

@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)
public var mode: SymmetriccryptoModes {
  get {...}
set {...} }
public enum SymmetriccryptoModes : Int32 { case scmDefault = 0 case scmECB = 1 case scmCBC = 2 case scmCTR = 3 case scmCFB8 = 4 case scmGCM = 5 case scmCCM = 6 case scmPoly1305 = 7 }

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

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