OpenCores
no use no use 1/1 no use no use
IP-Core RSA 512 bits
by whentabli on Nov 2, 2010
whentabli
Posts: 6
Joined: Aug 26, 2010
Last seen: Jan 30, 2014
Hello,

Please could you advice me , how can i get the code from Constant_gen.c file ( it is in RSA Core project, programming in C ) ??

this code allows me to generate somes constants: n_c, r_c.

And to edit this file: how can i choose the m value ??

mpz_init_set_str(m,"8de7066f67be16fcacd05d319b6729cd85fe698c07cec504776146
eb7a041d9e3cacbf0fcd86441981c0083eed1f8f1b18393f0b186e47ce1b7b4981417b491"
,16);

the file is attached to this message

Thanks to help
Regards
RE: IP-Core RSA 512 bits
by demnim on Nov 3, 2010
demnim
Posts: 5
Joined: Oct 27, 2009
Last seen: Apr 7, 2013
And to edit this file: how can i choose the m value ??

mpz_init_set_str(m,"8de7066f67be16fcacd05d319b6729cd85fe698c07cec504776146
eb7a041d9e3cacbf0fcd86441981c0083eed1f8f1b18393f0b186e47ce1b7b4981417b491"
,16);


Hello,

when you perform a modular exponentiation you need 3 values, right?

x^y mod m

being x the data, y the key and m the module itself.

in RSA it is you who choose this m value. given the mod. exponentiation 3^5 mod 10

m is 10, so once you have your m value, you paste it in here between the "" (it's the same line above) mpz_init_set_str(m,"",16); that 16 means that your m value is in hexadecimal, if you want to input a decimal number change it to 10.


RE: IP-Core RSA 512 bits
by demnim on Nov 3, 2010
demnim
Posts: 5
Joined: Oct 27, 2009
Last seen: Apr 7, 2013
And to edit this file: how can i choose the m value ??

mpz_init_set_str(m,"8de7066f67be16fcacd05d319b6729cd85fe698c07cec504776146
eb7a041d9e3cacbf0fcd86441981c0083eed1f8f1b18393f0b186e47ce1b7b4981417b491"
,16);


Hello,

when you perform a modular exponentiation you need 3 values, right?

x^y mod m

being x the data, y the key and m the module itself.

in RSA it is you who choose this m value. given the mod. exponentiation 3^5 mod 10

m is 10, so once you have your m value, you paste it in here between the "" (it's the same line above) mpz_init_set_str(m,"",16); that 16 means that your m value is in hexadecimal, if you want to input a decimal number change it to 10.


no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.