ContentEncryptionAlgorithm Property

The algorithm used to encrypt the content.

Syntax

ANSI (Cross Platform)
int GetContentEncryptionAlgorithm();
int SetContentEncryptionAlgorithm(int iContentEncryptionAlgorithm); Unicode (Windows) INT GetContentEncryptionAlgorithm();
INT SetContentEncryptionAlgorithm(INT iContentEncryptionAlgorithm);

Possible Values

CEA_A128CBC_HS256(0), 
CEA_A192CBC_HS384(1),
CEA_A256CBC_HS512(2),
CEA_A128GCM(3),
CEA_A192GCM(4),
CEA_A256GCM(5)
@property (nonatomic,readwrite,assign,getter=contentEncryptionAlgorithm,setter=setContentEncryptionAlgorithm:) int contentEncryptionAlgorithm;
- (int)contentEncryptionAlgorithm;
- (void)setContentEncryptionAlgorithm:(int)newContentEncryptionAlgorithm;

Possible Values

CEA_A128CBC_HS256(0), 
CEA_A192CBC_HS384(1),
CEA_A256CBC_HS512(2),
CEA_A128GCM(3),
CEA_A192GCM(4),
CEA_A256GCM(5)
#define PID_JWT_CONTENTENCRYPTIONALGORITHM 17

IPWORKSAUTH_EXTERNAL void* IPWORKSAUTH_CALL IPWorksAuth_JWT_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSAUTH_EXTERNAL int IPWORKSAUTH_CALL IPWorksAuth_JWT_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property specifies the algorithm used to encrypt the content.

The following values are supported.

AlgorithmDescription
0 (ceaA128CBC_HS256 - default) AES_128_CBC_HMAC_SHA_256 authenticated encryption algorithm
1 (ceaA192CBC_HS384) AES_192_CBC_HMAC_SHA_384 authenticated encryption algorithm
2 (ceaA256CBC_HS512) AES_256_CBC_HMAC_SHA_512 authenticated encryption algorithm
3 (ceaA128GCM) AES GCM using 128-bit key
4 (ceaA192GCM) AES GCM using 192-bit key
5 (ceaA256GCM) AES GCM using 256-bit key

Data Type

Integer

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