IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

Algorithm Property

The random number algorithm.

Syntax

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

Possible Values

RA_ISAAC(0), 
RA_MSCRYPTO_API(1),
RA_PLATFORM(2),
RA_SECURE_PLATFORM(3),
RA_RC4RANDOM(4)
@property (nonatomic,readwrite,assign,getter=algorithm,setter=setAlgorithm:) int algorithm;
- (int)algorithm;
- (void)setAlgorithm:(int)newAlgorithm;

Possible Values

RA_ISAAC(0), 
RA_MSCRYPTO_API(1),
RA_PLATFORM(2),
RA_SECURE_PLATFORM(3),
RA_RC4RANDOM(4)
#define PID_EZRAND_ALGORITHM 1

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

Default Value

0

Remarks

This property specifies the algorithm used to generate the random number or bytes. Possible values are:

0 (raISAAC) ISAAC (indirection, shift, accumulate, add, and count)
1 (raMSCryptoAPI) The Microsoft Crypto API. This is only available on Windows.
2 (raPlatform) The platform's random implementation.
3 (raSecurePlatform) The platform's secure random implementation. This is only applicable in .NET and Java. In .NET the class uses the "RNGCryptoServiceProvider" class. In Java the class uses the "SecureRandom" class.
4 (raRC4Random) RC4 based random implementation.

Data Type

Integer

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