Cryptographic Interface header file for declaring MD4 functions.
More...
Go to the source code of this file.
|
MOC_EXTERN MSTATUS | CRYPTO_INTERFACE_MD4_cloneCtx (MOC_HASH(hwAccelDescr hwAccelCtx) MD4_CTX *pDest, MD4_CTX *pSrc) |
| Makes a clone of a previously allocated MD4_CTX . More...
|
|
MOC_EXTERN MSTATUS | CRYPTO_INTERFACE_MD4_completeDigest (MOC_HASH(hwAccelDescr hwAccelCtx) const ubyte *pData, ubyte4 dataLen, ubyte *pOutput) |
| Perform a MD4 digest in one step. More...
|
|
MOC_EXTERN MSTATUS | CRYPTO_INTERFACE_MD4Alloc (MOC_HASH(hwAccelDescr hwAccelCtx) BulkCtx *pp_context) |
| Allocate a new MD4 context. More...
|
|
MOC_EXTERN MSTATUS | CRYPTO_INTERFACE_MD4Final (MOC_HASH(hwAccelDescr hwAccelCtx) MD4_CTX *pContext, ubyte pOutput[MD4_DIGESTSIZE]) |
| Finalize a digest operation and recieve the result. More...
|
|
MOC_EXTERN MSTATUS | CRYPTO_INTERFACE_MD4Free (MOC_HASH(hwAccelDescr hwAccelCtx) BulkCtx *pp_context) |
| Free a MD4 context previously allocated with CRYPTO_INTERFACE_MD4Alloc . More...
|
|
MOC_EXTERN MSTATUS | CRYPTO_INTERFACE_MD4Init (MOC_HASH(hwAccelDescr hwAccelCtx) MD4_CTX *pContext) |
| Initialize a MD4 context for a new digest operation. More...
|
|
MOC_EXTERN MSTATUS | CRYPTO_INTERFACE_MD4Update (MOC_HASH(hwAccelDescr hwAccelCtx) MD4_CTX *pContext, const ubyte *pData, ubyte4 dataLen) |
| Update a digest operation. More...
|
|
◆ CRYPTO_INTERFACE_MD4_cloneCtx()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_MD4_cloneCtx |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) MD4_CTX * |
pDest, |
|
|
MD4_CTX * |
pSrc |
|
) |
| |
- Parameters
-
pDest | Pointer to an already allocated destination context. |
pSrc | Pointer to the context to be copied. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_MD4_completeDigest()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_MD4_completeDigest |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) const ubyte * |
pData, |
|
|
ubyte4 |
dataLen, |
|
|
ubyte * |
pOutput |
|
) |
| |
- Parameters
-
pData | Data to digest. |
dataLen | Length in bytes of the data to digest. |
pOutput | Buffer of size MD4_RESULT_SIZE that will recieve the digest. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_MD4Alloc()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_MD4Alloc |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) BulkCtx * |
pp_context | ) |
|
It is the callers responsibility to free this object after use by calling CRYPTO_INTERFACE_MD4Free
.
- Parameters
-
pp_context | On return, pointer to the address of the allocated context. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_MD4Final()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_MD4Final |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) MD4_CTX * |
pContext, |
|
|
ubyte |
pOutput[MD4_DIGESTSIZE] |
|
) |
| |
- Parameters
-
pContext | The digest context used to update the data. |
pOutput | Buffer of size MD4_RESULT_SIZE that will recieve the digest. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_MD4Free()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_MD4Free |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) BulkCtx * |
pp_context | ) |
|
- Parameters
-
pp_context | Context to be freed. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_MD4Init()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_MD4Init |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) MD4_CTX * |
pContext | ) |
|
- Parameters
-
pContext | The MD4 context to initialize. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_MD4Update()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_MD4Update |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) MD4_CTX * |
pContext, |
|
|
const ubyte * |
pData, |
|
|
ubyte4 |
dataLen |
|
) |
| |
- Parameters
-
pContext | The digest context to be updated. |
pData | The data to update the context with. |
dataLen | Length in bytes of the update data. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.