miracl_core 2.7.0

Rust code for 64 bit generated from https://github.com/miracl/core
Documentation
/*
 * Copyright (c) 2012-2020 MIRACL UK Ltd.
 *
 * This file is part of MIRACL Core
 * (see https://github.com/miracl/core).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

use crate::arch::Chunk;
use crate::nist384::big::NLEN;

// Base Bits= 56
// nist384 Modulus
pub const MODULUS: [Chunk; NLEN] = [
    0xFFFFFFFF,
    0xFFFF0000000000,
    0xFFFFFFFFFEFFFF,
    0xFFFFFFFFFFFFFF,
    0xFFFFFFFFFFFFFF,
    0xFFFFFFFFFFFFFF,
    0xFFFFFFFFFFFF,
];
pub const ROI: [Chunk; NLEN] = [
    0xFFFFFFFE,
    0xFFFF0000000000,
    0xFFFFFFFFFEFFFF,
    0xFFFFFFFFFFFFFF,
    0xFFFFFFFFFFFFFF,
    0xFFFFFFFFFFFFFF,
    0xFFFFFFFFFFFF,
];
pub const R2MODP: [Chunk; NLEN] = [
    0xFE000000010000,
    0xFFFFFF,
    0x2,
    0xFFFFFFFE00,
    0x1000000020000,
    0x0,
    0x0,
];
pub const MCONST: Chunk = 0x100000001;

// nist384 Curve
pub const CURVE_COF_I: isize = 1;
pub const CURVE_B_I: isize = 0;
pub const CURVE_COF: [Chunk; NLEN] = [0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0];
pub const CURVE_B: [Chunk; NLEN] = [
    0x85C8EDD3EC2AEF,
    0x398D8A2ED19D2A,
    0x8F5013875AC656,
    0xFE814112031408,
    0xF82D19181D9C6E,
    0xE7E4988E056BE3,
    0xB3312FA7E23E,
];
pub const CURVE_ORDER: [Chunk; NLEN] = [
    0xEC196ACCC52973,
    0xDB248B0A77AEC,
    0x81F4372DDF581A,
    0xFFFFFFFFC7634D,
    0xFFFFFFFFFFFFFF,
    0xFFFFFFFFFFFFFF,
    0xFFFFFFFFFFFF,
];
pub const CURVE_GX: [Chunk; NLEN] = [
    0x545E3872760AB7,
    0xF25DBF55296C3A,
    0xE082542A385502,
    0x8BA79B9859F741,
    0x20AD746E1D3B62,
    0x5378EB1C71EF3,
    0xAA87CA22BE8B,
];
pub const CURVE_GY: [Chunk; NLEN] = [
    0x431D7C90EA0E5F,
    0xB1CE1D7E819D7A,
    0x13B5F0B8C00A60,
    0x289A147CE9DA31,
    0x92DC29F8F41DBD,
    0x2C6F5D9E98BF92,
    0x3617DE4A9626,
];
pub const CURVE_HTPC:[Chunk;NLEN]=[0x426C4D40DCD21B,0x2D2A87540AD33E,0xAF08445FEED054,0x37463B4BD5F66,0x587C02E00897B5,0x52484BD6A3FECA,0xBC6EF0F22371];