Line 1... |
Line 1... |
/*
|
/*
|
Copyright 2012 Homer Hsing
|
* Copyright 2012, Homer Hsing <homer.hsing@gmail.com>
|
|
*
|
This file is part of Tiny Tate Bilinear Pairing Core.
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
Tiny Tate Bilinear Pairing Core is free software: you can redistribute it and/or modify
|
* You may obtain a copy of the License at
|
it under the terms of the GNU Lesser General Public License as published by
|
*
|
the Free Software Foundation, either version 3 of the License, or
|
* http://www.apache.org/licenses/LICENSE-2.0
|
(at your option) any later version.
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
Tiny Tate Bilinear Pairing Core is distributed in the hope that it will be useful,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* See the License for the specific language governing permissions and
|
GNU Lesser General Public License for more details.
|
* limitations under the License.
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with Tiny Tate Bilinear Pairing Core. If not, see http://www.gnu.org/licenses/lgpl.txt
|
|
*/
|
*/
|
|
|
`define M 593 // M is the degree of the irreducible polynomial
|
`define M 593 // M is the degree of the irreducible polynomial
|
`define WIDTH (2*`M-1) // width for a GF(3^M) element
|
`define WIDTH (2*`M-1) // width for a GF(3^M) element
|
`define WIDTH_D0 1187
|
`define WIDTH_D0 1187
|