From 41fe7d2380617da515581503490f1467ee75a521 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Mon, 11 May 2015 10:58:51 +0100 Subject: [PATCH] Fix the comment for POINT_CONVERSION_UNCOMPRESSED MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The |z| value should be 0x04 not 0x02 RT#3838 Signed-off-by: Matt Caswell Reviewed-by: Emilia Käsper Reviewed-by: Matt Caswell (cherry picked from commit 91d2728b38b1df930f337e163816a0fc9580b6a6) --- crypto/ec/ec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/ec.h b/crypto/ec/ec.h index 6d3178f609..81e6faf6c5 100644 --- a/crypto/ec/ec.h +++ b/crypto/ec/ec.h @@ -106,7 +106,7 @@ typedef enum { /** the point is encoded as z||x, where the octet z specifies * which solution of the quadratic equation y is */ POINT_CONVERSION_COMPRESSED = 2, - /** the point is encoded as z||x||y, where z is the octet 0x02 */ + /** the point is encoded as z||x||y, where z is the octet 0x04 */ POINT_CONVERSION_UNCOMPRESSED = 4, /** the point is encoded as z||x||y, where the octet z specifies * which solution of the quadratic equation y is */ -- 2.34.1