Lines Matching refs:desc
70 static int octeon_sha224_init(struct shash_desc *desc) in octeon_sha224_init() argument
72 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha224_init()
87 static int octeon_sha256_init(struct shash_desc *desc) in octeon_sha256_init() argument
89 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_init()
135 static int octeon_sha256_update(struct shash_desc *desc, const u8 *data, in octeon_sha256_update() argument
138 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_update()
148 return crypto_sha256_update(desc, data, len); in octeon_sha256_update()
161 static int octeon_sha256_final(struct shash_desc *desc, u8 *out) in octeon_sha256_final() argument
163 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_final()
201 static int octeon_sha224_final(struct shash_desc *desc, u8 *hash) in octeon_sha224_final() argument
205 octeon_sha256_final(desc, D); in octeon_sha224_final()
213 static int octeon_sha256_export(struct shash_desc *desc, void *out) in octeon_sha256_export() argument
215 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_export()
221 static int octeon_sha256_import(struct shash_desc *desc, const void *in) in octeon_sha256_import() argument
223 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_import()