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.
 */

/* Fixed Data in ROM - Field and Curve parameters */

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

// Base Bits= 56
pub const MODULUS:[Chunk;NLEN]=[0xFFFFFF7FFFFFFF,0xFFFFFFFFFFFFFF,0xFFFFFFFFFFFF];
pub const R2MODP:[Chunk;NLEN]=[0x1000000010000,0x400000,0x0];
pub const ROI:[Chunk;NLEN]=[0xFFFFFF7FFFFFFE,0xFFFFFFFFFFFFFF,0xFFFFFFFFFFFF];
pub const MCONST:Chunk=0xFFFFFF80000001;

pub const CURVE_COF_I:isize = 1;
pub const CURVE_COF:[Chunk;NLEN]=[0x1,0x0,0x0];
pub const CURVE_B_I:isize = 0;
pub const CURVE_B:[Chunk;NLEN]=[0xD4D4ADC565FA45,0x7A8B65ACF89F81,0x1C97BEFC54BD];
pub const CURVE_ORDER:[Chunk;NLEN]=[0x27AED3CA752257,0x1F4C8F9,0x1000000000000];
pub const CURVE_GX:[Chunk;NLEN]=[0xC38BB913CBFC82,0x73284664698968,0x4A96B5688EF5];
pub const CURVE_GY:[Chunk;NLEN]=[0x2351377AC5FB32,0x947D59DCC91204,0x23A628553168];
pub const CURVE_HTPC:[Chunk;NLEN]=[0xDAFAF3A25BC0DA,0x6106FACE6A7305,0x1E50BD02CD5A];