summaryrefslogtreecommitdiff
path: root/src/util
AgeCommit message (Collapse)Author
2020-05-29rsa crypto compare functions take const parametersJonathan Buchanan
2020-05-27Make REQUEST_AGPL messages configurable and add handler by defaultAlessio Vanni
This makes two changes: * Add a field to `struct GNUNET_OS_ProjectData' containing a URL (as a string) pointing to the source code of the application. * If the field is not NULL, add a handler for the REQUEST_AGPL messages sending the specified URL to the client. The handler is added both in client-service communications (i.e. local services that don't make requests to other peers in the network) and in peer-peer communications (CADET.) This way, any client (local or remote with CADET) can request the source code location using a standardized mechanism instead of writing ad-hoc solutions (unless the service/peer explicitly specifies a NULL pointer.) Signed-off-by: Christian Grothoff <christian@grothoff.org>
2020-05-26remove argon2 dependency. Use limited libsodium argon2id function for GNS ↵Martin Schanzenbach
and NSE
2020-05-26fix bit counting messMartin Schanzenbach
2020-05-26Merge branch 'master' of ssh://gnunet.org/gnunetMartin Schanzenbach
2020-05-26use argon2idMartin Schanzenbach
2020-05-26replace Christian's FIXME with an explanationFlorian Dold
2020-05-26add additional test condition for GNS cryptoFlorian Dold
2020-05-25fix bit check in hashMartin Schanzenbach
2020-05-19Improved BIO APIAlessio Vanni
BIO now supports reading from and writing to in-memory buffers. For reading, an allocated buffer (array) and a size is passed as arguments to the function opening the handle. For writing, a GNUNET_Buffer is created and used internally. The buffer contents can be extracted using the relevant function. There is a new API in addition to the existing read/write: this new API is more "declarative" in nature and is meant to mimic APIs like GNUNET_SQ. The read/write operations are defined in an array of specs which are then "commited" in a single (non-atomic) operation, rather than explicitly executing multiple function calls and checking their return value. Also there are small changes to GNUNET_Buffer to account for BIO's new features. Signed-off-by: Christian Grothoff <christian@grothoff.org>
2020-05-19fix ftbfsChristian Grothoff
2020-05-06Fix #6070Florian Dold
Use same endianess for EdSA and ECDSA private keys. The encoding of (R,S) of ECDSA signatures is still big-endian, to match RFC 6967. This is different from the (R,S) of EdDSA, which is little-endian according to RFC 8032.
2020-05-06move from tweetnacl (+custom hacks) -> only sodiumFlorian Dold
2020-04-30stylefixChristian Grothoff
2020-04-24check for integer overflow in buffer lib (fixes #6217)Florian Dold
2020-04-22Merge branch 'schanzen/argon_pow'Schanzenbach, Martin
2020-04-21purge scrypt; add argon2Martin Schanzenbach
2020-04-21defining GNUNET_array_concatenate() for #6190Christian Grothoff
2020-04-21use nzChristian Grothoff
2020-04-21make GNUNET_freez default, have GNUNET_free_nz for cases where that does not ↵Christian Grothoff
work
2020-04-18simplify pow even more; add timestamp to revocation powSchanzenbach, Martin
2020-04-17revertSchanzenbach, Martin
2020-04-17mergeSchanzenbach, Martin
2020-04-17update paramsSchanzenbach, Martin
2020-04-17add argon2 for LSD0001Schanzenbach, Martin
2020-04-17add argon2 for LSD0001Schanzenbach, Martin
2020-04-15add integer overflow guards and avoid (unlimited) stack allocationChristian Grothoff
2020-04-15take care of odd memset() callsChristian Grothoff
2020-04-11do create directory if it doesn't existChristian Grothoff
2020-04-11fixing #6149Christian Grothoff
2020-04-10indentationChristian Grothoff
2020-04-08fix sign api for to address #6164Christian Grothoff
2020-04-07improve comments (#6164)Christian Grothoff
2020-04-07constChristian Grothoff
2020-04-03fix #6157Christian Grothoff
2020-04-03fix #6155Christian Grothoff
2020-04-03fix #6158Christian Grothoff
2020-04-03fix warningsChristian Grothoff
2020-04-03bad sizeofChristian Grothoff
2020-04-03fix zero testChristian Grothoff
2020-04-03fix #6159 and related issuesChristian Grothoff
2020-04-03adding a GNUNET_memcmp_priv for constant-time comparing of data; fixes #6152 ↵Christian Grothoff
(modulo actually finding specific places where this SHOULD be used instead of GNUNET_memcmp)
2020-04-03fix #6153Christian Grothoff
2020-04-03fix #6154Christian Grothoff
2020-04-02fix #6146Christian Grothoff
2020-03-29ftbfsChristian Grothoff
2020-03-29allow passing of fancy time to timetravel optionChristian Grothoff
2020-03-19use strtok_r in code that could plausibly be used from multi-threaded ↵Christian Grothoff
applications
2020-03-17use void * instead of char * for RSA key material to make it more clear that ↵Christian Grothoff
these are not 0-terminated strings
2020-03-17use void * instead of char * for RSA key material to make it more clear that ↵Christian Grothoff
these are not 0-terminated strings