Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-12-31 05:39:34 +0300
committerAdam Langley <agl@google.com>2016-02-02 22:04:33 +0300
commit6014ea624831b656fabdc2600c7b0d891a5ae8cc (patch)
tree1ff19f321fb3d67f15518467cc54912d421b6859 /include
parentdd31c4eba2eeb370ab4305ab4cb8ecb48065d42c (diff)
Add EC_POINT_point2cbb.
This slightly simplifies the SSL_ECDH code and will be useful later on in reimplementing the key parsing logic. Change-Id: Ie41ea5fd3a9a734b3879b715fbf57bd991e23799 Reviewed-on: https://boringssl-review.googlesource.com/6858 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index 82f84ea5..230d395c 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -239,6 +239,13 @@ OPENSSL_EXPORT size_t EC_POINT_point2oct(const EC_GROUP *group,
point_conversion_form_t form,
uint8_t *buf, size_t len, BN_CTX *ctx);
+/* EC_POINT_point2cbb behaves like |EC_POINT_point2oct| but appends the
+ * serialised point to |cbb|. It returns one on success and zero on error. */
+OPENSSL_EXPORT int EC_POINT_point2cbb(CBB *out, const EC_GROUP *group,
+ const EC_POINT *point,
+ point_conversion_form_t form,
+ BN_CTX *ctx);
+
/* EC_POINT_oct2point sets |point| from |len| bytes of X9.62 format
* serialisation in |buf|. It returns one on success and zero otherwise. The
* |ctx| argument may be used if not NULL. */