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::jubjub::big::NLEN;
use crate::arch::Chunk;

// jubjub Modulus
//*** rom field parameters*****
// Base Bits= 56
pub const MODULUS:[Chunk;NLEN]=[0xFFFFFF00000001,0xA402FFFE5BFEFF,0x809A1D80553BD,0x299D7D483339D8,0x73EDA753];
pub const R2MODP:[Chunk;NLEN]=[0x3B3440EC31BBA9,0x8929657E045FB0,0x2D645CF57C6E1A,0xEA6A1C5012ECF5,0x3C7B9D12];
pub const ROI:[Chunk;NLEN]=[0x788F500B912F1F,0x4FF270B3E0941B,0xC8D168D6C0C402,0x5B416B6F0FD56D,0x212D79E];
pub const MCONST:Chunk=0xFFFFFEFFFFFFFF;

//*** rom curve parameters *****
// Base Bits= 56

pub const CURVE_COF_I:isize = 8;
pub const CURVE_COF:[Chunk;NLEN]=[0x8,0x0,0x0,0x0,0x0];
pub const CURVE_B_I:isize = 0;
pub const CURVE_B:[Chunk;NLEN]=[0x65FD6D6343EB1,0x7F6D37579D2601,0x7E6BD7FD4292D,0x4BFA2B48F5FD92,0x2A9318E7];
pub const CURVE_ORDER:[Chunk;NLEN]=[0x970E5ED6F72CB7,0x2093CCC81082D0,0x101343B00A668,0x6533AFA906673B,0xE7DB4EA];
pub const CURVE_GX:[Chunk;NLEN]=[0x4ECF1A74F976C4,0x546BF2F39EDE7F,0xDF00384882000C,0xF8EFF38CA624B4,0x5183972A];
pub const CURVE_GY:[Chunk;NLEN]=[0x6BAD709349702E,0x8707FFA6833B14,0x5ABD9DC308096C,0x2CA2FC2C9E8FCC,0x3B43F847];
pub const CURVE_HTPC:[Chunk;NLEN]=[0x7AEF9E47BBBB6,0xFF515175320A99,0xCB473CD546E25D,0x2B37B1D403E3EE,0x62FD68B4];