algorithm (property)
The TEA algorithm.
Syntax
@property (nonatomic,readwrite,assign,getter=algorithm,setter=setAlgorithm:) int algorithm; - (int)algorithm; - (void)setAlgorithm:(int)newAlgorithm;
/* Possible Values */
TA_XXTEA(0),
TA_XTEA(1),
TA_TEA(2)
public var algorithm: TeaAlgorithms { get {...}
set {...} }
public enum TeaAlgorithms : Int32 { case taXXTEA = 0 case taXTEA = 1 case taTEA = 2 }
Default Value
0
Remarks
This property specifies the TEA algorithm to use. It is recommended to use the XXTEA (Corrected Block TEA) algorithm for security reasons. Possible values are:
0 (taXXTEA - default) | Correct Block TEA |
1 (taXTEA) | eXtended TEA |
2 (taTEA) | TEA (Tiny Encryption Algorithm) |