Searched refs:srclen (Results 1 – 8 of 8) sorted by relevance
/arch/x86/crypto/ |
D | poly1305_glue.c | 64 const u8 *src, unsigned int srclen) in poly1305_simd_blocks() argument 73 datalen = crypto_poly1305_setdesckey(dctx, src, srclen); in poly1305_simd_blocks() 74 src += srclen - datalen; in poly1305_simd_blocks() 75 srclen = datalen; in poly1305_simd_blocks() 79 if (poly1305_use_avx2 && srclen >= POLY1305_BLOCK_SIZE * 4) { in poly1305_simd_blocks() 92 blocks = srclen / (POLY1305_BLOCK_SIZE * 4); in poly1305_simd_blocks() 96 srclen -= POLY1305_BLOCK_SIZE * 4 * blocks; in poly1305_simd_blocks() 99 if (likely(srclen >= POLY1305_BLOCK_SIZE * 2)) { in poly1305_simd_blocks() 105 blocks = srclen / (POLY1305_BLOCK_SIZE * 2); in poly1305_simd_blocks() 109 srclen -= POLY1305_BLOCK_SIZE * 2 * blocks; in poly1305_simd_blocks() [all …]
|
D | nhpoly1305-avx2-glue.c | 26 const u8 *src, unsigned int srclen) in nhpoly1305_avx2_update() argument 28 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_avx2_update() 29 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_avx2_update() 32 unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE); in nhpoly1305_avx2_update() 38 srclen -= n; in nhpoly1305_avx2_update() 39 } while (srclen); in nhpoly1305_avx2_update()
|
D | nhpoly1305-sse2-glue.c | 26 const u8 *src, unsigned int srclen) in nhpoly1305_sse2_update() argument 28 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_sse2_update() 29 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_sse2_update() 32 unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE); in nhpoly1305_sse2_update() 38 srclen -= n; in nhpoly1305_sse2_update() 39 } while (srclen); in nhpoly1305_sse2_update()
|
D | ghash-clmulni-intel_glue.c | 28 void clmul_ghash_update(char *dst, const char *src, unsigned int srclen, 79 const u8 *src, unsigned int srclen) in ghash_update() argument 87 int n = min(srclen, dctx->bytes); in ghash_update() 91 srclen -= n; in ghash_update() 100 clmul_ghash_update(dst, src, srclen, &ctx->shash); in ghash_update() 103 if (srclen & 0xf) { in ghash_update() 104 src += srclen - (srclen & 0xf); in ghash_update() 105 srclen &= 0xf; in ghash_update() 106 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update() 107 while (srclen--) in ghash_update()
|
D | aesni-intel_glue.c | 713 unsigned long len, srclen, dstlen; in gcmaes_crypt_by_sg() local 769 srclen = scatterwalk_clamp(&src_sg_walk, left); in gcmaes_crypt_by_sg() 771 len = min(srclen, dstlen); in gcmaes_crypt_by_sg()
|
/arch/arm/crypto/ |
D | nhpoly1305-neon-glue.c | 27 const u8 *src, unsigned int srclen) in nhpoly1305_neon_update() argument 29 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_neon_update() 30 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_neon_update() 33 unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE); in nhpoly1305_neon_update() 39 srclen -= n; in nhpoly1305_neon_update() 40 } while (srclen); in nhpoly1305_neon_update()
|
/arch/arm64/crypto/ |
D | nhpoly1305-neon-glue.c | 27 const u8 *src, unsigned int srclen) in nhpoly1305_neon_update() argument 29 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_neon_update() 30 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_neon_update() 33 unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE); in nhpoly1305_neon_update() 39 srclen -= n; in nhpoly1305_neon_update() 40 } while (srclen); in nhpoly1305_neon_update()
|
/arch/s390/crypto/ |
D | ghash_s390.c | 57 const u8 *src, unsigned int srclen) in ghash_update() argument 66 n = min(srclen, dctx->bytes); in ghash_update() 68 srclen -= n; in ghash_update() 79 n = srclen & ~(GHASH_BLOCK_SIZE - 1); in ghash_update() 83 srclen -= n; in ghash_update() 86 if (srclen) { in ghash_update() 87 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update() 88 memcpy(buf, src, srclen); in ghash_update()
|