Home
last modified time | relevance | path

Searched refs:SHA256_BLOCKSZ (Results 1 – 2 of 2) sorted by relevance

/external/arm-trusted-firmware/drivers/amlogic/crypto/
Dsha_dma.c157 nr = MIN(len, SHA256_BLOCKSZ - ctx->blocksz); in asd_sha_update()
164 if (ctx->blocksz == SHA256_BLOCKSZ) { in asd_sha_update()
165 asd_compute_sha(ctx, ctx->block, SHA256_BLOCKSZ, 0); in asd_sha_update()
169 asd_compute_sha(ctx, data, len & ~(SHA256_BLOCKSZ - 1), 0); in asd_sha_update()
170 data += len & ~(SHA256_BLOCKSZ - 1); in asd_sha_update()
172 if (len & (SHA256_BLOCKSZ - 1)) { in asd_sha_update()
173 nr = len & (SHA256_BLOCKSZ - 1); in asd_sha_update()
/external/arm-trusted-firmware/include/drivers/amlogic/crypto/
Dsha_dma.h10 #define SHA256_BLOCKSZ 0x40 macro
20 uint8_t block[SHA256_BLOCKSZ];