KeyForSigning Property

Whether the CMK is for signing or encryption.

Syntax

ANSI (Cross Platform)
int GetKeyForSigning(int iKeyIndex);

Unicode (Windows)
BOOL GetKeyForSigning(INT iKeyIndex);
- (BOOL)keyForSigning:(int)keyIndex;
#define PID_AMAZONKMS_KEYFORSIGNING 40

CLOUDKEYS_EXTERNAL void* CLOUDKEYS_CALL CloudKeys_AmazonKMS_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

CLOUDKEYS_EXTERNAL int CLOUDKEYS_CALL CloudKeys_AmazonKMS_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

FALSE

Remarks

Whether the CMK is for signing or encryption.

This property reflects whether the CMK's usage is signing/verification (true) or encryption/decryption (false).

A CMK's usage determines which cryptographic operations it can be used for. For example, a CMK with signing/verification usage can be used for Sign and Verify operations, but not for Encrypt, Decrypt or ReEncrypt operations.

The KeyIndex parameter specifies the index of the item in the array. The size of the array is controlled by the KeyCount property.

This property is read-only and not available at design time.

Data Type

Boolean

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Keys 2020 C++ Edition - Version 20.0 [Build 8157]