lib/ibe: Implementation of BB2-IBE

Implementation of the second variant of the Boneh-Boyen IBE
scheme (BB2 from Section 5.1 of this paper:
http://crypto.stanford.edu/~dabo/papers/bbibe.pdf). The BB2 IBE
scheme is slightly more efficient compared to the BB1 scheme:
smaller public keys and only requires a single pairing for
decryption.

Performance comparison between BB1 and BB2 (on my laptop):

BenchmarkExtractBB1-8	     100	  21191388 ns/op
BenchmarkExtractBB2-8	     200	   7351737 ns/op

BenchmarkEncryptBB1-8	      50	  24873136 ns/op
BenchmarkEncryptBB2-8	      50	  24948942 ns/op

BenchmarkDecryptBB1-8	      20	  58252346 ns/op
BenchmarkDecryptBB2-8	      30	  41771732 ns/op

Change-Id: I720b98f5b87510d5bda14ece85cd43c1aba9b718
5 files changed
tree: ab6079a1ad777f4cd0e4fcdeba75b492c1f29aa8
  1. cmd/
  2. cmdline/
  3. dbutil/
  4. envvar/
  5. gosh/
  6. host/
  7. ibe/
  8. metadata/
  9. netconfig/
  10. netstate/
  11. set/
  12. textutil/
  13. timing/
  14. toposort/
  15. vlog/
  16. .gitignore
  17. .godepcop
  18. AUTHORS
  19. CONTRIBUTING.md
  20. CONTRIBUTORS
  21. LICENSE
  22. PATENTS
  23. README.md
  24. VERSION
README.md

This repository contains general purpose libraries used by the Vanadium project. TEST