All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Prestwood <james.prestwood@linux.intel.com>
To: ell@lists.01.org
Subject: [PATCH v2 2/2] ecc: document where ECC groups came from
Date: Tue, 15 Jan 2019 14:43:08 -0800	[thread overview]
Message-ID: <20190115224308.6100-2-james.prestwood@linux.intel.com> (raw)
In-Reply-To: <20190115224308.6100-1-james.prestwood@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 911 bytes --]

For future reference a comment was added pointing to RFC 5114
---
 ell/ecc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ell/ecc.c b/ell/ecc.c
index b2110df..a9eedf4 100644
--- a/ell/ecc.c
+++ b/ell/ecc.c
@@ -32,6 +32,9 @@
 #include "ecc-private.h"
 #include "random.h"
 
+/*
+ * RFC 5114 - Section 2.6 256-bit Random ECP Group
+ */
 #define P256_CURVE_P { 0xFFFFFFFFFFFFFFFFull, 0x00000000FFFFFFFFull, \
 			0x0000000000000000ull, 0xFFFFFFFF00000001ull }
 #define P256_CURVE_GX { 0xF4A13945D898C296ull, 0x77037D812DEB33A0ull,   \
@@ -56,6 +59,9 @@ static const struct l_ecc_curve p256 = {
 	.b = P256_CURVE_B,
 };
 
+/*
+ * RFC 5114 - Section 2.7 384-bit Random ECP Group
+ */
 #define P384_CURVE_P {	0x00000000FFFFFFFFull, 0xFFFFFFFF00000000ull, \
 			0xFFFFFFFFFFFFFFFEull, 0xFFFFFFFFFFFFFFFFull, \
 			0xFFFFFFFFFFFFFFFFull, 0xFFFFFFFFFFFFFFFFull }
-- 
2.17.1


  reply	other threads:[~2019-01-15 22:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-15 22:43 [PATCH v2 1/2] ecc: add l_ecc_curve_get_supported_groups James Prestwood
2019-01-15 22:43 ` James Prestwood [this message]
2019-01-16 16:38   ` [PATCH v2 2/2] ecc: document where ECC groups came from Denis Kenzior
2019-01-16 17:05     ` James Prestwood
2019-01-16 16:35 ` [PATCH v2 1/2] ecc: add l_ecc_curve_get_supported_groups Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2019-01-15 22:23 James Prestwood
2019-01-15 22:23 ` [PATCH v2 2/2] ecc: document where ECC groups came from James Prestwood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190115224308.6100-2-james.prestwood@linux.intel.com \
    --to=james.prestwood@linux.intel.com \
    --cc=ell@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.