linux/drivers/crypto/qce/sha.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
 */

#ifndef _SHA_H_
#define _SHA_H_

#include <crypto/scatterwalk.h>
#include <crypto/sha1.h>
#include <crypto/sha2.h>

#include "common.h"
#include "core.h"

#define QCE_SHA_MAX_BLOCKSIZE
#define QCE_SHA_MAX_DIGESTSIZE

struct qce_sha_ctx {};

/**
 * struct qce_sha_reqctx - holds private ahash objects per request
 * @buf: used during update, import and export
 * @tmpbuf: buffer for internal use
 * @digest: calculated digest buffer
 * @buflen: length of the buffer
 * @flags: operation flags
 * @src_orig: original request sg list
 * @nbytes_orig: original request number of bytes
 * @src_nents: source number of entries
 * @byte_count: byte count
 * @count: save count in states during update, import and export
 * @first_blk: is it the first block
 * @last_blk: is it the last block
 * @sg: used to chain sg lists
 * @authkey: pointer to auth key in sha ctx
 * @authklen: auth key length
 * @result_sg: scatterlist used for result buffer
 */
struct qce_sha_reqctx {};

static inline struct qce_alg_template *to_ahash_tmpl(struct crypto_tfm *tfm)
{}

extern const struct qce_algo_ops ahash_ops;

#endif /* _SHA_H_ */