lightningsunbird
0.9+nobinonly

#include "seccomon.h"
#include "secoidt.h"
#include "lowkeyti.h"
Go to the source code of this file.
Defines  
#define  CONST 
Functions  
NSSLOWKEYPrivateKey *  getDefaultRSAPrivateKey (void) 
NSSLOWKEYPublicKey *  getDefaultRSAPublicKey (void) 
Variables  
static CONST unsigned char  default_n [128] 
static CONST unsigned char  default_e [3] = { 0x01,0x00,0x01 } 
static CONST unsigned char  default_d [128] 
static CONST unsigned char  default_p [64] 
static CONST unsigned char  default_q [64] 
static CONST unsigned char  default_dModP [64] 
static CONST unsigned char  default_dModQ [64] 
static CONST unsigned char  default_qInvModP [64] 
static struct  NSSLOWKEYPrivateKeyStr 
static struct  NSSLOWKEYPublicKeyStr 
NSSLOWKEYPrivateKey* getDefaultRSAPrivateKey  (  void  ) 
Definition at line 110 of file defkey.c.
{ if (rsaPriv.keyType != NSSLOWKEYRSAKey) { /* leaving arena uninitialized. It isn't used in this test. */ rsaPriv.keyType = NSSLOWKEYRSAKey; /* leaving arena uninitialized. It isn't used. */ /* leaving version uninitialized. It isn't used. */ rsaPriv.u.rsa.modulus.data = default_n; rsaPriv.u.rsa.modulus.len = sizeof default_n; rsaPriv.u.rsa.publicExponent.data = default_e; rsaPriv.u.rsa.publicExponent.len = sizeof default_e; rsaPriv.u.rsa.privateExponent.data = default_d; rsaPriv.u.rsa.privateExponent.len = sizeof default_d; rsaPriv.u.rsa.prime1.data = default_p; rsaPriv.u.rsa.prime1.len = sizeof default_p; rsaPriv.u.rsa.prime2.data = default_q; rsaPriv.u.rsa.prime2.len = sizeof default_q; rsaPriv.u.rsa.exponent1.data = default_dModP; rsaPriv.u.rsa.exponent1.len = sizeof default_dModP; rsaPriv.u.rsa.exponent2.data = default_dModQ; rsaPriv.u.rsa.exponent2.len = sizeof default_dModQ; rsaPriv.u.rsa.coefficient.data = default_qInvModP; rsaPriv.u.rsa.coefficient.len = sizeof default_qInvModP; } return &rsaPriv; }
NSSLOWKEYPublicKey* getDefaultRSAPublicKey  (  void  ) 
Definition at line 144 of file defkey.c.
{ if (rsaPub.keyType != NSSLOWKEYRSAKey) { rsaPub.keyType = NSSLOWKEYRSAKey; rsaPub.u.rsa.modulus.data = default_n; rsaPub.u.rsa.modulus.len = sizeof default_n; rsaPub.u.rsa.publicExponent.data = default_e; rsaPub.u.rsa.publicExponent.len = sizeof default_e; } return &rsaPub; }
{ 0x13,0xcb,0xbc,0xf2,0xf3,0x35,0x8c,0x6d,0x7b,0x6f,0xd9,0xf3,0xa6,0x9c,0xbd,0x80, 0x59,0x2e,0x4f,0x2f,0x11,0xa7,0x17,0x2b,0x18,0x8f,0x0f,0xe8,0x1a,0x69,0x5f,0x6e, 0xac,0x5a,0x76,0x7e,0xd9,0x4c,0x6e,0xdb,0x47,0x22,0x8a,0x57,0x37,0x7a,0x5e,0x94, 0x7a,0x25,0xb5,0xe5,0x78,0x1d,0x3c,0x99,0xaf,0x89,0x7d,0x69,0x2e,0x78,0x9d,0x1d, 0x84,0xc8,0xc1,0xd7,0x1a,0xb2,0x6d,0x2d,0x8a,0xd9,0xab,0x6b,0xce,0xae,0xb0,0xa0, 0x58,0x55,0xad,0x5c,0x40,0x8a,0xd6,0x96,0x08,0x8a,0xe8,0x63,0xe6,0x3d,0x6c,0x20, 0x49,0xc7,0xaf,0x0f,0x25,0x73,0xd3,0x69,0x43,0x3b,0xf2,0x32,0xf8,0x3d,0x5e,0xee, 0x7a,0xca,0xd6,0x94,0x55,0xe5,0xbd,0x25,0x34,0x8d,0x63,0x40,0xb5,0x8a,0xc3,0x01 }
CONST unsigned char default_dModP[64] [static] 
{ 0x8e,0x80,0xbf,0x87,0x11,0x04,0xcf,0x36,0x6c,0x96,0x8d,0xb9,0xfb,0xe6,0xfe,0x0c, 0xce,0x74,0x5a,0x56,0x67,0x8c,0x5f,0x66,0x54,0x56,0x04,0x03,0x24,0x9f,0xec,0x4c, 0xaa,0xe1,0x71,0x11,0x7e,0xe9,0x3a,0x2b,0x87,0x07,0x5c,0xe6,0x5a,0xa8,0x71,0xa2, 0xad,0xf3,0x17,0x4e,0x7e,0xa6,0xef,0x5a,0xce,0xcc,0x84,0xd7,0x21,0x91,0x29,0xf1 }
CONST unsigned char default_dModQ[64] [static] 
{ 0x87,0x60,0x1d,0x02,0xdb,0x82,0x1e,0x8b,0x07,0x48,0xe8,0x5c,0x59,0xeb,0x62,0xa4, 0x15,0xff,0x95,0x12,0x82,0xfd,0xd9,0x8d,0xf2,0x6c,0x3a,0x2f,0x9b,0x30,0x51,0x6a, 0xdb,0x80,0x6f,0xa1,0xef,0xee,0x8c,0x69,0x63,0xd1,0xa4,0xdb,0x9c,0x8f,0x80,0xe5, 0xfb,0x3f,0x33,0x8e,0x3d,0x3c,0x6b,0xa1,0x6c,0xab,0x20,0x92,0xe0,0xd8,0xcd,0xa1 }
{ 0xc2,0xae,0x96,0x89,0xaf,0xce,0xd0,0x7b,0x3b,0x35,0xfd,0x0f,0xb1,0xf4,0x7a,0xd1, 0x3c,0x7d,0xb5,0x86,0xf2,0x68,0x36,0xc9,0x97,0xe6,0x82,0x94,0x86,0xaa,0x05,0x39, 0xec,0x11,0x51,0xcc,0x5c,0xa1,0x59,0xba,0x29,0x18,0xf3,0x28,0xf1,0x9d,0xe3,0xae, 0x96,0x5d,0x6d,0x87,0x73,0xf6,0xf6,0x1f,0xd0,0x2d,0xfb,0x2f,0x7a,0x13,0x7f,0xc8, 0x0c,0x7a,0xe9,0x85,0xfb,0xce,0x74,0x86,0xf8,0xef,0x2f,0x85,0x37,0x73,0x0f,0x62, 0x4e,0x93,0x17,0xb7,0x7e,0x84,0x9a,0x94,0x11,0x05,0xca,0x0d,0x31,0x4b,0x2a,0xc8, 0xdf,0xfe,0xe9,0x0c,0x13,0xc7,0xf2,0xad,0x19,0x64,0x28,0x3c,0xb5,0x6a,0xc8,0x4b, 0x79,0xea,0x7c,0xce,0x75,0x92,0x45,0x3e,0xa3,0x9d,0x64,0x6f,0x04,0x69,0x19,0x17 }
{ 0xf6,0x3c,0x3f,0x56,0x58,0x4f,0xb3,0x82,0x0c,0xf0,0x5b,0x42,0x36,0x1c,0x93,0xde, 0x9b,0x32,0x01,0xb1,0x48,0xf8,0x00,0x57,0x9b,0xc1,0xbe,0x66,0xc2,0xbb,0xea,0x7c, 0x75,0x29,0x2c,0x22,0xaa,0x7c,0xaf,0xbd,0x0d,0x3f,0xb0,0x64,0x97,0xf0,0x88,0x25, 0xcb,0x8d,0xc7,0x19,0x0a,0x75,0x44,0xa4,0x5a,0xc3,0xb5,0xb9,0x85,0xea,0x27,0xa7 }
{ 0xca,0x66,0xfa,0x18,0x6a,0x46,0x36,0x1c,0x46,0xfe,0x47,0xe9,0x7e,0x52,0x83,0x8a, 0xbb,0x72,0x13,0xcc,0x83,0x56,0x3d,0x64,0x22,0xdd,0xfa,0x7c,0x61,0x99,0xea,0xa4, 0xb3,0x0e,0x8f,0x79,0x10,0xab,0xba,0x4a,0x73,0xd1,0x48,0x40,0x34,0x34,0xd3,0xd2, 0x54,0x92,0xbe,0xf5,0xc8,0xc4,0x60,0x5f,0xd3,0xf7,0xce,0xbe,0x60,0x3e,0xb1,0x11 }
CONST unsigned char default_qInvModP[64] [static] 
{ 0xce,0xcf,0x5a,0xad,0xc4,0x8c,0x44,0x91,0x3a,0xbc,0x7b,0xf8,0x80,0xf8,0x53,0xf5, 0x12,0x84,0x8c,0x9c,0x6b,0x33,0x93,0x0d,0xa1,0x11,0xea,0xfa,0x4a,0xc1,0xeb,0x48, 0xdc,0x44,0x86,0x93,0x1b,0x98,0xc7,0x82,0x22,0x68,0x30,0x44,0xd7,0x62,0x1b,0x90, 0x54,0x07,0x4b,0x66,0xa7,0xc5,0x75,0x5a,0x72,0x77,0x92,0xdd,0x6c,0xf3,0x37,0xab }
struct NSSLOWKEYPrivateKeyStr [static] 
struct NSSLOWKEYPublicKeyStr [static] 