Home > Net >  Why can't Matlab calculate the complex Number for Paillier-Encryption?
Why can't Matlab calculate the complex Number for Paillier-Encryption?

Time:03-31

I'm trying to make a programm Code for a Paillier Encryption with Matlab.

and I wanted to make a code to calculate this numbers enter image description here

but when I try to calculate the exact numbers through my Laptop, my Matlab shows the result Inf like the picture below.

enter image description here

How can I solve this problem? Will it be the Problem of the Programm or my Laptop?

thank you!

CodePudding user response:

My normal VPI approach is:

>> mod(sym(899778)^160109*sym(12312)^899777,809598649729)
   ans =
   594091908920
  • Related