include: C headers for files in srcsrc: C source files
Makefile: Makefile recipe
Files
bignum.hbignum.c: 256 bit integer library from trezor-cryptosha2.hsha2.c: library for SHA-2 hash functions from trezor-cryptomemzero.cmemzero.hoptions.hbyte_order.h: Other dependencies from trezor-cryptoot.hot.c: POC for a very simple oblivious transfer (Needs more work IMO)
main.c: Entrypoint
Directory Structure
git ls-tree -r --name-only HEAD | tree --fromfile
include
: C headers for files insrc
src
: C source filesMakefile
: Makefile recipeFiles
bignum.h
bignum.c
: 256 bit integer library fromtrezor-crypto
sha2.h
sha2.c
: library for SHA-2 hash functions fromtrezor-crypto
memzero.c
memzero.h
options.h
byte_order.h
: Other dependencies fromtrezor-crypto
ot.h
ot.c
: POC for a very simple oblivious transfer (Needs more work IMO)main.c
: EntrypointNew Functions in ot.h
void xorr (uint8_t *, uint8_t *, uint8_t *, uint32_t)
Simple XOR operation for on two byte arrays (for simulating encryption and decryption)
void random256bits(uint8_t )
Generates random byte array from /dev/urandom (entropy based PRNGs in UNIX-like systems).
void ot_poc(uint32_t)
Experimental POC for oblivious transfer