Inversed-Tech / eyelid

Private iris matching
Apache License 2.0
0 stars 0 forks source link

Implement cyclotomic multiplication using rug-polynomial, GMP, and FLINT #7

Closed teor2345 closed 5 months ago

teor2345 commented 5 months ago

This PR is ready for review.

On one of my local machines I get:

    Running benches/match-ops.rs (target/release/deps/match_ops-fb8e5ab715ba8019)
Benchmarking Full iris match: plaintext/Random iris codes and masks: Collecting 40 samples in estimat
Full iris match: plaintext/Random iris codes and masks
                        time:   [1.6713 ms 1.6754 ms 1.6824 ms]

Benchmarking Cyclotomic multiplication using rug/Random input: Collecting 100 samples in estimated 5.
Cyclotomic multiplication using rug/Random input
                        time:   [2.3864 ms 2.3952 ms 2.4047 ms]
teor2345 commented 5 months ago

On one of my local machines I get:

    Running benches/match-ops.rs (target/release/deps/match_ops-fb8e5ab715ba8019)
Benchmarking Full iris match: plaintext/Random iris codes and masks: Collecting 40 samples in estimat
Full iris match: plaintext/Random iris codes and masks
                        time:   [1.6713 ms 1.6754 ms 1.6824 ms]

Benchmarking Cyclotomic multiplication using rug/Random input: Collecting 100 samples in estimated 5.
Cyclotomic multiplication using rug/Random input
                        time:   [2.3864 ms 2.3952 ms 2.4047 ms]
teor2345 commented 5 months ago

We decided to go with another solution in pure Rust with a more permissive licence.