IPWorks OpenPGP 2020 C++ Edition

Questions / Feedback?

KeyPublicKeyLength Property

The length of the public key in bits.

Syntax

ANSI (Cross Platform)
int GetKeyPublicKeyLength();

Unicode (Windows)
INT GetKeyPublicKeyLength();
@property (nonatomic,readonly,assign,getter=keyPublicKeyLength) int keyPublicKeyLength;
- (int)keyPublicKeyLength;
#define PID_KEYMGR_KEYPUBLICKEYLENGTH 11

IPWORKSOPENPGP_EXTERNAL void* IPWORKSOPENPGP_CALL IPWorksOpenPGP_KeyMgr_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

Default Value

0

Remarks

The length of the public key in bits. Common values are 512, 1024, and 2048.

If the KeyPublicKeyAlgorithm property is ECDSA or EcDSA the length of the public key is determined by the KeyCurve. Possible lenghts are:

CurvePublic Key Length (bits)
secp256r1256
secp384r1384
secp521r1521
Ed25519 256
secp256k1256

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

Data Type

Integer

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