CryptoSys PKI Pro Manual

RSA_KeyBytes

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

VBA/VB6 Syntax

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

nRet = RSA_KeyBytes(strKey)

C/C++ Syntax

long __stdcall RSA_KeyBytes(const char *szKeyString);

Parameters

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

Returns (VBA/C)

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

VBA Wrapper Syntax

Public Function rsaKeyBytes (szKeyString As String) As Long

.NET Equivalent

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

C++ (STL) Equivalent

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

Python Equivalent

static Rsa.key_bytes(keystr)

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]

[PREV: RSA_KeyBits...]   [Contents]   [Index]   
   [NEXT: RSA_KeyHashCode...]

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