X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=crypto.h;h=507c0a06242157b85be327806279e8711c72d938;hp=19e9735d5955771310432edf8c7b64fa71fca89c;hb=559d94c4f673b43ab58e1dc673b4c82c61f6f73b;hpb=1ea860909ea670451b5200ccd30aa19241cd081a diff --git a/crypto.h b/crypto.h index 19e9735d..507c0a06 100644 --- a/crypto.h +++ b/crypto.h @@ -53,6 +53,9 @@ const char *Crypto_GetInfoResponseDataString(void); qboolean Crypto_RetrieveHostKey(lhnetaddress_t *peeraddress, int *keyid, char *keyfp, size_t keyfplen, char *idfp, size_t idfplen, int *aeslevel); int Crypto_RetrieveLocalKey(int keyid, char *keyfp, size_t keyfplen, char *idfp, size_t idfplen); // return value: -1 if more to come, +1 if valid, 0 if end of list +size_t Crypto_SignData(const void *data, size_t datasize, int keyid, void *signed_data, size_t signed_size); +size_t Crypto_SignDataDetached(const void *data, size_t datasize, int keyid, void *signed_data, size_t signed_size); + // netconn protocol: // non-crypto: // getchallenge >