This commit is contained in:
Max Lv
2013-07-28 17:29:37 +08:00
parent c2302b432a
commit d4b000090f
4 changed files with 266 additions and 243 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ struct enc_ctx {
EVP_CIPHER_CTX evp;
};
char* ss_encrypt_all(char *plaintext, ssize_t *len, struct enc_ctx *ctx);
char* ss_decrypt_all(char *ciphertext, ssize_t *len, struct enc_ctx *ctx);
char* ss_encrypt_all(char *plaintext, ssize_t *len, int method);
char* ss_decrypt_all(char *ciphertext, ssize_t *len, int method);
char* ss_encrypt(char *plaintext, ssize_t *len, struct enc_ctx *ctx);
char* ss_decrypt(char *ciphertext, ssize_t *len, struct enc_ctx *ctx);
void enc_ctx_init(int method, struct enc_ctx *ctx, int enc);