Searched refs:padlen (Results 1 – 8 of 8) sorted by relevance
/arch/sparc/crypto/ |
D | sha1_glue.c | 81 unsigned int i, index, padlen; in sha1_sparc64_final() local 90 padlen = (index < 56) ? (56 - index) : ((SHA1_BLOCK_SIZE+56) - index); in sha1_sparc64_final() 93 if (padlen <= 56) { in sha1_sparc64_final() 94 sctx->count += padlen; in sha1_sparc64_final() 95 memcpy(sctx->buffer + index, padding, padlen); in sha1_sparc64_final() 97 __sha1_sparc64_update(sctx, padding, padlen, index); in sha1_sparc64_final()
|
D | sha512_glue.c | 102 unsigned int i, index, padlen; in sha512_sparc64_final() local 113 padlen = (index < 112) ? (112 - index) : ((SHA512_BLOCK_SIZE+112) - index); in sha512_sparc64_final() 116 if (padlen <= 112) { in sha512_sparc64_final() 117 if ((sctx->count[0] += padlen) < padlen) in sha512_sparc64_final() 119 memcpy(sctx->buf + index, padding, padlen); in sha512_sparc64_final() 121 __sha512_sparc64_update(sctx, padding, padlen, index); in sha512_sparc64_final()
|
D | md5_glue.c | 86 unsigned int i, index, padlen; in md5_sparc64_final() local 95 padlen = (index < 56) ? (56 - index) : ((MD5_HMAC_BLOCK_SIZE+56) - index); in md5_sparc64_final() 98 if (padlen <= 56) { in md5_sparc64_final() 99 sctx->byte_count += padlen; in md5_sparc64_final() 100 memcpy((u8 *)sctx->block + index, padding, padlen); in md5_sparc64_final() 102 __md5_sparc64_update(sctx, padding, padlen, index); in md5_sparc64_final()
|
D | sha256_glue.c | 101 unsigned int i, index, padlen; in sha256_sparc64_final() local 110 padlen = (index < 56) ? (56 - index) : ((SHA256_BLOCK_SIZE+56) - index); in sha256_sparc64_final() 113 if (padlen <= 56) { in sha256_sparc64_final() 114 sctx->count += padlen; in sha256_sparc64_final() 115 memcpy(sctx->buf + index, padding, padlen); in sha256_sparc64_final() 117 __sha256_sparc64_update(sctx, padding, padlen, index); in sha256_sparc64_final()
|
/arch/powerpc/crypto/ |
D | sha1-spe-glue.c | 121 int padlen; in ppc_spe_sha1_final() local 125 padlen = 55 - offset; in ppc_spe_sha1_final() 130 if (padlen < 0) { in ppc_spe_sha1_final() 131 memset(p, 0x00, padlen + sizeof (u64)); in ppc_spe_sha1_final() 134 padlen = 56; in ppc_spe_sha1_final() 137 memset(p, 0, padlen); in ppc_spe_sha1_final()
|
D | md5-glue.c | 81 int padlen = 55 - offset; in ppc_md5_final() local 87 if (padlen < 0) { in ppc_md5_final() 88 memset(p, 0x00, padlen + sizeof (u64)); in ppc_md5_final() 91 padlen = 56; in ppc_md5_final() 94 memset(p, 0, padlen); in ppc_md5_final()
|
D | sha256-spe-glue.c | 143 int padlen; in ppc_spe_sha256_final() local 147 padlen = 55 - offset; in ppc_spe_sha256_final() 152 if (padlen < 0) { in ppc_spe_sha256_final() 153 memset(p, 0x00, padlen + sizeof (u64)); in ppc_spe_sha256_final() 156 padlen = 56; in ppc_spe_sha256_final() 159 memset(p, 0, padlen); in ppc_spe_sha256_final()
|
D | sha1.c | 75 u32 i, index, padlen; in powerpc_sha1_final() local 83 padlen = (index < 56) ? (56 - index) : ((64+56) - index); in powerpc_sha1_final() 84 powerpc_sha1_update(desc, padding, padlen); in powerpc_sha1_final()
|