PC3.cc File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PC3.hh"

Go to the source code of this file.

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: PC3.cc 30949 2009-11-02 16:37:58Z ganis $"


Define Documentation

#define kMASKFIRST   (0x00000001)

Definition at line 37 of file PC3.cc.

Referenced by PC3::rotl().

#define kMASKLAST   (0x80000000)

Definition at line 36 of file PC3.cc.

Referenced by PC3::rotl().


Function Documentation

int PC3DiPukExp ( uchar pub,
uchar priv,
uchar key 
)

Definition at line 353 of file PC3.cc.

References b, PC3::funM(), PC3::funR(), g, kPC3KEYLEN, kPC3SLEN, m, n, pr(), and x1.

Referenced by XrdCryptolocalCipher::Finalize(), and XrdCryptolocalCipher::XrdCryptolocalCipher().

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

Definition at line 283 of file PC3.cc.

References b, PC3::createkey(), PC3::funM(), PC3::funR(), g, kPC3SLEN, m, n, pr(), and x1.

Referenced by XrdCryptolocalCipher::XrdCryptolocalCipher().


Variable Documentation

const char* PC3CVSID = "$Id: PC3.cc 30949 2009-11-02 16:37:58Z ganis $"

Definition at line 3 of file PC3.cc.


Generated on Tue Jul 5 16:08:05 2011 for ROOT_528-00b_version by  doxygen 1.5.1