summaryrefslogtreecommitdiff
path: root/crypto/cbc.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-01-03 20:16:14 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-01-11 14:16:57 +0800
commit3bbd2661c5fa072be485ba56946cff38dec76079 (patch)
treeeba47df4d9d3ca9ed21aa1499d6ae8907f998123 /crypto/cbc.c
parent0e662582cd48f44555eb97e361616f3399ce12db (diff)
downloadlinux-crypto-3bbd2661c5fa072be485ba56946cff38dec76079.tar.gz
linux-crypto-3bbd2661c5fa072be485ba56946cff38dec76079.zip
crypto: skcipher - add helper for simple block cipher modes
The majority of skcipher templates (including both the existing ones and the ones remaining to be converted from the "blkcipher" API) just wrap a single block cipher algorithm. This includes cbc, cfb, ctr, ecb, kw, ofb, and pcbc. Add a helper function skcipher_alloc_instance_simple() that handles allocating an skcipher instance for this common case. Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/cbc.c')
0 files changed, 0 insertions, 0 deletions