Header file for declaring AES Matyas-Meyer-Oseas (MMO) hash functions.
More...
Go to the source code of this file.
|
| MOC_EXTERN MSTATUS | AES_MMO_allocDigest (MOC_SYM(hwAccelDescr hwAccelCtx) BulkCtx *pp_context) |
| | Allocates a new AES-MMO context. More...
|
| |
| MOC_EXTERN MSTATUS | AES_MMO_completeDigest (MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte *pData, ubyte4 dataLen, ubyte *pHashOutput) |
| | Performs the AES-MMO hash in a context free one-shot style. More...
|
| |
| MOC_EXTERN MSTATUS | AES_MMO_final (MOC_SYM(hwAccelDescr hwAccelCtx) AES_MMO_CTX *pAesMmoCtx, ubyte *pHashOutput) |
| | Finalizes an AES-MMO context and outputs the resulting hash. More...
|
| |
| MOC_EXTERN MSTATUS | AES_MMO_freeDigest (MOC_SYM(hwAccelDescr hwAccelCtx) BulkCtx *pp_context) |
| | Deletes a new AES-MMO context. More...
|
| |
| MOC_EXTERN MSTATUS | AES_MMO_initDigest (MOC_SYM(hwAccelDescr hwAccelCtx) AES_MMO_CTX *pAesMmoCtx) |
| | Initializes an AES-MMO context. More...
|
| |
| MOC_EXTERN MSTATUS | AES_MMO_updateDigest (MOC_SYM(hwAccelDescr hwAccelCtx) AES_MMO_CTX *pAesMmoCtx, const ubyte *pData, ubyte4 dataLen) |
| | Updates an AES-MMO context with a buffer of data. More...
|
| |
Header file for declaring AES Matyas-Meyer-Oseas (MMO) hash functions.
aes_mmo.h
◆ AES_MMO_allocDigest()
| MOC_EXTERN MSTATUS AES_MMO_allocDigest |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) BulkCtx * |
pp_context | ) |
|
Allocates a new AES-MMO context. Be sure to call AES_MMO_freeDigest in order to free the memory when done with the context.
- Parameters
-
| pp_context | Pointer to the location of the newly allocated context. |
- Returns
OK (0) if successful, otherwise a negative number error code from merrors.h.
◆ AES_MMO_completeDigest()
| MOC_EXTERN MSTATUS AES_MMO_completeDigest |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte * |
pData, |
|
|
ubyte4 |
dataLen, |
|
|
ubyte * |
pHashOutput |
|
) |
| |
Performs the AES-MMO hash in a context free one-shot style.
- Parameters
-
| pData | Buffer of data to be digested. |
| dataLen | The length of the data in bytes. |
| pHashOutput | Buffer to hold the resulting hash. This must be 16 bytes in length. |
- Returns
OK (0) if successful, otherwise a negative number error code from merrors.h.
◆ AES_MMO_final()
| MOC_EXTERN MSTATUS AES_MMO_final |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) AES_MMO_CTX * |
pAesMmoCtx, |
|
|
ubyte * |
pHashOutput |
|
) |
| |
Finalizes an AES-MMO context and outputs the resulting hash.
- Parameters
-
| pAesMmoCtx | Pointer to a previously initialized and updated context. |
| pHashOutput | Buffer to hold the resulting hash. This must be 16 bytes in length. |
- Returns
OK (0) if successful, otherwise a negative number error code from merrors.h.
◆ AES_MMO_freeDigest()
| MOC_EXTERN MSTATUS AES_MMO_freeDigest |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) BulkCtx * |
pp_context | ) |
|
Deletes a and frees the memory for an AES-MMO context.
- Parameters
-
| pp_context | Pointer to the location of the context to be deleted. |
- Returns
OK (0) if successful, otherwise a negative number error code from merrors.h.
◆ AES_MMO_initDigest()
| MOC_EXTERN MSTATUS AES_MMO_initDigest |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) AES_MMO_CTX * |
pAesMmoCtx | ) |
|
Initializes an AES-MMO context. This zeroes the context but does not free allocated memory.
- Parameters
-
| pAesMmoCtx | Pointer to the context to be initialized. |
- Returns
OK (0) if successful, otherwise a negative number error code from merrors.h.
◆ AES_MMO_updateDigest()
| MOC_EXTERN MSTATUS AES_MMO_updateDigest |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) AES_MMO_CTX * |
pAesMmoCtx, |
|
|
const ubyte * |
pData, |
|
|
ubyte4 |
dataLen |
|
) |
| |
Updates an AES-MMO context with a buffer of data. This may be called as many times as necessary.
- Parameters
-
| pAesMmoCtx | Pointer to a previously initialized context. |
| pData | Buffer of data to be digested. |
| dataLen | The length of the data in bytes. |
- Returns
OK (0) if successful, otherwise a negative number error code from merrors.h.