crypto: algapi - remove obsoleted instance creation helpers
authorEric Biggers <ebiggers@google.com>
Fri, 3 Jan 2020 03:59:06 +0000 (19:59 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jan 2020 03:30:57 +0000 (11:30 +0800)
commit629f1afc15ee8f34ec67bef0c33b9bccca7eeecc
tree5ff8d9f120fe5951bb862c48cc8c16e4440efb18
parentd5ed3b65f7012a6592809f7f928f3e3660df8fd9
crypto: algapi - remove obsoleted instance creation helpers

Remove lots of helper functions that were previously used for
instantiating crypto templates, but are now unused:

- crypto_get_attr_alg() and similar functions looked up an inner
  algorithm directly from a template parameter.  These were replaced
  with getting the algorithm's name, then calling crypto_grab_*().

- crypto_init_spawn2() and similar functions initialized a spawn, given
  an algorithm.  Similarly, these were replaced with crypto_grab_*().

- crypto_alloc_instance() and similar functions allocated an instance
  with a single spawn, given the inner algorithm.  These aren't useful
  anymore since crypto_grab_*() need the instance allocated first.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ahash.c
crypto/algapi.c
crypto/shash.c
include/crypto/algapi.h
include/crypto/internal/hash.h