Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

beecrypt/blockpad.h File Reference

Blockcipher padding, header. More...

#include "beecrypt.h"

Go to the source code of this file.

Functions

memchunkpkcs5Pad (int blockbytes, memchunk *tmp)
 Enlarge buffer to boundary. More...

memchunkpkcs5Unpad (int blockbytes, memchunk *tmp)
 Shrink buffer to boundary. More...

memchunkpkcs5PadCopy (int blockbytes, const memchunk *src)
 Copy/enlarge buffer to boundary. More...

memchunkpkcs5UnpadCopy (int blockbytes, const memchunk *src)
 Copy/shrink buffer to boundary. More...


Detailed Description

Blockcipher padding, header.

Definition in file blockpad.h.


Function Documentation

memchunk* pkcs5Pad int    blockbytes,
memchunk   tmp
 

Enlarge buffer to boundary.

Parameters:
blockbytes  desired block alignment/pad boundary
tmp  buffer to pad
Returns:
buffer with pad added

Definition at line 33 of file blockpad.c.

References BEECRYPTAPI, pkcs5PadCopy, pkcs5Unpad, and pkcs5UnpadCopy.

memchunk* pkcs5PadCopy int    blockbytes,
const memchunk   src
 

Copy/enlarge buffer to boundary.

Parameters:
blockbytes  desired block alignment/pad boundary
src  buffer to pad
Returns:
copy of buffer with pad added

Definition at line 80 of file blockpad.c.

Referenced by dhaes_pContextEncrypt, and pkcs5Pad.

memchunk* pkcs5Unpad int    blockbytes,
memchunk   tmp
 

Shrink buffer to boundary.

Parameters:
blockbytes  desired block alignment/pad boundary
tmp  buffer to unpad
Returns:
buffer with pad removed

Definition at line 50 of file blockpad.c.

Referenced by dhaes_pContextDecrypt, and pkcs5Pad.

memchunk* pkcs5UnpadCopy int    blockbytes,
const memchunk   src
 

Copy/shrink buffer to boundary.

Parameters:
blockbytes  desired block alignment/pad boundary
src  buffer to unpad
Returns:
copy of buffer with pad removed

Definition at line 101 of file blockpad.c.

Referenced by pkcs5Pad.


Generated on Tue Sep 17 15:56:47 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002