X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fbluesky.h;h=b250206eed4fbb4bb3425455270402d944efcaa2;hb=ad69f66b9a25bf03e446427d6943d6eefe48ec7c;hp=afb2304c88b74209764dc671de06c3d1af79e52e;hpb=c83d8b650786b8e7d6a9d41c9449c203929c7215;p=bluesky.git diff --git a/bluesky/bluesky.h b/bluesky/bluesky.h index afb2304..b250206 100644 --- a/bluesky/bluesky.h +++ b/bluesky/bluesky.h @@ -32,9 +32,13 @@ void bluesky_string_unref(BlueSkyRCStr *string); BlueSkyRCStr *bluesky_string_dup(BlueSkyRCStr *string); /* Cryptographic operations. */ +#define CRYPTO_BLOCK_SIZE 16 /* 128-bit AES */ +#define CRYPTO_KEY_SIZE 16 + void bluesky_crypt_init(); void bluesky_crypt_random_bytes(guchar *buf, gint len); BlueSkyRCStr *bluesky_crypt_encrypt(BlueSkyRCStr *in, const uint8_t *key); +BlueSkyRCStr *bluesky_crypt_decrypt(BlueSkyRCStr *in, const uint8_t *key); /* File types. The numeric values are chosen to match with those used in * NFSv3. */