How does Matlab perform large integer modular arithmetics using Symbolic Math Toolbox?
Mostrar comentarios más antiguos
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..
Respuestas (2)
John D'Errico
el 12 de En. de 2022
0 votos
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.
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.
Categorías
Más información sobre Encryption / Cryptography en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!