tor-browser

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

shsign.h (816B)


      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 _SHSIGN_H_
      6 #define _SHSIGN_H_
      7 
      8 #define SGN_SUFFIX ".chk"
      9 #define NSS_SIGN_CHK_MAGIC1 0xf1
     10 #define NSS_SIGN_CHK_MAGIC2 0xc5
     11 /* new hmac based signatures */
     12 #define NSS_SIGN_CHK_MAJOR_VERSION 0x02
     13 #define NSS_SIGN_CHK_MINOR_VERSION 0x01
     14 #define NSS_SIGN_CHK_TYPE_FLAGS 0xff000000
     15 #define NSS_SIGN_CHK_FLAG_HMAC 0x80000000
     16 
     17 typedef struct NSSSignChkHeaderStr NSSSignChkHeader;
     18 struct NSSSignChkHeaderStr {
     19    unsigned char magic1;
     20    unsigned char magic2;
     21    unsigned char majorVersion;
     22    unsigned char minorVersion;
     23    unsigned char offset[4];
     24    unsigned char type[4];
     25 };
     26 #endif /* _SHSIGN_H_ */