1. 03 Feb, 2022 1 commit
  2. 31 Jan, 2022 1 commit
  3. 29 Jan, 2022 1 commit
  4. 29 Nov, 2021 1 commit
  5. 05 Nov, 2021 1 commit
  6. 01 Oct, 2021 2 commits
  7. 29 Sep, 2021 1 commit
  8. 26 Sep, 2021 2 commits
    • Matthias Kannwischer's avatar
      Fix #161. · 9c7be01a
      Matthias Kannwischer authored
      I wish people would just submit a patch to pqm4 instead of writing
      another paper about a bug that is well known...
      Anyway, I fixed this now...
      9c7be01a
    • Matthias Kannwischer's avatar
      Fix two bugs in Kyber · 8970d37a
      Matthias Kannwischer authored
      Fixes two minor bugs in matacc. They did not actually result in wrong
      outputs.
      
      In the uniform sampling, we use 3 bytes to sample 2 coefficients. In
      case the sampled coefficient is too large, we throw it away.
      Once we sampled 256 coefficients it is possible that we still have one
      coefficient left which needs to be discarded.
      The check if we are at the end of a polynomial already was wrongly
      implemented by checking for ctr < KYBER_Q/4 rather than ctr < KYBER_N/4
      in two places.
      
      Luckily, it has no effect in both cases.
      In the first, ctr = KYBER_N/4 implies k=0 and hence the the code does
      nothing.
      In the second, an additional Keccak squeeze is triggered, but the output
      is never used.
      8970d37a
  9. 06 Sep, 2021 2 commits
  10. 03 Sep, 2021 1 commit
  11. 31 Aug, 2021 1 commit
  12. 30 Aug, 2021 1 commit
  13. 18 Aug, 2021 2 commits
  14. 16 Aug, 2021 2 commits
  15. 13 Aug, 2021 2 commits
  16. 12 Aug, 2021 1 commit
  17. 03 Aug, 2021 1 commit
    • rpls's avatar
      Add support for Nucleo-L4R5ZI board (#193) · 0b3519da
      rpls authored
      * Add an optional memory timing test to the boardtest.elf
      
      * Add support for the Nucleo-L4R5ZI board
      
      * Add a PQM4 preprocessor definition flag
      
      * Properly detect PQM4/MUPQ in bikel{1,3} sources
      
      * Include the nucleo-l4r5zi in the README
      
      * Update mupq
      0b3519da
  18. 30 Jul, 2021 1 commit
    • Matthias Kannwischer's avatar
      Improve reliability of benchmarking scripts. (#190) · cf6f358c
      Matthias Kannwischer authored
      On my Raspberry Pi I often ran into the problem that the Pi would miss the
      beginning of the serial output and then get stuck in an infinite loop trying
      to reflash again and again.
      By waiting a couple of hundred ms when starting up, this can be prevented.
      For me this heavily improved reliability.
      cf6f358c
  19. 23 Jul, 2021 3 commits
  20. 24 Jun, 2021 1 commit
    • Matthias Kannwischer's avatar
      Restore build_everything.py and add default uart (#194) · 834a03d7
      Matthias Kannwischer authored
      The previous version of pqm4 had a build everything script that would spit out
      all the binaries.
      With the multiplatform pqm4, this is no longer needed. One can simply
      make -j4 PLATFORM=stm32f4discovery
      However, we currently still have a non-functional build_everything.py script
      sitting around. I've fixed it, but we could also remove it.
      
      Additionally, to allow users to simply run ./test.py, I added a default uart
      device "/dev/ttyUSB0". The old pqm4 also assumed that serial device.
      Right now pqm4 miserably fails without a --uart argument and a reasonable
      error message.
      834a03d7
  21. 14 Jun, 2021 1 commit
  22. 08 Jun, 2021 1 commit
  23. 06 Jun, 2021 1 commit
    • rpls's avatar
      Multiplatform support (#174) · 12d5e56f
      rpls authored
      
      
      * Adapt the PQM3 Multiplatform & Scheme Discovery to PQM4
      
      * Add HAL support for CW308T-STM32F3
      
      * Adapt platform interfaces
      
      * Implement simplified platform running interface
      
      * Simplify chipwhisperer interface
      
      * Fix for systems without the GNU findutils
      
      * Add the mps2-an386 platform, which is also supported by QEMU
      
      * Speed up scheme search
      
      * Skip scheme list generation if IMPLEMENTATION_PATH is given
      
      * Optionally push all data/bss into the "flash" portion of the MPS2
      
      The flash is actually just a RAM. The main purpose of the board here is stack
      testing and this will allow us to use all 4MB of the "ram" memory region for
      stack/heap.
      
      * Implement stack size querying
      
      * Don't capture stdin for QEMU platforms
      
      * Fix argument parsing for benchmarks
      
      * Add possibility to run QEMU benchmarks directly from make
      
      * Fix scheme list generation
      
      * Remove automatic call to git
      
      * Add some comments for the scheme finding mechanism
      
      * Add the possibility for scheme specific makefiles
      
      * Clean up makefiles
      
      * Generate a skiplist for each platform
      
      * Move reusable buildsystem and interface code to mupq
      
      * Move randombytes implementation to hal for testvector test
      
      * Make all-in-one compilation the default
      
      * Document the new platforms in the README.md
      
      * Update mupq
      
      * Add _sbrk wrapping to opencm3
      
      * Update mupq
      
      * adjust pqm4 to run multiple iterations in a single binary
      
      * Always add LTO flag
      
      * Update mupq
      
      * Reorganize symmetric crypto sources
      
      * Include HAL and crypto sources in AIO compilation
      
      * Fix LTO compilation
      
      * Use existing linker script if present
      
      * Update mupq
      
      * Don't use the nano libc (worse performance)
      
      * Fix compilation for self-tests
      
      * Quick-fix build error for bikel1 on mps2-an386 platform
      
      * Update benchmarks
      
      * Use full ram for some frodokem schemes
      
      * Fix compilation on mps2-an386 platform
      
      * Update skip_list.py
      
      * switch to mupq master
      Co-authored-by: Matthias Kannwischer's avatarMatthias J. Kannwischer <matthias@kannwischer.eu>
      12d5e56f
  24. 04 Jun, 2021 1 commit
  25. 30 May, 2021 1 commit
  26. 25 May, 2021 2 commits
  27. 24 May, 2021 1 commit
  28. 08 Apr, 2021 1 commit
  29. 23 Mar, 2021 1 commit
  30. 08 Mar, 2021 1 commit
  31. 03 Mar, 2021 1 commit