tor-browser

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

eclt.h (785B)


      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 /* This header holds ECC types and must not be exported publicly. */
      6 
      7 #ifndef __eclt_h_
      8 #define __eclt_h_
      9 
     10 /* byte encoding of curve parameters */
     11 struct ECCurveBytesStr {
     12    char *text;
     13    ECField field;
     14    size_t size;
     15    const PRUint8 *irr;
     16    const PRUint8 *curvea;
     17    const PRUint8 *curveb;
     18    const PRUint8 *genx;
     19    const PRUint8 *geny;
     20    const PRUint8 *order;
     21    const PRUint8 *base;
     22    int cofactor;
     23    int security;
     24    size_t pointSize;
     25    size_t scalarSize;
     26    unsigned int usage;
     27 };
     28 typedef struct ECCurveBytesStr ECCurveBytes;
     29 
     30 #endif /* __ecl_h_ */