CryptoSys PKI Toolkit Manual

RSA_KeyBits

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

VB6/VBA Syntax

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

nRet = RSA_KeyBits(strKey)

Parameters

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

C/C++ Syntax

long _stdcall RSA_KeyBits(const char *szRsaKey64);

Returns (VB6/C)

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

.NET Equivalent

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

Remarks

Example

See Also

RSA_KeyBytes

[Contents] [Index]

[HOME]   [NEXT: RSA_KeyBytes...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.