]> git.baikalelectronics.ru Git - kernel.git/commit
MPILIB: add mpi_read_buf() and mpi_get_size() helpers
authorTadeusz Struk <tadeusz.struk@intel.com>
Mon, 15 Jun 2015 20:18:36 +0000 (13:18 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Jun 2015 06:35:06 +0000 (14:35 +0800)
commit1edd9588d9341e668b9cde9b1d54d2be12ef3986
tree6f26c2f3a80bbf2e04c3be67edb22631d705de95
parentcead96a2a68fa7437a0cf06212212a6a07495123
MPILIB: add mpi_read_buf() and mpi_get_size() helpers

Added a mpi_read_buf() helper function to export MPI to a buf provided by
the user, and a mpi_get_size() helper, that tells the user how big the buf is.
Changed mpi_free to use kzfree instead of kfree because it is used to free
crypto keys.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/linux/mpi.h
lib/mpi/mpicoder.c
lib/mpi/mpiutil.c