Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
d4a3c8db
Commit
d4a3c8db
authored
May 24, 2016
by
Richard van der Hoff
Browse files
Remove 'destruct' from cipher_ops
We never delete a cipher, and the destruct op is empty, so it's a bit pointless
parent
444ef1f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/olm/cipher.h
View file @
d4a3c8db
...
...
@@ -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
{
...
...
src/cipher.cpp
View file @
d4a3c8db
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment