added functions for freeing memory

This commit is contained in:
GRISHNOV
2021-12-17 03:21:27 -08:00
parent 0fcb944f78
commit 0e2f68c1a0
5 changed files with 48 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
#ifndef PKCS7_H
#define PKCS7_H
#include <stdint.h>
/*
Examples of commonly used block sizes for data padding.
WARNING: block size for PKCS7 padding can be 0 < BLOCK_SIZE < 256 bytes.
@@ -46,4 +48,15 @@ typedef struct {
*/
PKCS7_unPadding* removePadding(const void* const data, const uint64_t dataLength);
/*
Frees the memory that was allocated for padding structure.
*/
void freePaddingResult(PKCS7_Padding* puddingResult);
/*
Frees the memory that was allocated for unpadding structure.
*/
void freeUnPaddingResult(PKCS7_unPadding* unPuddingResult);
#endif // PKCS7_H