langcrypt.c File Reference

#include "frontier.h"
#include "standard.h"
#include "langinternal.h"
#include "kernelverbs.h"
#include "kernelverbdefs.h"
#include "resources.h"
#include "tablestructure.h"
#include "lang.h"
#include "frontierconfig.h"
#include "langcrypt.h"
#include "md5.h"
#include "whirlpool.h"
#include "sha.h"
#include "sha_locl.h"

Include dependency graph for langcrypt.c:

Go to the source code of this file.

Enumerations

enum  tycryptverbtoken {
  whirlpoolfunc, hmacmd5func, md5func, sha1func,
  hmacsha1func, ctcryptverbs
}

Functions

static boolean cryptfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
boolean cryptinitverbs (void)
boolean hmacmd5 (unsigned char *text, int text_len, unsigned char *key, int key_len, unsigned char *digest)
boolean hmacsha1 (unsigned char *text, int text_len, unsigned char *key, int key_len, unsigned char *digest)


Enumeration Type Documentation

enum tycryptverbtoken
 

Enumerator:
whirlpoolfunc 
hmacmd5func 
md5func 
sha1func 
hmacsha1func 
ctcryptverbs 

Definition at line 47 of file langcrypt.c.


Function Documentation

static boolean cryptfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 63 of file langcrypt.c.

References bigstring, BIGSTRING, tyvaluerecord::data, DIGESTBYTES, flnextparamislast, tyvaluedata::flvalue, gethandlesize(), getoptionalparamvalue(), getreadonlytextvalue(), h, hmacmd5(), hmacmd5func, lockhandle(), NESSIEadd(), NESSIEfinalize(), NESSIEinit(), newfilledhandle(), newtexthandle(), setbinaryvalue(), setbooleanvalue(), setheapvalue(), setstringlength, stringvaluetype, typeunknown, unlockhandle(), v, and whirlpoolfunc.

Referenced by cryptinitverbs().

Here is the call graph for this function:

boolean cryptinitverbs void   ) 
 

Definition at line 380 of file langcrypt.c.

References cryptfunctionvalue(), idcryptverbs, and loadfunctionprocessor().

Referenced by shellinit().

Here is the call graph for this function:

boolean hmacmd5 unsigned char *  text,
int  text_len,
unsigned char *  key,
int  key_len,
unsigned char *  digest
 

Definition at line 390 of file langcrypt.c.

References i, MD5Final(), MD5Init(), and MD5Update().

Referenced by cryptfunctionvalue().

Here is the call graph for this function:

boolean hmacsha1 unsigned char *  text,
int  text_len,
unsigned char *  key,
int  key_len,
unsigned char *  digest
 

Definition at line 460 of file langcrypt.c.

References i, SHA1_Final(), SHA1_Init(), SHA1_Update(), and SHA_CBLOCK.

Here is the call graph for this function:


Generated on Fri Jun 2 23:06:17 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6