From 2a9b50eaff93f545f2602af2a7d0bde305dfd8f4 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 27 Aug 2024 15:31:17 +0200 Subject: [PATCH] Add Curve448. Fixes #24. --- other/curves.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/other/curves.json b/other/curves.json index f8d08a4..3539de8 100644 --- a/other/curves.json +++ b/other/curves.json @@ -210,6 +210,36 @@ "trace_of_frobenius": "-221938542218978828286815502327069187962" } }, + { + "name": "Curve448", + "category": "other", + "desc": "Curve from https://datatracker.ietf.org/doc/html/rfc7748", + "field": { + "type": "Prime", + "p": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "bits": 448 + }, + "form": "Montgomery", + "params": { + "a": { + "raw": "0x262a6" + }, + "b": { + "raw": "0x01" + } + }, + "generator": { + "x": { + "raw": "0x05" + }, + "y": { + "raw": "0x7d235d1295f5b1f66c98ab6e58326fcecbae5d34f55545d060f75dc28df3f6edb8027e2346430d211312c4b150677af76fd7223d457b5b1a" + } + }, + "order": "0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffff7cca23e9c44edb49aed63690216cc2728dc58f552378c292ab5844f3", + "cofactor": "0x04", + "characteristics": {} + }, { "name": "Curve22103", "category": "other",