CryptoSys PKI Toolkit Manual

RSA_KeyBytes

Returns the length of key in complete bytes (octets) given the public or private key string.

VB6/VBA Syntax

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

nRet = RSA_KeyBytes(strKey)

Parameters

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

C/C++ Syntax

long _stdcall RSA_KeyBytes(const char *szRsaKey64);

Returns (VB6/C)

Long: returns the number of complete bytes (8-bit octets) in the key modulus or a negative error code.

.NET Equivalent

Rsa.KeyBytes Method (String)
Rsa.KeyBytes Method (StringBuilder)

Remarks

Use this function to find out the required length of the encryption block for "raw" RSA encryption.

Example

See Also

RSA_KeyBits RSA_RawPublic RSA_RawPrivate

[Contents] [Index]

[HOME]   [NEXT: RSA_KeyHashCode...]

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