How does Matlab perform large integer modular arithmetics using Symbolic Math Toolbox?
4 visualizaciones (últimos 30 días)
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..
0 comentarios
Respuestas (2)
John D'Errico
el 12 de En. de 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 comentarios
Walter Roberson
el 12 de En. de 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 comentarios
Ver también
Categorías
Más información sobre Encryption / Cryptography en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!