IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

Algorithm Property

The Salsa20 algorithm.

Syntax

ANSI (Cross Platform)
int GetAlgorithm();
int SetAlgorithm(int iAlgorithm); Unicode (Windows) INT GetAlgorithm();
INT SetAlgorithm(INT iAlgorithm);

Possible Values

SA_SALSA20(0), 
SA_XSALSA20(1)
@property (nonatomic,readwrite,assign,getter=algorithm,setter=setAlgorithm:) int algorithm;
- (int)algorithm;
- (void)setAlgorithm:(int)newAlgorithm;

Possible Values

SA_SALSA20(0), 
SA_XSALSA20(1)
#define PID_SALSA20_ALGORITHM 1

IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_Salsa20_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_Salsa20_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

1

Remarks

This property specifies the Salsa implementation to use. Possible values are:

  • 0 (Salsa20)
  • 1 (XSalsa20 - default)

The XSalsa20 algorithm is recommended and generally to be considered more secure. The Salsa20 algorithm is fully supported for implementations that require this. In addition the reduced 12 and 8 round variants of Salsa20 are also supported, please see SalsaRounds for details.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 C++ Edition - Version 20.0 [Build 8155]