> On 8月10日, 下午12时52分, comfortebly_numb <[EMAIL PROTECTED]> wrote:
> Hi,

How can i convert it to a

> format so that i can use it in crypto++.???????


Hi,

> I am trying to use RSA keyapirs generated by other library in crypto++
> But the keys generated are in raw bytes.

Use an alternate constructor of the integer class:

// convert from big-endian byte array
Integer (const byte *encodedInteger, size_t byteCount, Signedness s=UNSIGNED)

Reference http://cryptopp.com/docs/ref/class_integer.html


>  In other words crypto ++ expects the private key and
>  public key in what format

BER or DER Encode it if you wish (is this from OpenSSL?) Then use a
Load() from an appropriate class. See the RSA Section of Wei's Wiki
pages (http://www.cryptopp.com/wiki/Main_Page).

Jeff

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to