OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
mdc2dgst.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/des.h>
#include <openssl/mdc2.h>
#include <openssl/crypto.h>

Go to the source code of this file.

Macros

#define c2l(c, l)
 
#define l2c(l, c)
 

Functions

 fips_md_init (MDC2)
 
int MDC2_Update (MDC2_CTX *c, const unsigned char *in, size_t len)
 
int MDC2_Final (unsigned char *md, MDC2_CTX *c)
 

Macro Definition Documentation

#define c2l (   c,
 
)
Value:
(l =((DES_LONG)(*((c)++))) , \
l|=((DES_LONG)(*((c)++)))<< 8L, \
l|=((DES_LONG)(*((c)++)))<<16L, \
l|=((DES_LONG)(*((c)++)))<<24L)

Definition at line 67 of file mdc2dgst.c.

#define l2c (   l,
  c 
)
Value:
(*((c)++)=(unsigned char)(((l) )&0xff), \
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
*((c)++)=(unsigned char)(((l)>>24L)&0xff))

Definition at line 73 of file mdc2dgst.c.

Function Documentation

fips_md_init ( MDC2  )

Definition at line 79 of file mdc2dgst.c.

int MDC2_Final ( unsigned char *  md,
MDC2_CTX c 
)

Definition at line 162 of file mdc2dgst.c.

int MDC2_Update ( MDC2_CTX c,
const unsigned char *  in,
size_t  len 
)

Definition at line 88 of file mdc2dgst.c.