SecureBlackbox 2020 Kotlin Edition

Questions / Feedback?

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.

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 Kotlin Edition - Version 20.0 [Build 8063]