Home
last modified time | relevance | path

Searched refs:shash_desc (Results 1 – 25 of 55) sorted by relevance

123

/linux-4.19.296/include/crypto/
Dhash.h147 struct shash_desc { struct
155 char __##shash##_desc[sizeof(struct shash_desc) + \ argument
157 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
177 int (*init)(struct shash_desc *desc);
178 int (*update)(struct shash_desc *desc, const u8 *data,
180 int (*final)(struct shash_desc *desc, u8 *out);
181 int (*finup)(struct shash_desc *desc, const u8 *data,
183 int (*digest)(struct shash_desc *desc, const u8 *data,
185 int (*export)(struct shash_desc *desc, void *out);
186 int (*import)(struct shash_desc *desc, const void *in);
[all …]
Dsha.h96 struct shash_desc;
98 extern int crypto_sha1_update(struct shash_desc *desc, const u8 *data,
101 extern int crypto_sha1_finup(struct shash_desc *desc, const u8 *data,
104 extern int crypto_sha256_update(struct shash_desc *desc, const u8 *data,
107 extern int crypto_sha256_finup(struct shash_desc *desc, const u8 *data,
110 extern int crypto_sha512_update(struct shash_desc *desc, const u8 *data,
113 extern int crypto_sha512_finup(struct shash_desc *desc, const u8 *data,
Dsha3.h29 int crypto_sha3_init(struct shash_desc *desc);
30 int crypto_sha3_update(struct shash_desc *desc, const u8 *data,
32 int crypto_sha3_final(struct shash_desc *desc, u8 *out);
Dpoly1305.h33 int crypto_poly1305_init(struct shash_desc *desc);
36 int crypto_poly1305_update(struct shash_desc *desc,
38 int crypto_poly1305_final(struct shash_desc *desc, u8 *dst);
Dsm3.h33 struct shash_desc;
35 extern int crypto_sm3_update(struct shash_desc *desc, const u8 *data,
38 extern int crypto_sm3_finup(struct shash_desc *desc, const u8 *data,
Dsha256_base.h21 static inline int sha224_base_init(struct shash_desc *desc) in sha224_base_init()
38 static inline int sha256_base_init(struct shash_desc *desc) in sha256_base_init()
55 static inline int sha256_base_do_update(struct shash_desc *desc, in sha256_base_do_update()
93 static inline int sha256_base_do_finalize(struct shash_desc *desc, in sha256_base_do_finalize()
116 static inline int sha256_base_finish(struct shash_desc *desc, u8 *out) in sha256_base_finish()
Dsha512_base.h21 static inline int sha384_base_init(struct shash_desc *desc) in sha384_base_init()
38 static inline int sha512_base_init(struct shash_desc *desc) in sha512_base_init()
55 static inline int sha512_base_do_update(struct shash_desc *desc, in sha512_base_do_update()
95 static inline int sha512_base_do_finalize(struct shash_desc *desc, in sha512_base_do_finalize()
119 static inline int sha512_base_finish(struct shash_desc *desc, u8 *out) in sha512_base_finish()
Dsm3_base.h28 static inline int sm3_base_init(struct shash_desc *desc) in sm3_base_init()
45 static inline int sm3_base_do_update(struct shash_desc *desc, in sm3_base_do_update()
83 static inline int sm3_base_do_finalize(struct shash_desc *desc, in sm3_base_do_finalize()
106 static inline int sm3_base_finish(struct shash_desc *desc, u8 *out) in sm3_base_finish()
Dsha1_base.h20 static inline int sha1_base_init(struct shash_desc *desc) in sha1_base_init()
34 static inline int sha1_base_do_update(struct shash_desc *desc, in sha1_base_do_update()
72 static inline int sha1_base_do_finalize(struct shash_desc *desc, in sha1_base_do_finalize()
95 static inline int sha1_base_finish(struct shash_desc *desc, u8 *out) in sha1_base_finish()
/linux-4.19.296/crypto/
Dhmac.c90 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export()
92 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export()
99 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import()
101 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import()
110 static int hmac_init(struct shash_desc *pdesc) in hmac_init()
115 static int hmac_update(struct shash_desc *pdesc, in hmac_update()
118 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update()
125 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final()
131 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_final()
140 static int hmac_finup(struct shash_desc *pdesc, const u8 *data, in hmac_finup()
[all …]
Dcrct10dif_generic.c42 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()
Dcrc32_generic.c71 static int crc32_init(struct shash_desc *desc) in crc32_init()
81 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update()
98 static int crc32_finup(struct shash_desc *desc, const u8 *data, in crc32_finup()
104 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final()
112 static int crc32_digest(struct shash_desc *desc, const u8 *data, in crc32_digest()
Dshash.c104 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, in shash_update_unaligned()
128 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update()
142 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned()
164 int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final()
177 static int shash_finup_unaligned(struct shash_desc *desc, const u8 *data, in shash_finup_unaligned()
184 int crypto_shash_finup(struct shash_desc *desc, const u8 *data, in crypto_shash_finup()
198 static int shash_digest_unaligned(struct shash_desc *desc, const u8 *data, in shash_digest_unaligned()
205 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, in crypto_shash_digest()
222 static int shash_default_export(struct shash_desc *desc, void *out) in shash_default_export()
228 static int shash_default_import(struct shash_desc *desc, const void *in) in shash_default_import()
[all …]
Dcrc32c_generic.c62 static int chksum_init(struct shash_desc *desc) in chksum_init()
90 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
99 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
113 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
121 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
Dsha1_generic.c48 int crypto_sha1_update(struct shash_desc *desc, const u8 *data, in crypto_sha1_update()
55 static int sha1_final(struct shash_desc *desc, u8 *out) in sha1_final()
61 int crypto_sha1_finup(struct shash_desc *desc, const u8 *data, in crypto_sha1_finup()
Dcrypto_null.c42 static int null_init(struct shash_desc *desc) in null_init()
47 static int null_update(struct shash_desc *desc, const u8 *data, in null_update()
53 static int null_final(struct shash_desc *desc, u8 *out) in null_final()
58 static int null_digest(struct shash_desc *desc, const u8 *data, in null_digest()
Dghash-generic.c24 static int ghash_init(struct shash_desc *desc) in ghash_init()
58 static int ghash_update(struct shash_desc *desc, in ghash_update()
111 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final()
Dmichael_mic.c50 static int michael_init(struct shash_desc *desc) in michael_init()
62 static int michael_update(struct shash_desc *desc, const u8 *data, in michael_update()
103 static int michael_final(struct shash_desc *desc, u8 *out) in michael_final()
Dtgr192.c498 static int tgr192_init(struct shash_desc *desc) in tgr192_init()
514 static int tgr192_update(struct shash_desc *desc, const u8 *inbuf, in tgr192_update()
555 static int tgr192_final(struct shash_desc *desc, u8 * out) in tgr192_final()
609 static int tgr160_final(struct shash_desc *desc, u8 * out) in tgr160_final()
620 static int tgr128_final(struct shash_desc *desc, u8 * out) in tgr128_final()
Dsm3_generic.c156 int crypto_sm3_update(struct shash_desc *desc, const u8 *data, in crypto_sm3_update()
163 static int sm3_final(struct shash_desc *desc, u8 *out) in sm3_final()
169 int crypto_sm3_finup(struct shash_desc *desc, const u8 *data, in crypto_sm3_finup()
Dmd5.c132 static int md5_init(struct shash_desc *desc) in md5_init()
145 static int md5_update(struct shash_desc *desc, const u8 *data, unsigned int len) in md5_update()
177 static int md5_final(struct shash_desc *desc, u8 *out) in md5_final()
205 static int md5_export(struct shash_desc *desc, void *out) in md5_export()
213 static int md5_import(struct shash_desc *desc, const void *in) in md5_import()
Dwp512.c989 static int wp512_init(struct shash_desc *desc) { in wp512_init()
1003 static int wp512_update(struct shash_desc *desc, const u8 *source, in wp512_update()
1065 static int wp512_final(struct shash_desc *desc, u8 *out) in wp512_final()
1100 static int wp384_final(struct shash_desc *desc, u8 *out) in wp384_final()
1111 static int wp256_final(struct shash_desc *desc, u8 *out) in wp256_final()
Dxcbc.c81 static int crypto_xcbc_digest_init(struct shash_desc *pdesc) in crypto_xcbc_digest_init()
94 static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_xcbc_digest_update()
141 static int crypto_xcbc_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_xcbc_digest_final()
Dsha512_generic.c165 int crypto_sha512_update(struct shash_desc *desc, const u8 *data, in crypto_sha512_update()
172 static int sha512_final(struct shash_desc *desc, u8 *hash) in sha512_final()
178 int crypto_sha512_finup(struct shash_desc *desc, const u8 *data, in crypto_sha512_finup()
/linux-4.19.296/include/crypto/internal/
Dhash.h119 int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc);
120 int shash_ahash_finup(struct ahash_request *req, struct shash_desc *desc);
121 int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc);

123