projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using regex for exit/vpn
[oweals/gnunet.git]
/
src
/
include
/
gnunet_crypto_lib.h
diff --git
a/src/include/gnunet_crypto_lib.h
b/src/include/gnunet_crypto_lib.h
index 3bb60d9e5c9aca1c207e4933aebba6be9926b87f..1e2af892509c8b97bfa939ace9d26a1e08a51b02 100644
(file)
--- a/
src/include/gnunet_crypto_lib.h
+++ b/
src/include/gnunet_crypto_lib.h
@@
-71,7
+71,6
@@
enum GNUNET_CRYPTO_Quality
*/
#define GNUNET_CRYPTO_AES_KEY_LENGTH (256/8)
*/
#define GNUNET_CRYPTO_AES_KEY_LENGTH (256/8)
-
/**
* @brief Length of RSA encrypted data (2048 bit)
*
/**
* @brief Length of RSA encrypted data (2048 bit)
*
@@
-84,30
+83,26
@@
enum GNUNET_CRYPTO_Quality
*/
#define GNUNET_CRYPTO_RSA_DATA_ENCODING_LENGTH 256
*/
#define GNUNET_CRYPTO_RSA_DATA_ENCODING_LENGTH 256
-
/**
* Length of an RSA KEY (n,e,len), 2048 bit (=256 octests) key n, 2 byte e
*/
#define GNUNET_CRYPTO_RSA_KEY_LENGTH 258
/**
* Length of an RSA KEY (n,e,len), 2048 bit (=256 octests) key n, 2 byte e
*/
#define GNUNET_CRYPTO_RSA_KEY_LENGTH 258
-
/**
* Length of a hash value
*/
/**
* Length of a hash value
*/
-#define GNUNET_CRYPTO_HASH_LENGTH 512/8
-
+#define GNUNET_CRYPTO_HASH_LENGTH (512/8)
/**
/**
- *
FIXME: what is an acceptable value here?
- * Note: round
to multiple of 8 minus 2
.
+ *
Maximum length of an ECC signature.
+ * Note: round
up to multiple of 8 minus 2 for alignment
.
*/
*/
-#define GNUNET_CRYPTO_ECC_
DATA_ENCODING_LENGTH 51
0
+#define GNUNET_CRYPTO_ECC_
SIGNATURE_DATA_ENCODING_LENGTH 19
0
/**
/**
- * FIXME: what is an acceptable value here?
* Maximum length of the public key (q-point, Q = dP) when encoded.
*/
* Maximum length of the public key (q-point, Q = dP) when encoded.
*/
-#define GNUNET_CRYPTO_ECC_MAX_PUBLIC_KEY_LENGTH
254
+#define GNUNET_CRYPTO_ECC_MAX_PUBLIC_KEY_LENGTH
140
/**
/**
@@
-277,7
+272,7
@@
struct GNUNET_CRYPTO_EccSignature
/**
* S-expression, padded with zeros.
*/
/**
* S-expression, padded with zeros.
*/
- char sexpr[GNUNET_CRYPTO_ECC_DATA_ENCODING_LENGTH];
+ char sexpr[GNUNET_CRYPTO_ECC_
SIGNATURE_
DATA_ENCODING_LENGTH];
};
};