summaryrefslogtreecommitdiff
path: root/api-mint.rst
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2015-10-30 11:58:15 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2015-10-30 11:58:15 +0100
commit0467868945b138f5a310342959f9049d5919115d (patch)
treed80c11e9d1d5a7ef61e6dd0dae55732737ab663e /api-mint.rst
parent31aa125199afacf57c31e789545ec715d3637333 (diff)
downloaddocs-0467868945b138f5a310342959f9049d5919115d.tar.gz
docs-0467868945b138f5a310342959f9049d5919115d.tar.bz2
docs-0467868945b138f5a310342959f9049d5919115d.zip
Recalling to firstly decode RSA signature before actual
verification
Diffstat (limited to 'api-mint.rst')
-rw-r--r--api-mint.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/api-mint.rst b/api-mint.rst
index 4805af39..75534272 100644
--- a/api-mint.rst
+++ b/api-mint.rst
@@ -839,6 +839,8 @@ All elliptic curve operations are on Curve25519. Public and private keys are th
Signatures
------------------------
+Please note that any RSA signature is processed by a function called `GNUNET_CRYPTO_rsa_signature_encode (..)` **before** being sent over the network, so the receiving party must run `GNUNET_CRYPTO_rsa_signature_decode (..)` before verifying it. See their implementation in `src/util/crypto_rsa.c`, in GNUNET's code base. Finally, they are defined in `gnunet/gnunet_crypto_lib.h`.
+
EdDSA signatures are always made on the hash of a block of the same generic format, the `struct SignedData` given below. In our notation, the type of a field can depend on the value of another field. For the following message, the length of the `payload` array must match the value of the `size` field:
.. sourcecode:: c