Coda Distributed File System
Macros | Functions | Variables
secure.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <assert.h>
#include <rpc2/secure.h>
#include "rpc2.private.h"
Include dependency graph for secure.c:

Macros

#define RNDPOOL   256
 

Functions

void rpc2_Encrypt (IN char *FromBuffer, OUT char *ToBuffer, IN size_t HowManyBytes, IN RPC2_EncryptionKey WhichKey, IN RPC2_Integer EncryptionType)
 
void rpc2_Decrypt (IN char *FromBuffer, OUT char *ToBuffer, IN size_t HowManyBytes, IN RPC2_EncryptionKey WhichKey, IN RPC2_Integer EncryptionType)
 
void rpc2_InitRandom ()
 
unsigned int rpc2_NextRandom (char *StatePtr)
 
void rpc2_ApplyE (RPC2_PacketBuffer *pb, struct CEntry *ce)
 
void rpc2_ApplyD (RPC2_PacketBuffer *pb, struct CEntry *ce)
 

Variables

int rpc2_XDebug
 

Macro Definition Documentation

◆ RNDPOOL

#define RNDPOOL   256

Function Documentation

◆ rpc2_ApplyD()

void rpc2_ApplyD ( RPC2_PacketBuffer pb,
struct CEntry ce 
)

◆ rpc2_ApplyE()

void rpc2_ApplyE ( RPC2_PacketBuffer pb,
struct CEntry ce 
)

◆ rpc2_Decrypt()

void rpc2_Decrypt ( IN char *  FromBuffer,
OUT char *  ToBuffer,
IN size_t  HowManyBytes,
IN RPC2_EncryptionKey  WhichKey,
IN RPC2_Integer  EncryptionType 
)

◆ rpc2_Encrypt()

void rpc2_Encrypt ( IN char *  FromBuffer,
OUT char *  ToBuffer,
IN size_t  HowManyBytes,
IN RPC2_EncryptionKey  WhichKey,
IN RPC2_Integer  EncryptionType 
)

◆ rpc2_InitRandom()

void rpc2_InitRandom ( void  )

◆ rpc2_NextRandom()

unsigned int rpc2_NextRandom ( char *  StatePtr)

Variable Documentation

◆ rpc2_XDebug

int rpc2_XDebug