nwztools: cleanup crypto, switch MD5 to Crypto++

We already use Crypto++ for DES anyway, and using OpenSSL is not great because
of its incompatible licence.

Change-Id: I78771b84c1708795a0c0c30afa5bdfe4885dea4e
This commit is contained in:
Amaury Pouly 2017-01-04 16:55:53 +01:00
parent 92ecbd5fb8
commit dbeb6db1b5
9 changed files with 108 additions and 53 deletions

View file

@ -26,12 +26,13 @@
#ifdef __cplusplus
extern "C" {
#endif
int mg_decrypt_fw(void *in, int size, void *out, uint8_t *key);
int mg_encrypt_fw(void *in, int size, void *out, uint8_t *key);
int mg_decrypt_pass(void *in, int size, void *out, uint8_t *key);
int mg_encrypt_pass(void *in, int size, void *out, uint8_t *key);
/* size must be a multiple of 8 */
void mg_decrypt_fw(void *in, int size, void *out, uint8_t *key);
void mg_encrypt_fw(void *in, int size, void *out, uint8_t *key);
void mg_decrypt_pass(void *in, int size, void *out, uint8_t *key);
void mg_encrypt_pass(void *in, int size, void *out, uint8_t *key);
#ifdef __cplusplus
}
#endif
#endif /* __mg_h__ */
#endif /* __mg_h__ */