aboutsummaryrefslogtreecommitdiff
path: root/crypto.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-06-21 00:20:47 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-06-21 00:20:47 +0200
commit24191a69683ca8fb7d01c26ec889f13a3f7d8ba8 (patch)
treea390dd517ebd46056d900a1d5e67898d9dec8495 /crypto.h
parent5e2d5638614454d37c007d76b289bc871ae5287f (diff)
add (de)serialization + test. add some docu and stubs
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/crypto.h b/crypto.h
index aa518cd..4ccd1ca 100644
--- a/crypto.h
+++ b/crypto.h
@@ -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];
};