Line 12... |
Line 12... |
---- and returns the Montgomery product A*B*(R^{-1}) mod M ----
|
---- and returns the Montgomery product A*B*(R^{-1}) mod M ----
|
---- where R^{-1} is the modular multiplicative inverse. ----
|
---- where R^{-1} is the modular multiplicative inverse. ----
|
---- R*R^{-1} == 1 mod M ----
|
---- R*R^{-1} == 1 mod M ----
|
---- R = 2^word_length mod M ----
|
---- R = 2^word_length mod M ----
|
---- and word_length is the binary width of the ----
|
---- and word_length is the binary width of the ----
|
---- operated word (in this case 64 bit) ----
|
---- operated word (in this case 32, 64 or 512 bit) ----
|
---- To Do: ----
|
---- To Do: ----
|
---- ----
|
---- ----
|
---- Author(s): ----
|
---- Author(s): ----
|
---- - Krzysztof Gajewski, gajos@opencores.org ----
|
---- - Krzysztof Gajewski, gajos@opencores.org ----
|
---- k.gajewski@gmail.com ----
|
---- k.gajewski@gmail.com ----
|
---- ----
|
---- ----
|
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
---- ----
|
---- ----
|
---- Copyright (C) 2014 Authors and OPENCORES.ORG ----
|
---- Copyright (C) 2019 Authors and OPENCORES.ORG ----
|
---- ----
|
---- ----
|
---- This source file may be used and distributed without ----
|
---- This source file may be used and distributed without ----
|
---- restriction provided that this copyright statement is not ----
|
---- restriction provided that this copyright statement is not ----
|
---- removed from the file and that any derivative work contains ----
|
---- removed from the file and that any derivative work contains ----
|
---- the original copyright notice and the associated disclaimer. ----
|
---- the original copyright notice and the associated disclaimer. ----
|