Cryptographic Interface header file for declaring SHA1 functions.
More...
Go to the source code of this file.
◆ CRYPTO_INTERFACE_SHA1_allocDigest()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_allocDigest |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) BulkCtx * |
pp_context | ) |
|
It is the callers responsibility to free this object after use by calling CRYPTO_INTERFACE_SHA1_freeDigest
.
- 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_SHA1_cloneCtx()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_cloneCtx |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) SHA1_CTX * |
pDest, |
|
|
SHA1_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_SHA1_completeDigest()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_completeDigest |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) const ubyte * |
pData, |
|
|
ubyte4 |
dataLen, |
|
|
ubyte * |
pShaOutput |
|
) |
| |
- Parameters
-
pData | Data to digest. |
dataLen | Length in bytes of the data to digest. |
pShaOutput | Buffer of size SHA_HASH_RESULT_SIZE that will recieve the digest. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_SHA1_finalDigest()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_finalDigest |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) SHA1_CTX * |
pContext, |
|
|
ubyte * |
pOutput |
|
) |
| |
- Parameters
-
pContext | The digest context used to update the data. |
pOutput | Buffer of size SHA_HASH_RESULT_SIZE that will recieve the digest. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_SHA1_freeDigest()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_freeDigest |
( |
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_SHA1_G()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_G |
( |
ubyte * |
pData, |
|
|
ubyte * |
pOutput |
|
) |
| |
- Parameters
-
pData | Data to process. |
pOutput | Buffer that will recieve the result. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_SHA1_GK()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_GK |
( |
ubyte * |
pData, |
|
|
ubyte * |
pOutput |
|
) |
| |
- Parameters
-
pData | Data to process. |
pOutput | Buffer that will recieve the result. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_SHA1_initDigest()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_initDigest |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) SHA1_CTX * |
pContext | ) |
|
- Parameters
-
pContext | The SHA1 context to initialize. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_SHA1_updateDigest()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_SHA1_updateDigest |
( |
MOC_HASH(hwAccelDescr hwAccelCtx) SHA1_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.