CryptoSys PKI Pro Manual

RSA_KeyBits

Returns the length of key in bits given the public or private key string.

VBA/VB6 Syntax

Public Declare Function RSA_KeyBits Lib "diCrPKI.dll" (ByVal strKey As String) As Long

nRet = RSA_KeyBits(strKey)

C/C++ Syntax

long __stdcall RSA_KeyBits(const char *szKeyString);

Parameters

szKeyString
[in] containing the RSA private or public key string.

Returns (VBA/C)

returns the number of significant bits in the key modulus or a negative error code.

VBA Wrapper Syntax

Public Function rsaKeyBits (szKeyString As String) As Long

.NET Equivalent

Rsa.KeyBits Method (String)
Rsa.KeyBits Method (StringBuilder)

C++ (STL) Equivalent

static int dipki::Rsa::KeyBits (const std::string &keyStr)

Python Equivalent

static Rsa.key_bits(keystr)

Remarks

Example

See Also

RSA_KeyBytes

[Contents] [Index]

[PREV: RSA_GetPublicKeyFromCert...]   [Contents]   [Index]   
   [NEXT: RSA_KeyBytes...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.