Fixed crypto structure size specifications to specify the exact

crypto implementation (wise anyway, but required for our Android
cross-compile of NaCl).
This commit is contained in:
gardners 2011-12-19 08:22:34 +10:30
parent c110e46a08
commit 16d22d41a3

View File

@ -7,14 +7,14 @@
typedef struct rhizome_manifest { typedef struct rhizome_manifest {
int manifest_bytes; int manifest_bytes;
unsigned char manifestdata[MAX_MANIFEST_BYTES]; unsigned char manifestdata[MAX_MANIFEST_BYTES];
unsigned char manifesthash[crypto_hash_BYTES]; unsigned char manifesthash[crypto_hash_sha512_BYTES];
/* CryptoSign key pair for this manifest. /* CryptoSign key pair for this manifest.
The filename as distributed on Rhizome will be the public key The filename as distributed on Rhizome will be the public key
of this pair, thus ensuring that noone can tamper with a bundle of this pair, thus ensuring that noone can tamper with a bundle
except the creator. */ except the creator. */
unsigned char cryptoSignPublic[crypto_sign_PUBLICKEYBYTES]; unsigned char cryptoSignPublic[crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES];
unsigned char cryptoSignSecret[crypto_sign_SECRETKEYBYTES]; unsigned char cryptoSignSecret[crypto_sign_edwards25519sha512batch_SECRETKEYBYTES];
int var_count; int var_count;
char *vars[MAX_MANIFEST_VARS]; char *vars[MAX_MANIFEST_VARS];