crypt.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <md5.h>
#include "crypt.h"

Go to the source code of this file.

Functions

static void checksum (unsigned char *dest, unsigned const char *src, __u32 len, int checksum_num)
static __u32 cryptblock (__u32 k, char *buf, __u32 size)
int rtv_decrypt (const char *cyphertext, __u32 cyphertext_len, char *plainbuf, __u32 plainbuf_len, __u32 *p_time, __u32 *p_plain_len, int checksum_num)
int rtv_encrypt (const char *plaintext, __u32 plaintext_len, char *cyphertext, __u32 buffer_len, __u32 *cyphertext_len, int checksum_num)


Function Documentation

static void checksum unsigned char *  dest,
unsigned const char *  src,
__u32  len,
int  checksum_num
[static]
 

Definition at line 35 of file crypt.c.

Referenced by rtv_decrypt(), and rtv_encrypt().

static __u32 cryptblock __u32  k,
char *  buf,
__u32  size
[static]
 

Definition at line 66 of file crypt.c.

Referenced by rtv_decrypt(), and rtv_encrypt().

int rtv_decrypt const char *  cyphertext,
__u32  cyphertext_len,
char *  plainbuf,
__u32  plainbuf_len,
__u32 p_time,
__u32 p_plain_len,
int  checksum_num
 

Definition at line 91 of file crypt.c.

References checksum(), cryptblock(), key(), and RTV_PRT.

Referenced by run_crypt_test().

int rtv_encrypt const char *  plaintext,
__u32  plaintext_len,
char *  cyphertext,
__u32  buffer_len,
__u32 cyphertext_len,
int  checksum_num
 

Definition at line 180 of file crypt.c.

References checksum(), cryptblock(), and key().

Referenced by make_httpfs_url(), and run_crypt_test().


Generated on Fri Sep 10 03:13:23 2010 for mvpmc by  doxygen 1.4.6