diff options
author | Jack Lloyd <[email protected]> | 2018-08-12 19:03:18 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-12 19:03:18 -0400 |
commit | c3b40191a0406b6d8f7d1480d06344067622e2c1 (patch) | |
tree | 4ad369713128d0787cdf9b0b46d95a92925770af /src/lib/pubkey/pubkey.cpp | |
parent | f21693a2499e10fae7a07f7d80178874115a185c (diff) |
Add function to return the size of a key agreement output
Very useful when using "Raw" DH/ECDH via the FFI API.
Diffstat (limited to 'src/lib/pubkey/pubkey.cpp')
-rw-r--r-- | src/lib/pubkey/pubkey.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/pubkey/pubkey.cpp b/src/lib/pubkey/pubkey.cpp index fef81a620..bb0170548 100644 --- a/src/lib/pubkey/pubkey.cpp +++ b/src/lib/pubkey/pubkey.cpp @@ -210,6 +210,11 @@ PK_Key_Agreement::PK_Key_Agreement(PK_Key_Agreement&& other) : m_op(std::move(other.m_op)) {} +size_t PK_Key_Agreement::agreed_value_size() const + { + return m_op->agreed_value_size(); + } + SymmetricKey PK_Key_Agreement::derive_key(size_t key_len, const uint8_t in[], size_t in_len, const uint8_t salt[], |