Delete unused ROUNDS macro

This macro was used in the reference and AES-NI AES implementations,
both of which were deleted in a563093f16.
This commit is contained in:
Benjamin Barenblat
2022-06-27 17:33:58 -04:00
committed by Alex Chernyakhovsky
parent e5e62b4c76
commit 0a30c5acd5
-10
View File
@@ -388,11 +388,6 @@ typedef struct {
CCCryptorRef ref; CCCryptorRef ref;
uint8_t b[4096]; uint8_t b[4096];
} AES_KEY; } AES_KEY;
#if (OCB_KEY_LEN == 0)
#define ROUNDS(ctx) ((ctx)->rounds)
#else
#define ROUNDS(ctx) (6+OCB_KEY_LEN/4)
#endif
static inline void AES_set_encrypt_key(unsigned char *handle, const int bits, AES_KEY *key) static inline void AES_set_encrypt_key(unsigned char *handle, const int bits, AES_KEY *key)
{ {
@@ -473,11 +468,6 @@ static inline void AES_ecb_decrypt_blks(block *blks, unsigned nblks, AES_KEY *ke
#include <nettle/aes.h> #include <nettle/aes.h>
typedef struct aes_ctx AES_KEY; typedef struct aes_ctx AES_KEY;
#if (OCB_KEY_LEN == 0)
#define ROUNDS(ctx) ((ctx)->rounds)
#else
#define ROUNDS(ctx) (6+OCB_KEY_LEN/4)
#endif
static inline void AES_set_encrypt_key(unsigned char *handle, const int bits, AES_KEY *key) static inline void AES_set_encrypt_key(unsigned char *handle, const int bits, AES_KEY *key)
{ {