moved file en/de-cryption from src to libpcp, which makes it way easier to

implement pbp compatibility
This commit is contained in:
git@daemon.de
2014-01-20 10:16:05 +01:00
parent 05db2f1204
commit 67ba04f3bd
4 changed files with 154 additions and 139 deletions

View File

@@ -52,4 +52,10 @@ unsigned char *pcp_box_decrypt(pcp_key_t *secret, pcp_pubkey_t *pub,
unsigned char *cipher, size_t ciphersize,
size_t *dsize);
size_t pcp_encrypt_file(FILE *in, FILE* out, pcp_key_t *s, pcp_pubkey_t *p, int self);
size_t pcp_decrypt_file(FILE *in, FILE* out, pcp_key_t *s);
#endif // _HAVE_PCP_CRYPTO_H