Implementation for a simple order-preserving encryption scheme.
This is meant for use when encrypting the current time within the period in order to get a monotonically increasing revision counter without actually revealing our view of the time. This scheme is far from the most state-of-the-art: don't use it for anything else without careful analysis by somebody much smarter than I am. See ticket #25552 for some rationale for this logic.
Showing
- src/lib/crypt_ops/crypto_ope.c 179 additions, 0 deletionssrc/lib/crypt_ops/crypto_ope.c
- src/lib/crypt_ops/crypto_ope.h 35 additions, 0 deletionssrc/lib/crypt_ops/crypto_ope.h
- src/lib/crypt_ops/include.am 2 additions, 0 deletionssrc/lib/crypt_ops/include.am
- src/test/include.am 1 addition, 0 deletionssrc/test/include.am
- src/test/ope_ref.py 40 additions, 0 deletionssrc/test/ope_ref.py
- src/test/test.c 1 addition, 0 deletionssrc/test/test.c
- src/test/test.h 1 addition, 0 deletionssrc/test/test.h
- src/test/test_crypto_ope.c 148 additions, 0 deletionssrc/test/test_crypto_ope.c
Loading
Please register or sign in to comment