John-Mark Gurney
c0297e395e
fix tab/space issue..
8 years ago
John-Mark Gurney
065e3eaabf
add setup.py... this builds the library and copies it over to the
build dir so it will get installed... Also update the library finding
code to look in the modules install directory.
8 years ago
John-Mark Gurney
84b7976f04
add an ignore to ignore the *.pyc files..
8 years ago
John-Mark Gurney
9a253cb310
remove id
8 years ago
John-Mark Gurney
849cbd0ff2
add python wrapper for libdecaf for ed448 curves. curve 25519
is not yet supported, but should be simple to add.
Installation is not supported yet as the library make file does not
support an install target.
8 years ago
Mike Hamburg
b8f6e3d007
change x86-64 non-BMI2 asm constraints for gcc compat; thanks Olivier Cheron
8 years ago
Michael Hamburg
f102952af4
fix ticket #1
8 years ago
Michael Hamburg
875d2b2251
ED25519_NO_CONTEXT -> DECAF_ED25519_NO_CONTEXT; DECAF_ED25519_NO_CONTEXT -> DECAF_EDDSA_25519_SUPPORTS_CONTEXTLESS_SIGS
8 years ago
Michael Hamburg
638f5560f8
make ED*_NO_CONTEXT actually a pointer
8 years ago
Andrew Bennett
7ec87d8616
Use magic constant ED25519_NO_CONTEXT for non-contextual operations.
8 years ago
Andrew Bennett
ef6e74bdec
Update EdDSA operations to match draft 07 from CFRG.
8 years ago
Andrew Bennett
80c0bd5d7d
Don't redefine le64toh on modern FreeBSD, NetBSD, and DragonflyBSD.
8 years ago
Daniel Angel Muñoz Trejo
a803bbe38e
Fixed sha512 for platforms where sizeof(size_t) != 8
8 years ago
Hamburg
3cb0f2c9a1
error: shifting a negative
signed value is undefined
8 years ago
Michael Hamburg
149e67259d
update TODO
8 years ago
Michael Hamburg
f29b338f37
whoops restore some GENERATED files
8 years ago
Michael Hamburg
bc80c744bf
decaf/decaf_[field].h[xx] -> decaf/point_[field].h[xx]
8 years ago
Michael Hamburg
205d4e4aac
working on the README
8 years ago
Michael Hamburg
a32fd62512
mark more things at toy
8 years ago
Michael Hamburg
a01e875d4a
move strobe and crypto to TOY areas
8 years ago
Michael Hamburg
2c605ea46e
add EdDSA C prehash routines
8 years ago
Michael Hamburg
28086a96d1
remove python dependency by checking in generated code
8 years ago
Michael Hamburg
d1e2bbec15
fix Ed448-prehash and test against newly-corrected cfrg vectors
8 years ago
Andrew Bennett
c558c0ecdb
x86_64/i386 and illumos/solaris/SunOS compatibility fixes.
* SunOS linker doesn't support --gc-sections
* Add portable_endian.h with __sun version of htole64 and le64toh
* Replace portable endian code in shake.c with inclusion of portable_endian.h
* Replace portable endian code in word.h with inclusion of portable_endian.h
* Add explicit extern reference to word.h for posix_memalign when __sun defined
* Replace references to u_int*_t with uint*_t
* rdtsc call in shake.c was only working on 32-bit i386
* rdtsc call in bench_decaf.cxx was inaccurate on 64-bit x86_64 when clang absent
* Fix two signed/unsigned comparison errors in test_decaf.cxx
9 years ago
Michael Hamburg
e22c967171
change eddsa encoding names to show that they multiply_by_cofactor
9 years ago
Mike Hamburg
a673fbfc63
test_ct broke because of renaming; fix it
9 years ago
Michael Hamburg
83cfd6cae1
change x### function names again, this time to decaf_x###, decaf_x###_generate_key
9 years ago
Michael Hamburg
714a5db7a0
decaf_###_x_direct_scalarmul -> decaf_x###_direct_scalarmul
9 years ago
Michael Hamburg
f4558c1e13
tidy @todo -> TODO
9 years ago
Michael Hamburg
149130fd94
working through the TODOs. Correct the sign of the to/from EdDSA conversions (but is it correct for future curves?). SHA-3 now throws exceptions on over-long output
9 years ago
Mike Hamburg
be39188da9
prevent memcpy(NULL,NULL,0), which is technically illegal as pointed out by make scan
9 years ago
Mike Hamburg
1e796b2e0e
fix some warns from gcc
9 years ago
Michael Hamburg
a3a2906f81
move prehashed enum to common; downside is that including one eddsa.hxx now pulls in all of them
9 years ago
Michael Hamburg
c5a9b7757b
ed25519 prehashed test vector. ed448 prehashed test vectors look invalid??
9 years ago
Michael Hamburg
4adb584654
ed25519 prehashed test vector. ed448 prehashed test vectors look invalid??
9 years ago
Michael Hamburg
3b9ffc4cc7
separate Ed25519ph from Ed25519 with awful CRTP hack
9 years ago
Michael Hamburg
422cc78eb9
fix up overapplication to file names
9 years ago
Michael Hamburg
f1df5e4714
lowerCamelCase -> snake_case. Put decaf_ in front of all (most?) identifiers, except for SHAKE which is being removed before 1.0 release (for future refactoring)
9 years ago
Michael Hamburg
85fafd2d52
another couple notes
9 years ago
Michael Hamburg
595855b434
move eddsa.hxx to its own header. sha512.hxx; rework shake.hxx header; create prehash object. TODO: test prehash
9 years ago
Michael Hamburg
798b189a77
minor changes; clear a few TODOs
9 years ago
Michael Hamburg
6225bfd2f4
EdDSA is go!
9 years ago
Michael Hamburg
1f716044ca
eddsa provisional pass
9 years ago
Michael Hamburg
d9a9bb96b5
eddsa-25519 now using sha512. But problem! We are using IsoEd25519 so we actually need an isogeny anyway to get to Ed25519 proper
9 years ago
Michael Hamburg
0fa687437f
sha512
9 years ago
Michael Hamburg
b06db0c78a
EdDSA now supports multiple hashes as defined in curve_data.py. We still dont have sha512 though.
9 years ago
Michael Hamburg
9d0bac672f
move context arguments to the end of hash functions. Ed25519 doesnt support contexts.
9 years ago
Michael Hamburg
870d5839df
whoops add eddsa.tmpl.c
9 years ago
Michael Hamburg
b1c6de6309
EdDSA 448 seems to be working. Needs more testing, code moved around. EdDSA 255 not working yet; needs SHA512
9 years ago
Michael Hamburg
fffb77ac2d
eddsa sign seems to work for ed448. needs more testing of course
9 years ago