From 0467868945b138f5a310342959f9049d5919115d Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 30 Oct 2015 11:58:15 +0100 Subject: Recalling to firstly decode RSA signature before actual verification --- api-mint.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api-mint.rst') 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 -- cgit v1.2.3