UseOAEP Property
Whether to use Optimal Asymmetric Encryption Padding (OAEP).
Syntax
ANSI (Cross Platform) int GetUseOAEP();
int SetUseOAEP(int bUseOAEP); Unicode (Windows) BOOL GetUseOAEP();
INT SetUseOAEP(BOOL bUseOAEP);
@property (nonatomic,readwrite,assign,getter=useOAEP,setter=setUseOAEP:) BOOL useOAEP; - (BOOL)useOAEP; - (void)setUseOAEP:(BOOL)newUseOAEP;
#define PID_RSA_USEOAEP 41 IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_RSA_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_RSA_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
FALSE
Remarks
Whether to use Optimal Asymmetric Encryption Padding (OAEP). By default this value is False and the class will use PKCS1.
Note: When set to True the HashAlgorithm is also applicable when calling Encrypt and Decrypt.
Data Type
Boolean