aboutsummaryrefslogtreecommitdiff
path: root/include/olm/pk.h
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-07-09 23:21:55 -0400
committerHubert Chathi <hubert@uhoreg.ca>2018-10-05 10:35:09 -0400
commit8520168e0b4c8172847a051e532ca4deaec46a95 (patch)
tree0364a2a58a51863a405335592c3f25ac9b7474e4 /include/olm/pk.h
parent9b652bb127a51cb82304315612480fc9fb7a3a0a (diff)
fix some code style issues and typos
Diffstat (limited to 'include/olm/pk.h')
-rw-r--r--include/olm/pk.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/olm/pk.h b/include/olm/pk.h
index 1f3f9ff..07e6077 100644
--- a/include/olm/pk.h
+++ b/include/olm/pk.h
@@ -111,9 +111,10 @@ size_t olm_clear_pk_decryption(
/** The number of random bytes needed to generate a new key. */
size_t olm_pk_generate_key_random_length(void);
-/** Generate a new key to use for decrypting messages. The associated public
- * key will be written to the pubkey buffer. Returns olm_error() on failure. If
- * the pubkey buffer is too small then olm_pk_decryption_last_error() will be
+/** Generate a new key pair to use for decrypting messages. The private key is
+ * stored in the decryption object, and the associated public key will be
+ * written to the pubkey buffer. Returns olm_error() on failure. If the pubkey
+ * buffer is too small then olm_pk_decryption_last_error() will be
* "OUTPUT_BUFFER_TOO_SMALL". If there weren't enough random bytes then
* olm_pk_decryption_last_error() will be "NOT_ENOUGH_RANDOM". */
size_t olm_pk_generate_key(
@@ -164,7 +165,7 @@ size_t olm_pk_max_plaintext_length(
* the plaintext buffer is too small then olm_pk_encryption_last_error() will
* be "OUTPUT_BUFFER_TOO_SMALL". */
size_t olm_pk_decrypt(
- OlmPkDecryption * decrytion,
+ OlmPkDecryption * decryption,
void const * ephemeral_key, size_t ephemeral_key_length,
void const * mac, size_t mac_length,
void * ciphertext, size_t ciphertext_length,