/**
* Do the actual en/decryption in an EVP context
*/
-static bool crypt(private_aead_t *this, chunk_t data, chunk_t assoc, chunk_t iv,
- u_char *out, int enc)
+static bool crypt_data(private_aead_t *this, chunk_t data, chunk_t assoc,
+ chunk_t iv, u_char *out, int enc)
{
EVP_CIPHER_CTX *ctx;
u_char nonce[NONCE_LEN];
*encrypted = chunk_alloc(plain.len + this->icv_size);
out = encrypted->ptr;
}
- return crypt(this, plain, assoc, iv, out, 1);
+ return crypt_data(this, plain, assoc, iv, out, 1);
}
METHOD(aead_t, decrypt, bool,
*plain = chunk_alloc(encrypted.len);
out = plain->ptr;
}
- return crypt(this, encrypted, assoc, iv, out, 0);
+ return crypt_data(this, encrypted, assoc, iv, out, 0);
}
METHOD(aead_t, get_block_size, size_t,
/**
* Do the actual en/decryption in an EVP context
*/
-static bool crypt(private_openssl_crypter_t *this, chunk_t data, chunk_t iv,
- chunk_t *dst, int enc)
+static bool crypt_data(private_openssl_crypter_t *this, chunk_t data, chunk_t iv,
+ chunk_t *dst, int enc)
{
EVP_CIPHER_CTX *ctx;
int len;
METHOD(crypter_t, decrypt, bool,
private_openssl_crypter_t *this, chunk_t data, chunk_t iv, chunk_t *dst)
{
- return crypt(this, data, iv, dst, 0);
+ return crypt_data(this, data, iv, dst, 0);
}
METHOD(crypter_t, encrypt, bool,
private_openssl_crypter_t *this, chunk_t data, chunk_t iv, chunk_t *dst)
{
- return crypt(this, data, iv, dst, 1);
+ return crypt_data(this, data, iv, dst, 1);
}
METHOD(crypter_t, get_block_size, size_t,