xrootd
Namespaces | Defines | Functions | Variables
PC3.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PC3.hh"
Include dependency graph for PC3.cc:

Namespaces

namespace  PC3

Defines

#define kMASKLAST   (0x80000000)
#define kMASKFIRST   (0x00000001)

Functions

static unsigned int PC3::rotl (unsigned int n, unsigned int nl)
static unsigned long PC3::stream (unsigned int &r1, unsigned long b1)
static uchar PC3::pc3stream (uchar byte, unsigned long *b1, unsigned int &r1, unsigned int key)
unsigned int PC3::pc3init (unsigned int lngkey, uchar *code, unsigned long *b1, unsigned int &key)
static void PC3::funA (uchar *x, uchar *y, int o)
static void PC3::funS (uchar *x, uchar *m)
static void PC3::funR (uchar *x)
static void PC3::funM (uchar *x, uchar *y, uchar *m)
static int PC3::createkey (uchar *rpwd, unsigned int lrpw, uchar *priv)
int PC3InitDiPuk (uchar *rpwd, unsigned int lrpw, uchar *pub, uchar *priv)
int PC3DiPukExp (uchar *pub, uchar *priv, uchar *key)

Variables

const char * PC3CVSID = "$Id$"

Define Documentation

#define kMASKFIRST   (0x00000001)

Referenced by PC3::rotl().

#define kMASKLAST   (0x80000000)

Referenced by PC3::rotl().


Function Documentation

int PC3DiPukExp ( uchar pub,
uchar priv,
uchar key 
)
int PC3InitDiPuk ( uchar rpwd,
unsigned int  lrpw,
uchar pub,
uchar priv 
)

Variable Documentation

const char* PC3CVSID = "$Id$"