/linux/include/crypto/ |
A D | hash.h | 150 struct shash_desc { struct 161 #define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360) 167 __aligned(__alignof__(struct shash_desc)); \ 168 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc 199 int (*init)(struct shash_desc *desc); 200 int (*update)(struct shash_desc *desc, const u8 *data, 202 int (*final)(struct shash_desc *desc, u8 *out); 203 int (*finup)(struct shash_desc *desc, const u8 *data, 205 int (*digest)(struct shash_desc *desc, const u8 *data, 207 int (*export)(struct shash_desc *desc, void *out); [all …]
|
A D | nhpoly1305.h | 64 int crypto_nhpoly1305_init(struct shash_desc *desc); 65 int crypto_nhpoly1305_update(struct shash_desc *desc, 67 int crypto_nhpoly1305_update_helper(struct shash_desc *desc, 70 int crypto_nhpoly1305_final(struct shash_desc *desc, u8 *dst); 71 int crypto_nhpoly1305_final_helper(struct shash_desc *desc, u8 *dst,
|
A D | sm3.h | 33 struct shash_desc; 35 extern int crypto_sm3_update(struct shash_desc *desc, const u8 *data, 38 extern int crypto_sm3_final(struct shash_desc *desc, u8 *out); 40 extern int crypto_sm3_finup(struct shash_desc *desc, const u8 *data,
|
A D | sha256_base.h | 22 static inline int sha224_base_init(struct shash_desc *desc) in sha224_base_init() 30 static inline int sha256_base_init(struct shash_desc *desc) in sha256_base_init() 38 static inline int sha256_base_do_update(struct shash_desc *desc, in sha256_base_do_update() 76 static inline int sha256_base_do_finalize(struct shash_desc *desc, in sha256_base_do_finalize() 99 static inline int sha256_base_finish(struct shash_desc *desc, u8 *out) in sha256_base_finish()
|
A D | sha2.h | 79 struct shash_desc; 81 extern int crypto_sha256_update(struct shash_desc *desc, const u8 *data, 84 extern int crypto_sha256_finup(struct shash_desc *desc, const u8 *data, 87 extern int crypto_sha512_update(struct shash_desc *desc, const u8 *data, 90 extern int crypto_sha512_finup(struct shash_desc *desc, const u8 *data,
|
/linux/arch/x86/crypto/ |
A D | sha1_ssse3_glue.c | 29 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update() 51 static int sha1_finup(struct shash_desc *desc, const u8 *data, in sha1_finup() 69 static int sha1_ssse3_update(struct shash_desc *desc, const u8 *data, in sha1_ssse3_update() 75 static int sha1_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha1_ssse3_finup() 82 static int sha1_ssse3_final(struct shash_desc *desc, u8 *out) in sha1_ssse3_final() 119 static int sha1_avx_update(struct shash_desc *desc, const u8 *data, in sha1_avx_update() 125 static int sha1_avx_finup(struct shash_desc *desc, const u8 *data, in sha1_avx_finup() 131 static int sha1_avx_final(struct shash_desc *desc, u8 *out) in sha1_avx_final() 213 static int sha1_avx2_final(struct shash_desc *desc, u8 *out) in sha1_avx2_final() 257 static int sha1_ni_finup(struct shash_desc *desc, const u8 *data, in sha1_ni_finup() [all …]
|
A D | sha256_ssse3_glue.c | 46 static int _sha256_update(struct shash_desc *desc, const u8 *data, in _sha256_update() 68 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup() 89 static int sha256_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha256_ssse3_finup() 96 static int sha256_ssse3_final(struct shash_desc *desc, u8 *out) in sha256_ssse3_final() 149 static int sha256_avx_update(struct shash_desc *desc, const u8 *data, in sha256_avx_update() 155 static int sha256_avx_finup(struct shash_desc *desc, const u8 *data, in sha256_avx_finup() 161 static int sha256_avx_final(struct shash_desc *desc, u8 *out) in sha256_avx_final() 237 static int sha256_avx2_final(struct shash_desc *desc, u8 *out) in sha256_avx2_final() 300 static int sha256_ni_update(struct shash_desc *desc, const u8 *data, in sha256_ni_update() 306 static int sha256_ni_finup(struct shash_desc *desc, const u8 *data, in sha256_ni_finup() [all …]
|
A D | sha512_ssse3_glue.c | 44 static int sha512_update(struct shash_desc *desc, const u8 *data, in sha512_update() 66 static int sha512_finup(struct shash_desc *desc, const u8 *data, in sha512_finup() 81 static int sha512_ssse3_update(struct shash_desc *desc, const u8 *data, in sha512_ssse3_update() 87 static int sha512_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha512_ssse3_finup() 94 static int sha512_ssse3_final(struct shash_desc *desc, u8 *out) in sha512_ssse3_final() 157 static int sha512_avx_update(struct shash_desc *desc, const u8 *data, in sha512_avx_update() 163 static int sha512_avx_finup(struct shash_desc *desc, const u8 *data, in sha512_avx_finup() 170 static int sha512_avx_final(struct shash_desc *desc, u8 *out) in sha512_avx_final() 223 static int sha512_avx2_update(struct shash_desc *desc, const u8 *data, in sha512_avx2_update() 229 static int sha512_avx2_finup(struct shash_desc *desc, const u8 *data, in sha512_avx2_finup() [all …]
|
A D | crc32c-intel_glue.c | 94 static int crc32c_intel_init(struct shash_desc *desc) in crc32c_intel_init() 104 static int crc32c_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_intel_update() 120 static int crc32c_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_intel_finup() 126 static int crc32c_intel_final(struct shash_desc *desc, u8 *out) in crc32c_intel_final() 134 static int crc32c_intel_digest(struct shash_desc *desc, const u8 *data, in crc32c_intel_digest() 151 static int crc32c_pcl_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_update() 182 static int crc32c_pcl_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_finup() 188 static int crc32c_pcl_intel_digest(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_digest()
|
A D | crct10dif-pclmul_glue.c | 43 static int chksum_init(struct shash_desc *desc) in chksum_init() 52 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() 66 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() 85 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup() 93 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
|
A D | ghash-clmulni-intel_glue.c | 44 static int ghash_init(struct shash_desc *desc) in ghash_init() 76 static int ghash_update(struct shash_desc *desc, in ghash_update() 130 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final() 166 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_init() 186 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_update() 204 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_final() 212 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_import() 224 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_export() 245 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_digest()
|
/linux/crypto/ |
A D | hmac.c | 83 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export() 85 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export() 92 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import() 100 static int hmac_init(struct shash_desc *pdesc) in hmac_init() 105 static int hmac_update(struct shash_desc *pdesc, in hmac_update() 108 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update() 113 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final() 119 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_final() 126 static int hmac_finup(struct shash_desc *pdesc, const u8 *data, in hmac_finup() 134 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_finup() [all …]
|
A D | shash.c | 91 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, in shash_update_unaligned() 121 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update() 135 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned() 163 int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final() 183 int crypto_shash_finup(struct shash_desc *desc, const u8 *data, in crypto_shash_finup() 204 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, in crypto_shash_digest() 237 static int shash_default_export(struct shash_desc *desc, void *out) in shash_default_export() 260 struct shash_desc *desc = ahash_request_ctx(req); in shash_async_init() 314 struct shash_desc *desc = ahash_request_ctx(req); in shash_async_finup() 348 struct shash_desc *desc = ahash_request_ctx(req); in shash_async_digest() [all …]
|
A D | crct10dif_generic.c | 42 static int chksum_init(struct shash_desc *desc) in chksum_init() 51 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() 60 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() 74 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup() 82 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
|
A D | sha256_generic.c | 36 static int crypto_sha256_init(struct shash_desc *desc) in crypto_sha256_init() 42 static int crypto_sha224_init(struct shash_desc *desc) in crypto_sha224_init() 48 int crypto_sha256_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_update() 56 static int crypto_sha256_final(struct shash_desc *desc, u8 *out) in crypto_sha256_final() 65 int crypto_sha256_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_finup()
|
A D | crc32_generic.c | 47 static int crc32_init(struct shash_desc *desc) in crc32_init() 57 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update() 74 static int crc32_finup(struct shash_desc *desc, const u8 *data, in crc32_finup() 80 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final() 88 static int crc32_digest(struct shash_desc *desc, const u8 *data, in crc32_digest()
|
A D | crc32c_generic.c | 57 static int chksum_init(struct shash_desc *desc) in chksum_init() 83 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() 92 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() 106 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup() 114 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
|
/linux/drivers/crypto/ |
A D | padlock-sha.c | 25 struct shash_desc fallback; 32 static int padlock_sha_init(struct shash_desc *desc) in padlock_sha_init() 41 static int padlock_sha_update(struct shash_desc *desc, in padlock_sha_update() 49 static int padlock_sha_export(struct shash_desc *desc, void *out) in padlock_sha_export() 126 static int padlock_sha1_final(struct shash_desc *desc, u8 *out) in padlock_sha1_final() 187 static int padlock_sha256_final(struct shash_desc *desc, u8 *out) in padlock_sha256_final() 269 static int padlock_sha1_init_nano(struct shash_desc *desc) in padlock_sha1_init_nano() 280 static int padlock_sha1_update_nano(struct shash_desc *desc, in padlock_sha1_update_nano() 352 static int padlock_sha256_init_nano(struct shash_desc *desc) in padlock_sha256_init_nano() 437 static int padlock_sha_export_nano(struct shash_desc *desc, in padlock_sha_export_nano() [all …]
|
/linux/arch/mips/crypto/ |
A D | crc32-mips.c | 160 static int chksum_init(struct shash_desc *desc) 186 static int chksum_update(struct shash_desc *desc, const u8 *data, 195 static int chksumc_update(struct shash_desc *desc, const u8 *data, 204 static int chksum_final(struct shash_desc *desc, u8 *out) 212 static int chksumc_final(struct shash_desc *desc, u8 *out) 232 static int chksum_finup(struct shash_desc *desc, const u8 *data, 240 static int chksumc_finup(struct shash_desc *desc, const u8 *data, 248 static int chksum_digest(struct shash_desc *desc, const u8 *data, 256 static int chksumc_digest(struct shash_desc *desc, const u8 *data,
|
/linux/arch/sparc/crypto/ |
A D | sha256_glue.c | 29 static int sha224_sparc64_init(struct shash_desc *desc) in sha224_sparc64_init() 45 static int sha256_sparc64_init(struct shash_desc *desc) in sha256_sparc64_init() 82 static int sha256_sparc64_update(struct shash_desc *desc, const u8 *data, in sha256_sparc64_update() 98 static int sha256_sparc64_final(struct shash_desc *desc, u8 *out) in sha256_sparc64_final() 131 static int sha224_sparc64_final(struct shash_desc *desc, u8 *hash) in sha224_sparc64_final() 143 static int sha256_sparc64_export(struct shash_desc *desc, void *out) in sha256_sparc64_export() 151 static int sha256_sparc64_import(struct shash_desc *desc, const void *in) in sha256_sparc64_import()
|
/linux/arch/powerpc/crypto/ |
A D | sha1.c | 25 static int powerpc_sha1_init(struct shash_desc *desc) in powerpc_sha1_init() 36 static int powerpc_sha1_update(struct shash_desc *desc, const u8 *data, in powerpc_sha1_update() 71 static int powerpc_sha1_final(struct shash_desc *desc, u8 *out) in powerpc_sha1_final() 99 static int powerpc_sha1_export(struct shash_desc *desc, void *out) in powerpc_sha1_export() 107 static int powerpc_sha1_import(struct shash_desc *desc, const void *in) in powerpc_sha1_import()
|
A D | sha256-spe-glue.c | 59 static int ppc_spe_sha256_init(struct shash_desc *desc) in ppc_spe_sha256_init() 76 static int ppc_spe_sha224_init(struct shash_desc *desc) in ppc_spe_sha224_init() 93 static int ppc_spe_sha256_update(struct shash_desc *desc, const u8 *data, in ppc_spe_sha256_update() 138 static int ppc_spe_sha256_final(struct shash_desc *desc, u8 *out) in ppc_spe_sha256_final() 178 static int ppc_spe_sha224_final(struct shash_desc *desc, u8 *out) in ppc_spe_sha224_final() 199 static int ppc_spe_sha256_export(struct shash_desc *desc, void *out) in ppc_spe_sha256_export() 207 static int ppc_spe_sha256_import(struct shash_desc *desc, const void *in) in ppc_spe_sha256_import()
|
/linux/arch/arm64/crypto/ |
A D | sha256-glue.c | 44 static int crypto_sha256_arm64_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_arm64_update() 51 static int crypto_sha256_arm64_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_arm64_finup() 62 static int crypto_sha256_arm64_final(struct shash_desc *desc, u8 *out) in crypto_sha256_arm64_final() 93 static int sha256_update_neon(struct shash_desc *desc, const u8 *data, in sha256_update_neon() 124 static int sha256_finup_neon(struct shash_desc *desc, const u8 *data, in sha256_finup_neon() 142 static int sha256_final_neon(struct shash_desc *desc, u8 *out) in sha256_final_neon()
|
/linux/arch/arm/crypto/ |
A D | crc32-ce-glue.c | 63 static int crc32_init(struct shash_desc *desc) in crc32_init() 72 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update() 81 static int crc32c_update(struct shash_desc *desc, const u8 *data, in crc32c_update() 90 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final() 98 static int crc32c_final(struct shash_desc *desc, u8 *out) in crc32c_final() 106 static int crc32_pmull_update(struct shash_desc *desc, const u8 *data, in crc32_pmull_update() 140 static int crc32c_pmull_update(struct shash_desc *desc, const u8 *data, in crc32c_pmull_update()
|
/linux/arch/mips/cavium-octeon/crypto/ |
A D | octeon-sha256.c | 66 static int octeon_sha224_init(struct shash_desc *desc) in octeon_sha224_init() 83 static int octeon_sha256_init(struct shash_desc *desc) in octeon_sha256_init() 131 static int octeon_sha256_update(struct shash_desc *desc, const u8 *data, in octeon_sha256_update() 157 static int octeon_sha256_final(struct shash_desc *desc, u8 *out) in octeon_sha256_final() 197 static int octeon_sha224_final(struct shash_desc *desc, u8 *hash) in octeon_sha224_final() 209 static int octeon_sha256_export(struct shash_desc *desc, void *out) in octeon_sha256_export() 217 static int octeon_sha256_import(struct shash_desc *desc, const void *in) in octeon_sha256_import()
|