How does Matlab perform large integer modular arithmetics using Symbolic Math Toolbox?
4 views (last 30 days)
Show older comments
I have implemented an ECC (Elliptic Curve Cryptography) model using Matlab symbolic tool by which the large integer arithmetics can be manipulated. Now I want to implement the algorithm with a 32-bit processor. I am looking for the algorithms that Matlab is using to implement modular addition, subtraction, multiplication and inverse, etc..
0 Comments
Answers (2)
John D'Errico
on 12 Jan 2022
You won't get the exact algorithms. MathWorks does not hand out their internal code for this sort of thing, unless you have a job there.
0 Comments
Walter Roberson
on 12 Jan 2022
S1 = char(evalin(symengine, 'expose(symobj::powermod)'));
S1 = regexprep(S1, '\\n', '\n')
S2 = char(evalin(symengine, 'expose(powermod)'));
S2 = regexprep(S2, '\\n', '\n')
S3 = char(evalin(symengine, 'expose(stdlib::powermod)'));
S3 = regexprep(S3, '\\n', '\n')
So... at least some of the cases are built-in, source not published.
0 Comments
See Also
Categories
Find more on Encryption / Cryptography in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!