KeyProtection Property
Specifies the level of protection applied to the secret key.
Syntax
ANSI (Cross Platform) int GetKeyProtection();
int SetKeyProtection(int iKeyProtection); Unicode (Windows) INT GetKeyProtection();
INT SetKeyProtection(INT iKeyProtection);
Possible Values
PPT_NONE(0),
PPT_LOW(1),
PPT_NORMAL(2),
PPT_HIGH(3)
@property (nonatomic,readwrite,assign,getter=keyProtection,setter=setKeyProtection:) int keyProtection; - (int)keyProtection; - (void)setKeyProtection:(int)newKeyProtection;
Possible Values
PPT_NONE(0),
PPT_LOW(1),
PPT_NORMAL(2),
PPT_HIGH(3)
#define PID_PGPKEYMANAGER_KEYPROTECTION 9 SECUREBLACKBOX_EXTERNAL void* SECUREBLACKBOX_CALL SecureBlackbox_PGPKeyManager_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_PGPKeyManager_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
Remarks
Specifies the level of protection applied to the secret key.
Allowed values:
pptNone | 0 | Key is not encrypted |
pptLow | 1 | Only the password hash is used to derive the secret key |
pptNormal | 2 | Password hash with salt is used to derive the secret key |
pptHigh | 3 | Hash from multiple passwords and salt are used for key derivation |
This property is not available at design time.
Data Type
Integer