Home
last modified time | relevance | path

Searched refs:sctx (Results 1 – 9 of 9) sorted by relevance

/linux-4.19.296/include/crypto/
Dsha512_base.h23 struct sha512_state *sctx = shash_desc_ctx(desc); in sha384_base_init() local
25 sctx->state[0] = SHA384_H0; in sha384_base_init()
26 sctx->state[1] = SHA384_H1; in sha384_base_init()
27 sctx->state[2] = SHA384_H2; in sha384_base_init()
28 sctx->state[3] = SHA384_H3; in sha384_base_init()
29 sctx->state[4] = SHA384_H4; in sha384_base_init()
30 sctx->state[5] = SHA384_H5; in sha384_base_init()
31 sctx->state[6] = SHA384_H6; in sha384_base_init()
32 sctx->state[7] = SHA384_H7; in sha384_base_init()
33 sctx->count[0] = sctx->count[1] = 0; in sha384_base_init()
[all …]
Dsha256_base.h23 struct sha256_state *sctx = shash_desc_ctx(desc); in sha224_base_init() local
25 sctx->state[0] = SHA224_H0; in sha224_base_init()
26 sctx->state[1] = SHA224_H1; in sha224_base_init()
27 sctx->state[2] = SHA224_H2; in sha224_base_init()
28 sctx->state[3] = SHA224_H3; in sha224_base_init()
29 sctx->state[4] = SHA224_H4; in sha224_base_init()
30 sctx->state[5] = SHA224_H5; in sha224_base_init()
31 sctx->state[6] = SHA224_H6; in sha224_base_init()
32 sctx->state[7] = SHA224_H7; in sha224_base_init()
33 sctx->count = 0; in sha224_base_init()
[all …]
Dsm3_base.h30 struct sm3_state *sctx = shash_desc_ctx(desc); in sm3_base_init() local
32 sctx->state[0] = SM3_IVA; in sm3_base_init()
33 sctx->state[1] = SM3_IVB; in sm3_base_init()
34 sctx->state[2] = SM3_IVC; in sm3_base_init()
35 sctx->state[3] = SM3_IVD; in sm3_base_init()
36 sctx->state[4] = SM3_IVE; in sm3_base_init()
37 sctx->state[5] = SM3_IVF; in sm3_base_init()
38 sctx->state[6] = SM3_IVG; in sm3_base_init()
39 sctx->state[7] = SM3_IVH; in sm3_base_init()
40 sctx->count = 0; in sm3_base_init()
[all …]
Dsha1_base.h22 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_base_init() local
24 sctx->state[0] = SHA1_H0; in sha1_base_init()
25 sctx->state[1] = SHA1_H1; in sha1_base_init()
26 sctx->state[2] = SHA1_H2; in sha1_base_init()
27 sctx->state[3] = SHA1_H3; in sha1_base_init()
28 sctx->state[4] = SHA1_H4; in sha1_base_init()
29 sctx->count = 0; in sha1_base_init()
39 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_base_do_update() local
40 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_base_do_update()
42 sctx->count += len; in sha1_base_do_update()
[all …]
/linux-4.19.296/fs/btrfs/
Dsend.c274 static void inconsistent_snapshot_error(struct send_ctx *sctx, in inconsistent_snapshot_error() argument
299 btrfs_err(sctx->send_root->fs_info, in inconsistent_snapshot_error()
301 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error()
302 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
303 (sctx->parent_root ? in inconsistent_snapshot_error()
304 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
307 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino);
310 get_waiting_dir_move(struct send_ctx *sctx, u64 ino);
312 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen);
314 static int need_send_hole(struct send_ctx *sctx) in need_send_hole() argument
[all …]
Dscrub.c83 struct scrub_ctx *sctx; member
104 struct scrub_ctx *sctx; member
121 struct scrub_ctx *sctx; member
207 static void scrub_pending_bio_inc(struct scrub_ctx *sctx);
208 static void scrub_pending_bio_dec(struct scrub_ctx *sctx);
233 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx,
235 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len,
247 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx,
249 static void scrub_wr_submit(struct scrub_ctx *sctx);
254 static void scrub_put_ctx(struct scrub_ctx *sctx);
[all …]
/linux-4.19.296/crypto/
Dsha3_generic.c168 struct sha3_state *sctx = shash_desc_ctx(desc); in crypto_sha3_init() local
171 sctx->rsiz = 200 - 2 * digest_size; in crypto_sha3_init()
172 sctx->rsizw = sctx->rsiz / 8; in crypto_sha3_init()
173 sctx->partial = 0; in crypto_sha3_init()
175 memset(sctx->st, 0, sizeof(sctx->st)); in crypto_sha3_init()
183 struct sha3_state *sctx = shash_desc_ctx(desc); in crypto_sha3_update() local
190 if ((sctx->partial + len) > (sctx->rsiz - 1)) { in crypto_sha3_update()
191 if (sctx->partial) { in crypto_sha3_update()
192 done = -sctx->partial; in crypto_sha3_update()
193 memcpy(sctx->buf + sctx->partial, data, in crypto_sha3_update()
[all …]
/linux-4.19.296/include/linux/
Dsha256.h25 extern int sha256_init(struct sha256_state *sctx);
26 extern int sha256_update(struct sha256_state *sctx, const u8 *input,
28 extern int sha256_final(struct sha256_state *sctx, u8 *hash);
/linux-4.19.296/lib/
Dsha256.c211 int sha256_init(struct sha256_state *sctx) in sha256_init() argument
213 sctx->state[0] = SHA256_H0; in sha256_init()
214 sctx->state[1] = SHA256_H1; in sha256_init()
215 sctx->state[2] = SHA256_H2; in sha256_init()
216 sctx->state[3] = SHA256_H3; in sha256_init()
217 sctx->state[4] = SHA256_H4; in sha256_init()
218 sctx->state[5] = SHA256_H5; in sha256_init()
219 sctx->state[6] = SHA256_H6; in sha256_init()
220 sctx->state[7] = SHA256_H7; in sha256_init()
221 sctx->count = 0; in sha256_init()
[all …]