fixes for automatic version detection of nettle for 14.04/16.04

This commit is contained in:
Rohit Gupta
2016-10-01 15:03:56 +02:00
parent bd25e2d949
commit 4ac71a6e46
4 changed files with 85 additions and 2 deletions
+5
View File
@@ -199,8 +199,13 @@ int stream_encrypt_eea2(stream_cipher_t *stream_cipher, uint8_t **out)
}
#endif
#if NETTLE_VERSION <= 27
nettle_aes128.set_encrypt_key(ctx, stream_cipher->key_length,
stream_cipher->key);
#else
nettle_aes128.set_encrypt_key(ctx,
stream_cipher->key);
#endif
nettle_ctr_crypt(ctx, nettle_aes128.encrypt,
nettle_aes128.block_size, m,