https://github.com/mupq/pqm4
Revision 4fc31d7aad3cea3a62bfcb1d6b3fb5e90be4fa02 authored by Victor on 01 February 2021, 07:14:30 UTC, committed by Matthias J. Kannwischer on 01 February 2021, 09:31:36 UTC
* Udpated dilithium round2 to dilithium round 3 from NIST PQC Standarization process.

* update dilithium in pqclean

* redo Dilithium benchmarks

Co-authored-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
1 parent 20bcf68
Raw File
Tip revision: 4fc31d7aad3cea3a62bfcb1d6b3fb5e90be4fa02 authored by Victor on 01 February 2021, 07:14:30 UTC
Udpated dilithium round2 to dilithium round 3 from NIST PQC Standariz… (#178)
Tip revision: 4fc31d7
benchmarks.py
#!/usr/bin/env python3
from mupq import mupq
from interface import M4Settings, M4

import sys

if __name__ == "__main__":
    with M4() as m4:
        if "--nostack" not in sys.argv:
            test = mupq.StackBenchmark(M4Settings(), m4)
            test.test_all(sys.argv[1:])

        if "--nospeed" not in sys.argv:
            test = mupq.SpeedBenchmark(M4Settings(), m4)
            test.test_all(sys.argv[1:])

        if "--nohashing" not in sys.argv:
            test = mupq.HashingBenchmark(M4Settings(), m4)
            test.test_all(sys.argv[1:])

        if "--nosize" not in sys.argv:
            test = mupq.SizeBenchmark(M4Settings(), m4)
            test.test_all(sys.argv[1:])
back to top