tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ecp_secp521r1.h (1191B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #ifndef __ecp_secp521r1_h_
      6 #define __ecp_secp521r1_h_
      7 
      8 /*-
      9 * Wrapper: simultaneous scalar mutiplication.
     10 * outx, outy := a * G + b * P
     11 * where P = (inx, iny).
     12 * Everything is LE byte ordering.
     13 */
     14 void point_mul_two_secp521r1(unsigned char outx[66], unsigned char outy[66],
     15                             const unsigned char a[66], const unsigned char b[66], const unsigned char inx[66], const unsigned char iny[66]);
     16 
     17 /*-
     18 * Wrapper: fixed scalar mutiplication.
     19 * outx, outy := scalar * G
     20 * Everything is LE byte ordering.
     21 */
     22 void point_mul_g_secp521r1(unsigned char outx[66], unsigned char outy[66],
     23                           const unsigned char scalar[66]);
     24 
     25 /*-
     26 * Wrapper: variable point scalar mutiplication.
     27 * outx, outy := scalar * P
     28 * where P = (inx, iny).
     29 * Everything is LE byte ordering.
     30 */
     31 void point_mul_secp521r1(unsigned char outx[66], unsigned char outy[66], const unsigned char scalar[66], const unsigned char inx[66], const unsigned char iny[66]);
     32 
     33 #endif