Skip to content

Commit fc00127

Browse files
committed
crypto: ahash - Add crypto_ahash_set_reqsize
This patch adds the helper crypto_ahash_set_reqsize so that implementations do not directly access the crypto_ahash structure. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 46309d8 commit fc00127

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎include/crypto/internal/hash.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ static inline struct ahash_alg *crypto_ahash_alg(
7777
return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash;
7878
}
7979

80+
static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm,
81+
unsigned int reqsize)
82+
{
83+
crypto_ahash_crt(tfm)->reqsize = reqsize;
84+
}
85+
8086
static inline int ahash_enqueue_request(struct crypto_queue *queue,
8187
struct ahash_request *request)
8288
{

0 commit comments

Comments
 (0)