diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-03-13 22:39:21 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2019-03-13 22:39:21 -0400 |
commit | 0348f06a5692f168f2d0d8b77aac81ebb31e2df6 (patch) | |
tree | 2256bf65aa65b42a4a116a66c515aaa4557d6c80 /src/pk.cpp | |
parent | 2589d1b17b140d83c444289bc3ed2c00061d88f4 (diff) |
rename functions to be more consistent
Diffstat (limited to 'src/pk.cpp')
-rw-r--r-- | src/pk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -436,11 +436,11 @@ size_t olm_clear_pk_signing(OlmPkSigning *sign) { return sizeof(OlmPkSigning); } -size_t olm_pk_sign_seed_length(void) { +size_t olm_pk_signing_seed_length(void) { return ED25519_RANDOM_LENGTH; } -size_t olm_pk_sign_public_key_length(void) { +size_t olm_pk_signing_public_key_length(void) { return olm::encode_base64_length(ED25519_PUBLIC_KEY_LENGTH); } @@ -449,12 +449,12 @@ size_t olm_pk_signing_key_from_seed( void * pubkey, size_t pubkey_length, void * seed, size_t seed_length ) { - if (pubkey_length < olm_pk_sign_public_key_length()) { + if (pubkey_length < olm_pk_signing_public_key_length()) { signing->last_error = OlmErrorCode::OLM_OUTPUT_BUFFER_TOO_SMALL; return std::size_t(-1); } - if (seed_length < olm_pk_sign_seed_length()) { + if (seed_length < olm_pk_signing_seed_length()) { signing->last_error = OlmErrorCode::OLM_INPUT_BUFFER_TOO_SMALL; return std::size_t(-1); |