added function for computing bundle shared secret, e.g., for

MeshMS encryption.  Currently just returns NULL (no encryption),
and not yet hooked in.
This commit is contained in:
gardners 2012-05-28 07:15:54 +02:00
parent cdf2753412
commit 2aaea99bfa
2 changed files with 9 additions and 0 deletions

View File

@ -274,6 +274,7 @@ int rhizome_bk_xor(const char *author,
unsigned char bid[crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES],
unsigned char bkin[crypto_sign_edwards25519sha512batch_SECRETKEYBYTES],
unsigned char bkout[crypto_sign_edwards25519sha512batch_SECRETKEYBYTES]);
unsigned char *rhizome_bundle_shared_secret(rhizome_manifest *m);
int rhizome_extract_privatekey(rhizome_manifest *m,const char *authorHex);
int rhizome_queue_ignore_manifest(rhizome_manifest *m,
struct sockaddr_in *peerip,int timeout);

View File

@ -22,6 +22,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <stdlib.h>
#include <ctype.h>
/* Work out the encrypt/decrypt key for the supplied manifest.
If the manifest is not encrypted, then return NULL.
*/
unsigned char *rhizome_bundle_shared_secret(rhizome_manifest *m)
{
return NULL;
}
int rhizome_strn_is_manifest_id(const char *id)
{
int i;