All files / kyber/lib/group/nist params.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42    1x   1x                                                                          
"use strict";
 
const BN = require("bn.js");
 
module.exports = {
  p256: {
    name: "P256",
    bitSize: 256,
    p: new BN(
      "ffffffffffffffffffffffff00000000000000000000000001000000ffffffff",
      16,
      "le"
    ),
    // -3 mod p
    a: new BN(
      "fcffffffffffffffffffffff00000000000000000000000001000000ffffffff",
      16,
      "le"
    ),
    b: new BN(
      "4b60d2273e3cce3bf6b053ccb0061d65bc86987655bdebb3e7933aaad835c65a",
      16,
      "le"
    ),
    n: new BN(
      "512563fcc2cab9f3849e17a7adfae6bcffffffffffffffff00000000ffffffff",
      16,
      "le"
    ),
    gx: new BN(
      "96c298d84539a1f4a033eb2d817d0377f240a463e5e6bcf847422ce1f2d1176b",
      16,
      "le"
    ),
    gy: new BN(
      "f551bf376840b6cbce5e316b5733ce2b169e0f7c4aebe78e9b7f1afee242e34f",
      16,
      "le"
    )
  }
};