encryption_algorithm_t alg;
};
-METHOD(aead_t, encrypt, bool,
+METHOD(aead_t, encrypt_, bool,
private_aead_t *this, chunk_t plain, chunk_t assoc, chunk_t iv,
chunk_t *encrypted)
{
INIT(this,
.public = {
- .encrypt = _encrypt,
+ .encrypt = _encrypt_,
.decrypt = _decrypt,
.get_block_size = _get_block_size,
.get_icv_size = _get_icv_size,
return success;
}
-METHOD(crypter_t, encrypt, bool,
+METHOD(crypter_t, encrypt_, bool,
private_wolfssl_crypter_t *this, chunk_t data, chunk_t iv, chunk_t *dst)
{
u_char *out;
INIT(this,
.public = {
.crypter = {
- .encrypt = _encrypt,
+ .encrypt = _encrypt_,
.decrypt = _decrypt,
.get_block_size = _get_block_size,
.get_iv_size = _get_iv_size,
}
}
-METHOD(public_key_t, encrypt, bool,
+METHOD(public_key_t, encrypt_, bool,
private_wolfssl_ec_public_key_t *this, encryption_scheme_t scheme,
void *params, chunk_t crypto, chunk_t *plain)
{
.key = {
.get_type = _get_type,
.verify = _verify,
- .encrypt = _encrypt,
+ .encrypt = _encrypt_,
.get_keysize = _get_keysize,
.equals = public_key_equals,
.get_fingerprint = _get_fingerprint,
return ret == 0 && res == 1;
}
-METHOD(public_key_t, encrypt, bool,
+METHOD(public_key_t, encrypt_, bool,
private_public_key_t *this, encryption_scheme_t scheme,
void *params, chunk_t crypto, chunk_t *plain)
{
.public = {
.get_type = _get_type,
.verify = _verify,
- .encrypt = _encrypt,
+ .encrypt = _encrypt_,
.get_keysize = _get_keysize,
.equals = public_key_equals,
.get_fingerprint = _get_fingerprint,
}
}
-METHOD(public_key_t, encrypt, bool,
+METHOD(public_key_t, encrypt_, bool,
private_wolfssl_rsa_public_key_t *this, encryption_scheme_t scheme,
void *params, chunk_t plain, chunk_t *crypto)
{
.key = {
.get_type = _get_type,
.verify = _verify,
- .encrypt = _encrypt,
+ .encrypt = _encrypt_,
.equals = public_key_equals,
.get_keysize = _get_keysize,
.get_fingerprint = _get_fingerprint,