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-07-20 23:32:37 +0300
committerAdam Langley <agl@google.com>2015-07-20 23:39:43 +0300
commit209b2562235f7dab66b8260624e7b3c5b00d14a6 (patch)
treebcda3f3daa843e4ca0352015d8663b52a9d41e4d /include/openssl/ec_key.h
parent0c893f14ca3eb211b86463180bf1353fb7f0110d (diff)
Fix o2i_ECPublicKey documentation.
It's not DER and always parses the entire thing. Change-Id: Idb4b8b93d5bc3689d8c3ea34c38b529e50a4af61 Reviewed-on: https://boringssl-review.googlesource.com/5451 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/ec_key.h')
-rw-r--r--include/openssl/ec_key.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/ec_key.h b/include/openssl/ec_key.h
index d67c45dc..1cd4e6e6 100644
--- a/include/openssl/ec_key.h
+++ b/include/openssl/ec_key.h
@@ -215,8 +215,8 @@ OPENSSL_EXPORT int i2d_ECParameters(const EC_KEY *key, uint8_t **outp);
/* o2i_ECPublicKey parses an EC point from |len| bytes at |*inp| into
* |*out_key|. Note that this differs from the d2i format in that |*out_key|
- * must be non-NULL. On successful exit, |*inp| is advanced past the DER
- * structure. It returns |*out_key| or NULL on error. */
+ * must be non-NULL with a group set. On successful exit, |*inp| is advanced by
+ * |len| bytes. It returns |*out_key| or NULL on error. */
OPENSSL_EXPORT EC_KEY *o2i_ECPublicKey(EC_KEY **out_key, const uint8_t **inp,
long len);