Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Henry Corrigan-Gibbs bfa543bfaa
Run code through clang-format 9.0. (#97)
Generated by running the following command in the top-level dir:

> clang-format --style=Mozilla \
   -i include/*.h pclient/*.c prio/*.c prio/*.h ptest/*.c ptest/*.h

Update .travis.yml and clang-format.sh to use 9.0
2020-06-01 23:38:23 -07:00
Robert Helmer ded8b1054b
issue #25 - format libprio with clang-format, using Mozilla style (#26)
* issue #25 - format libprio with clang-format, using Mozilla style

* force clang 3.9 (latest available on Ubuntu Trusty)

* remove clang-format file, 3.9 is confused by some settings. try using built-in Mozilla style instead
2018-08-29 13:47:18 -07:00
Henry Corrigan-Gibbs 5779b9cde2 Code for libprio pilot (#1)
* The core libprio code for Prio client and server.

These files contain the core cryptographic routines needed
to implement the Prio client and Prio server.

* Tests and example code for libprio.

* A copy of NSS's MPI library.

Since NSS does not export the MPI bignum library, we ship a copy
with the standalone version of libprio.

* Build file and README for libprio.

* Edits per code review by franziskuskiefer

* More edits per code review by franziskuskiefer

* Fix memory bugs found by clang-analyzer

* Remove ugly hack from PublicKey_import method

Now we can import a 32-byte curve25519 public key into NSS without
having to generate a new keypair from scratch.

* Replace SConstruct file with simpler one

* Update README to incorporate code review edits

* Allow importing and exporting public keys in hex

- Public functions PublicKey_import_hex and PublicKey_export_hex
- Tests for these functions

* Add end-to-end test program for PrioEncoder.

Add browser-test utility that
1) generates new server keypairs,
2) uses xpcshell to call the PrioEncoder DOM routines,
3) parses the output of PrioEncoder,
4) validates the encoded packet, and
5) checks that the submitted data is what we expected.

* Fixes to make browser-test compile on Linux
2018-07-17 11:26:39 -07:00