18 #define OPE_KEY_LEN 32
31 #define OPE_INPUT_MAX (1<<18)
33 #define CRYPTO_OPE_ERROR UINT64_MAX
39 #define crypto_ope_free(ope) \
40 FREE_AND_NULL(crypto_ope_t, crypto_ope_free_, (ope))
44 #ifdef CRYPTO_OPE_PRIVATE
45 struct aes_cnt_cipher_t;
47 uint32_t initial_idx);
STATIC crypto_cipher_t * ope_get_cipher(const crypto_ope_t *ope, uint32_t initial_idx)
STATIC uint64_t sum_values_from_cipher(crypto_cipher_t *c, size_t n)
crypto_ope_t * crypto_ope_new(const uint8_t *key)
void crypto_ope_free_(crypto_ope_t *ope)
uint64_t crypto_ope_encrypt(const crypto_ope_t *ope, int plaintext)
Macros to implement mocking and selective exposure for the test code.
Integer definitions used throughout Tor.