How does Matlab perform large integer modular arithmetics using Symbolic Math Toolbox?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
John D'Errico
le 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 commentaires
Walter Roberson
le 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 commentaires
Voir également
Catégories
En savoir plus sur Encryption / Cryptography dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!