aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/olm/cipher.h3
-rw-r--r--src/cipher.cpp5
2 files changed, 0 insertions, 8 deletions
diff --git a/include/olm/cipher.h b/include/olm/cipher.h
index 3296c37..5f7185c 100644
--- a/include/olm/cipher.h
+++ b/include/olm/cipher.h
@@ -92,9 +92,6 @@ struct _olm_cipher_ops {
uint8_t const * ciphertext, size_t ciphertext_length,
uint8_t * plaintext, size_t max_plaintext_length
);
-
- /** destroy any private data associated with this cipher */
- void (*destruct)(struct _olm_cipher *cipher);
};
struct _olm_cipher {
diff --git a/src/cipher.cpp b/src/cipher.cpp
index 73d6680..7830f6c 100644
--- a/src/cipher.cpp
+++ b/src/cipher.cpp
@@ -131,17 +131,12 @@ size_t aes_sha_256_cipher_decrypt(
}
-void aes_sha_256_cipher_destruct(struct _olm_cipher *cipher) {
-}
-
-
const _olm_cipher_ops aes_sha_256_cipher_ops = {
aes_sha_256_cipher_mac_length,
aes_sha_256_cipher_encrypt_ciphertext_length,
aes_sha_256_cipher_encrypt,
aes_sha_256_cipher_decrypt_max_plaintext_length,
aes_sha_256_cipher_decrypt,
- aes_sha_256_cipher_destruct
};
} // namespace