Mode Property
Specifies the symmetric cipher mode of operation.
Syntax
public var mode: SymmetriccryptoModes
public enum class SymmetriccryptoModes(val value: Int) {
scmDefault(0),
scmECB(1),
scmCBC(2),
scmCTR(3),
scmCFB8(4),
scmGCM(5),
scmCCM(6),
scmPoly1305(7);
}
Default Value
0
Remarks
Use this property to specify the mode of operation as required by your environment. The defaultsetting is CBC.
scmDefault | 0 | The default mode in current circumstances. |
scmECB | 1 | ECB (electronic code book) mode. This is insecure, unless you know how to use it right. |
scmCBC | 2 | CBC (cipher block chaining mode) |
scmCTR | 3 | Counter mode |
scmCFB8 | 4 | Cipher feedback mode |
scmGCM | 5 | Galois counter mode |
scmCCM | 6 | CCM mode |