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
a378a40b
Commit
a378a40b
authored
Aug 19, 2015
by
Mark Haines
Browse files
Document that the ciphertext and plaintext may share a buffer when encrypting and decrypting
parent
900d2d70
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/olm/cipher.hh
View file @
a378a40b
...
@@ -47,6 +47,8 @@ public:
...
@@ -47,6 +47,8 @@ public:
* output |--ciphertext_length-->| |---mac_length-->|
* output |--ciphertext_length-->| |---mac_length-->|
* ciphertext
* ciphertext
*
*
* The plain-text pointers and cipher-text pointers may be the same.
*
* Returns std::size_t(-1) if the length of the cipher-text or the output
* Returns std::size_t(-1) if the length of the cipher-text or the output
* buffer is too small. Otherwise returns the length of the output buffer.
* buffer is too small. Otherwise returns the length of the output buffer.
*/
*/
...
@@ -73,6 +75,8 @@ public:
...
@@ -73,6 +75,8 @@ public:
* input |--ciphertext_length-->| |---mac_length-->|
* input |--ciphertext_length-->| |---mac_length-->|
* ciphertext
* ciphertext
*
*
* The plain-text pointers and cipher-text pointers may be the same.
*
* Returns std::size_t(-1) if the length of the plain-text buffer is too
* Returns std::size_t(-1) if the length of the plain-text buffer is too
* small or if the authentication check fails. Otherwise returns the length
* small or if the authentication check fails. Otherwise returns the length
* of the plain text.
* of the plain text.
...
...
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