rpmio/tax.c File Reference

#include "system.h"
#include "base64.h"
#include "mpbarrett.h"
#include "mp.h"
#include "popt.h"
#include "debug.h"

Go to the source code of this file.

Functions

static char * pgpHexCvt (char *t, const byte *s, int nbytes)
 Convert to hex.
static char * pgpHexStr (const byte *p, unsigned int plen)
 Return hex formatted representation of bytes.
static int doit (const char *msg, const char *sig)
int main (int argc, char *argv[])

Variables

const char * applechallenge = "09KF45soMYmvj6dpsUGiIg=="
const char * rsaaeskey
const char * aesiv = "zcZmAZtqh7uGcEwPXk0QeA=="
const char * appleresponse


Function Documentation

static int doit ( const char *  msg,
const char *  sig 
) [static]

Definition at line 77 of file tax.c.

References pgpHexStr().

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 101 of file tax.c.

References aesiv, applechallenge, appleresponse, doit(), and rsaaeskey.

static char* pgpHexCvt ( char *  t,
const byte s,
int  nbytes 
) [inline, static]

Convert to hex.

Parameters:
t target buffer (returned)
s source bytes
nbytes no. of bytes
Returns:
target buffer

Definition at line 44 of file tax.c.

static char* pgpHexStr ( const byte p,
unsigned int  plen 
) [inline, static]

Return hex formatted representation of bytes.

Todo:
Remove static buffer.
Parameters:
p bytes
plen no. of bytes
Returns:
hex formatted string

Definition at line 68 of file tax.c.

References pgpHexCvt().


Variable Documentation

const char* aesiv = "zcZmAZtqh7uGcEwPXk0QeA=="

Definition at line 25 of file tax.c.

Referenced by main().

const char* applechallenge = "09KF45soMYmvj6dpsUGiIg=="

Definition at line 10 of file tax.c.

Referenced by main().

const char* appleresponse

Initial value:

 "\
u+msU8Cc7KBrVPjI/Ir8fOL8+C5D3Jsw1+acaW3MNTndrTQAeb/a\
5m10UVBX6wb/DYQGY+b28ksSwBjN0nFOk4Y2cODEf83FAh7B\
mkLpmpkpplp7zVXQ+Z9DcB6gC60ZsS3t98aoR7tSzVLKZNgi2X2sC+vGsz\
utQxX03HK008VjcdngHv3g1p2knoETd07T6eVfZCmPqp6Ga7Dj8VIIj/GEP3\
AjjDx3lJnQBXUDmxM484YXLXZjWFXCiY8GJt6whjf7/2c3rIoT3Z7PQpEvPmM\
1MXU9cv4NL59Y/q0OAVQ38foOz7eGAhfvjOsCnHU25aik7/7ToIYt1tyVtap/kA==\
"

Definition at line 27 of file tax.c.

Referenced by main().

const char* rsaaeskey

Initial value:

 "\
5QYIqmdZGTONY5SHjEJrqAhaa0W9wzDC5i6q221mdGZJ5ubO6Kg\
yhC6U83wpY87TFdPRdfPQl2kVC7+Uefmx1bXdIUo07ZcJsqMbgtje4w2JQw0b\
Uw2BlzNPmVGQOxfdpGc3LXZzNE0jI1D4conUEiW6rrzikXBhk7Y/i2naw13ayy\
xaSwtkiJ0ltBQGYGErbV2tx43QSNj7O0JIG9GrF2GZZ6/UHo4VH+ZXgQ4NZvP/\
QXPCsLutZsvusFDzIEq7TN1fveINOiwrzlN+bckEixvhXlvoQTWE2tjbmQYhMvO\
FIly5gNbZiXi0l5AdolX4jDC2vndFHqWDks/3sPikNg==\
"

Definition at line 13 of file tax.c.

Referenced by main().


Generated on Mon Mar 5 13:30:32 2007 for rpm by  doxygen 1.5.1