#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include "PC1.hh"Go to the source code of this file.
Namespaces | |
| namespace | PC1 |
Typedefs | |
| typedef unsigned short | ushort |
Functions | |
| static ushort | PC1::code (ushort &ind, ushort &si, ushort &x1a2, ushort *x1a0) |
| static void | PC1::assemble (unsigned char *cle, ushort &inter, ushort &si, ushort &x1a2) |
| int | PC1HashFun (const char *in, int lin, const char *sa, int lsa, int it, char *out) |
| int | PC1Encrypt (const char *in, int lin, const char *key, int lkey, char *out) |
| int | PC1Decrypt (const char *in, int lin, const char *key, int lkey, char *out) |
Variables | |
| const char * | PC1CVSID = "$Id: PC1.cc 30949 2009-11-02 16:37:58Z ganis $" |
| static unsigned char | cleref [kPC1LENGTH] |
| int PC1Decrypt | ( | const char * | in, | |
| int | lin, | |||
| const char * | key, | |||
| int | lkey, | |||
| char * | out | |||
| ) |
Definition at line 299 of file PC1.cc.
References PC1::assemble(), c, cleref, d, j, k, kPC1LENGTH, n, and x61.
Referenced by XrdCryptolocalCipher::Decrypt().
| int PC1Encrypt | ( | const char * | in, | |
| int | lin, | |||
| const char * | key, | |||
| int | lkey, | |||
| char * | out | |||
| ) |
Definition at line 233 of file PC1.cc.
References PC1::assemble(), c, cleref, d, j, k, kPC1LENGTH, and n.
Referenced by XrdCryptolocalCipher::Encrypt().
| int PC1HashFun | ( | const char * | in, | |
| int | lin, | |||
| const char * | sa, | |||
| int | lsa, | |||
| int | it, | |||
| char * | out | |||
| ) |
Definition at line 119 of file PC1.cc.
References PC1::assemble(), c, cleref, d, j, k, and kPC1LENGTH.
Referenced by XrdCryptolocalKDFun().
unsigned char cleref[kPC1LENGTH] [static] |
Initial value:
{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p',
'q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5'}
Definition at line 34 of file PC1.cc.
Referenced by PC1Decrypt(), PC1Encrypt(), and PC1HashFun().
| const char* PC1CVSID = "$Id: PC1.cc 30949 2009-11-02 16:37:58Z ganis $" |
1.5.1