/* this struct was taken from drivers/crypto/nx/nx-aes-xcbc.c and it is used * for xcbc/cmac statesize
*/ struct aeshash_state {
u8 state[AES_BLOCK_SIZE]; unsignedint count;
u8 buffer[AES_BLOCK_SIZE];
};
int cc_hash_alloc(struct cc_drvdata *drvdata); int cc_init_hash_sram(struct cc_drvdata *drvdata); int cc_hash_free(struct cc_drvdata *drvdata);
/** * cc_digest_len_addr() - Gets the initial digest length * * @drvdata: Associated device driver context * @mode: The Hash mode. Supported modes: MD5/SHA1/SHA224/SHA256/SHA384/SHA512 * * Return: * Returns the address of the initial digest length in SRAM
*/
u32 cc_digest_len_addr(void *drvdata, u32 mode);
/** * cc_larval_digest_addr() - Gets the address of the initial digest in SRAM * according to the given hash mode * * @drvdata: Associated device driver context * @mode: The Hash mode. Supported modes: MD5/SHA1/SHA224/SHA256/SHA384/SHA512 * * Return: * The address of the initial digest in SRAM
*/
u32 cc_larval_digest_addr(void *drvdata, u32 mode);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.