jovliegen | 1 Feb 2011 09:01
Picon

doing an EC point multiplication

Hi,

I'm a complete noob to crypto++, but I was looking for
a software library that could perform some EC operations.

At the moment I'm am implementing a protocol. For this I need
to perform an elliptic curve point multiplication. After some
browsing the internet, looking into the manuals and reading the
mailing list, I could find any info on that :(

Could someone please point me to a usefull resource, on which
I can find some info on how to perform an EC point multiplication ?

Many thanks

grtz
jo

--

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

Jeffrey Walton | 2 Feb 2011 18:17
Picon

Re: doing an EC point multiplication


On Feb 1, 3:01 am, jovliegen <jovlie... <at> gmail.com> wrote:
> Hi,
>
> I'm a complete noob to crypto++, but I was looking for
> a software library that could perform some EC operations.
>
> At the moment I'm am implementing a protocol. For this I need
> to perform an elliptic curve point multiplication. After some
> browsing the internet, looking into the manuals and reading the
> mailing list, I could find any info on that :(
>
> Could someone please point me to a useful resource, on which
> I can find some info on how to perform an EC point multiplication ?
From http://www.cryptopp.com/wiki/Elliptic_Curve_Cryptography:
"Elliptic Curve Domain Parameter Validation. The program dumps the
Public and Private keys, and validates the curve per Certicom's SEC 2
Whitepaper (the curve used for demonstration purposes is NIST P-192).
In addition, the program demonstrates mathematics with the point of
infinity and scalar multiplications using Crypto++."

--

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

Robert F. | 5 Feb 2011 18:39

Signature Verification Issue, PHP or C++?


Hello, I'm trying to use CryptoPP for RSA encryption and to interface it
between PHP and C++.

So I have a little test program on my web server that is using phpseclib to
generate RSA keypairs for what eventually will be the "CA" key. the only
problem is the output on PHP is saying that verification is correct, while
C++ is saying otherwise due to the following error: "PK_Signer: key too
short for this signature scheme". How can I go about fixing this.

PHP w/ output:
<?php

echo "BEGIN SIGN <p>";
include("../php/Crypt/RSA.php");

$rsa = new Crypt_RSA();
extract($rsa->createKey(512));

$plaintext = 'terrafrost';

echo "PRIV: ". $privatekey ." <p>";
echo "PUB: ". $publickey ." <p>";

$rsa->loadKey($privatekey);
$signature = $rsa->sign($plaintext);

echo "S: ".$signature."<p>";
echo "H: ".bin2hex($signature)."<p>";

(Continue reading)

cryptopp | 6 Feb 2011 08:34
Picon
Favicon

Re: [cryptopp] #11: include a field for a distribution- or variant- specific version number

#11: include a field for a distribution- or variant- specific version number
------------------------+---------------------------------------------------
Reporter:  zooko        |     Owner:     
    Type:  enhancement  |    Status:  new
Priority:  major        |   Version:     
Keywords:               |  
------------------------+---------------------------------------------------
Changes (by zooko):

 * cc: zooko <at> …, zooko (added)

-- 
Ticket URL: <http://sourceforge.net/apps/trac/cryptopp/ticket/11#comment:1>
cryptopp <http://sourceforge.net/projects/cryptopp/>
SF-project cryptopp

--

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

cryptoflo | 7 Feb 2011 15:14
Picon
Favicon

information about library crypto++

hello
i'm working on a project using cipher algorythm.
i choose RC6 based AES algo for different reasons, i would like to
know if the algo rc6 was implemented in the library crypto++

another question : does the library crypto++ is enabled to create
128/196/256 bit key

best regards

--

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

smu johnson | 8 Feb 2011 09:52
Picon
Gravatar

Re: information about library crypto++

How is it that you managed to subscribe to the mailing list, then figure out how to post here, without actually looking at the main site of Crypto++ where it's obvious that both your questions are answered?

On Mon, Feb 7, 2011 at 6:14 AM, cryptoflo <florent.ainardi <at> orange.fr> wrote:
hello
i'm working on a project using cipher algorythm.
i choose RC6 based AES algo for different reasons, i would like to
know if the algo rc6 was implemented in the library crypto++

another question : does the library crypto++ is enabled to create
128/196/256 bit key

best regards

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



--
smu johnson <smujohnson <at> gmail.com>

--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe <at> googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
Leo Mifare | 8 Feb 2011 11:42
Picon

[Cryptopp5.1]How to solve RSA Encryption using PrivateKey with No Padding?

Hi friends..

i'm really confused how to encrypt data using PrivateKey , NO Padding, and Decrypt it using PublicKey.
Hmm, actually i can solve this problem easily using Java..
But i want implement the process in my C++ application..

Snippet Code :
        byte[] inputEncryption = ByteUtils.StringToHex(" <at> ABCDEFGHIJKLMNO <at> ABCDEFGHIJKLMNO <at> ABCDEFGHIJKLMNO <at> ABCDEFGHIJKLMNO");
       //404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F

        Cipher rsaCipher2 = Cipher.getInstance("RSA/None/NoPadding");
        RSAPublicKey myPubKEY = (RSAPublicKey) KeyFactory.getInstance("RSA").generatePublic(rsaPublicKeySpec);
        RSAPrivateKey myPrivKEY = (RSAPrivateKey) KeyFactory.getInstance("RSA").generatePrivate(rsaPrivateKeySpec);
        rsaCipher2.init(Cipher.ENCRYPT_MODE, myPrivKEY);
        byte[] output = rsaCipher2.doFinal(inputEncryption);
        System.out.println("OUTPUT Encryption = " + ByteUtils.HexToString(output));
       
        rsaCipher2.init(Cipher.DECRYPT_MODE, myPubKEY);
        output = rsaCipher2.doFinal(output);
        System.out.println("OUTPUT = " + ByteUtils.HexToString(output));

Snippet Console Output :
RSA Private Key Modulus = 00A9C985E853C94ADDA1969486896B657257580E695C7C92AC891DCB4041C8552F6F30CC9B7CA97C1213E31C8C8985EFB475B5572B73BE4446077AC31E614DFA67
RSA Private Key Exponent = 00806DDC69997F28AF2EFC7D0AAB45DE6DB81DF680C221C4BCD7D6FE987369FAEC73CB964D6E3F5C87BE3DBE8FE034FC96D13940E51EC4D82B791E84B334C951B9
Encrypted Data = 903B72E6DA4BEB674670A7723E17CFE6D6CC0939BD4CD43166B49A10194B3AC08F3433C1CF2484CC25C233AEA9A958DBF128AA19D8555BD87BA618E497B414B9
Decrypted Data = 404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F

How to achieve that using Cryptopp

Please help me regarding this..

Sorry i'm pretty new in this field..

Thanks

--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe <at> googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
Elias Önal | 8 Feb 2011 11:56

Re: [Cryptopp5.1]How to solve RSA Encryption using PrivateKey with No Padding?

Hey,

why do you want to encrypt data using the private key? That process is usually known as "signing" and you should be really careful doing so. In some cases it might even break the algorithm when done wrong! *cough* ElGamal *cough* *cough*

Greets Elias

On 2/8/11 11:42 AM, Leo Mifare wrote:
Hi friends..

i'm really confused how to encrypt data using PrivateKey , NO Padding, and Decrypt it using PublicKey.
Hmm, actually i can solve this problem easily using Java..
But i want implement the process in my C++ application..

Snippet Code :
        byte[] inputEncryption = ByteUtils.StringToHex(" <at> ABCDEFGHIJKLMNO <at> ABCDEFGHIJKLMNO <at> ABCDEFGHIJKLMNO <at> ABCDEFGHIJKLMNO");
       //404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F

        Cipher rsaCipher2 = Cipher.getInstance("RSA/None/NoPadding");
        RSAPublicKey myPubKEY = (RSAPublicKey) KeyFactory.getInstance("RSA").generatePublic(rsaPublicKeySpec);
        RSAPrivateKey myPrivKEY = (RSAPrivateKey) KeyFactory.getInstance("RSA").generatePrivate(rsaPrivateKeySpec);
        rsaCipher2.init(Cipher.ENCRYPT_MODE, myPrivKEY);
        byte[] output = rsaCipher2.doFinal(inputEncryption);
        System.out.println("OUTPUT Encryption = " + ByteUtils.HexToString(output));
       
        rsaCipher2.init(Cipher.DECRYPT_MODE, myPubKEY);
        output = rsaCipher2.doFinal(output);
        System.out.println("OUTPUT = " + ByteUtils.HexToString(output));

Snippet Console Output :
RSA Private Key Modulus = 00A9C985E853C94ADDA1969486896B657257580E695C7C92AC891DCB4041C8552F6F30CC9B7CA97C1213E31C8C8985EFB475B5572B73BE4446077AC31E614DFA67
RSA Private Key Exponent = 00806DDC69997F28AF2EFC7D0AAB45DE6DB81DF680C221C4BCD7D6FE987369FAEC73CB964D6E3F5C87BE3DBE8FE034FC96D13940E51EC4D82B791E84B334C951B9
Encrypted Data = 903B72E6DA4BEB674670A7723E17CFE6D6CC0939BD4CD43166B49A10194B3AC08F3433C1CF2484CC25C233AEA9A958DBF128AA19D8555BD87BA618E497B414B9
Decrypted Data = 404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F404142434445464748494A4B4C4D4E4F

How to achieve that using Cryptopp

Please help me regarding this..

Sorry i'm pretty new in this field..

Thanks
--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe <at> googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.

--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe <at> googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
ASBai | 8 Feb 2011 18:19
Picon

It would be very nice if crypto++ support lzma algorithm

and this project may be helpful:
http://www.nongnu.org/lzip/lzlib.html

--

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

Elias Önal | 8 Feb 2011 18:26

Re: It would be very nice if crypto++ support lzma algorithm

I guess we should have Huffman first! Seriously why don't you just use 
that particular lib you were suggesting? Also have you even had a look 
at that thing you suggested? It's GPL licensed which isn't compatible to 
cryptopp. Actually it kinda is, but it would virally infect cryptopp 
with GPL which surely won't happen!

Thanks, but no thanks!

On 2/8/11 6:19 PM, ASBai wrote:
> and this project may be helpful:
> http://www.nongnu.org/lzip/lzlib.html
>

--

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


Gmane