Permalink
Browse files

ec: Improve readability and clarity

- Move all of the ec functions into the Common::ec namespace.

- Give the public functions better names and some usage information.

- Move all of the "elt" related functions into an "elt" class including
  all of the arithmetic operations, so that the logic becomes clearer
  and feels less like assembly.

  This also makes it much more obvious what the parameters are, instead
  of only using unsigned char* (which doesn't tell anything about what
  the pointer is used for or the size).

- Similarly, add a new "Point" class and move point functions there.
  Overload the arithmetic operators to make calculations easier to read
  • Loading branch information...
leoetlino committed May 15, 2018
1 parent e83591f commit 355b1b5d5b99fbd7be7a1db490b381acb1e46f28
Showing with 205 additions and 299 deletions.
  1. +189 −291 Source/Core/Common/Crypto/ec.cpp
  2. +9 −3 Source/Core/Common/Crypto/ec.h
  3. +7 −5 Source/Core/Core/IOS/IOSC.cpp
Oops, something went wrong.

0 comments on commit 355b1b5

Please sign in to comment.