diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-06-21 00:20:47 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-06-21 00:20:47 +0200 |
commit | 24191a69683ca8fb7d01c26ec889f13a3f7d8ba8 (patch) | |
tree | a390dd517ebd46056d900a1d5e67898d9dec8495 /crypto.h | |
parent | 5e2d5638614454d37c007d76b289bc871ae5287f (diff) |
add (de)serialization + test. add some docu and stubs
Diffstat (limited to 'crypto.h')
-rw-r--r-- | crypto.h | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -44,17 +44,11 @@ struct brandt_hash_code { void brandt_hash (const void *block, size_t size, struct brandt_hash_code *ret); -/* --- MPI --- */ - -void brandt_mpi_print_unsigned (void *buf, size_t size, gcry_mpi_t val); -void brandt_mpi_scan_unsigned (gcry_mpi_t *result, - const void *data, - size_t size); - - /* --- EC --- */ -struct ec_point { +/* used for serialized mpis and serialized curve points (they are the same size + * when compressed) */ +struct ec_mpi { unsigned char data[256 / 8]; }; |