cangrepp

Some cryptographic attacks
Log | Files | Refs | README

README (1008B)


      1 
      2             ________   _  __________  _______  ___ 
      3            / ___/ _ | / |/ / ___/ _ \/ __/ _ \/ _ \
      4           / /__/ __ |/    / (_ / , _/ _// ___/ ___/
      5           \___/_/ |_/_/|_/\___/_/|_/___/_/  /_/    
      6 
      7 
      8 Collection of functions related to cryptographic attacks of various
      9 kinds. This is an attempt to build a decent library which heavily
     10 depends on FLINT (see https://flintlib.org/).
     11 
     12 == 0 - Table of contents
     13 
     14 0 - Table of contents
     15 1 - Hidden number problem (hnp.c)
     16 
     17 == 1 - Hidden number problem
     18 
     19 The hidden number problem shows up in various contexts of cryptographic
     20 attacks.  TODO TODO , api TODO
     21 
     22 == 2 - Leakage check on OpenBSD
     23 
     24 Generate a leak report:
     25 
     26   $ MALLOC_OPTIONS=4 ktrace -tu ./build/test
     27                    ^
     28                    |
     29                    L-- level of backgtrace (D, 1, 2, 3, 4)
     30 
     31 Look att trace:
     32 
     33   $ kdump -u malloc 
     34 
     35 To look at leak line, copy one of the displayed addr2line commands, e.g.
     36 
     37   $ addr2line -e ./build/test 0x4b93
     38   /home/olikru/gitit/cangrepp/prodtree.c:32