diff options
| author | Russell King <[email protected]> | 2015-10-09 20:14:22 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2015-10-14 14:23:18 +0000 |
| commit | a6479ea487ca8ce11289e88a55a7e348f1ee39ac (patch) | |
| tree | 6a02318c8da23e67e7f9de2ab7fff0bef6db0f34 /lib/mpi/mpicoder.c | |
| parent | crypto: marvell/cesa - fix wrong hash results (diff) | |
| download | kernel-a6479ea487ca8ce11289e88a55a7e348f1ee39ac.tar.gz kernel-a6479ea487ca8ce11289e88a55a7e348f1ee39ac.zip | |
crypto: marvell/cesa - factor out common import/export functions
As all the import functions and export functions are virtually
identical, factor out their common parts into a generic
mv_cesa_ahash_import() and mv_cesa_ahash_export() respectively. This
performs the actual import or export, and we pass the data pointers and
length into these functions.
We have to switch a % const operation to do_div() in the common import
function to avoid provoking gcc to use the expensive 64-bit by 64-bit
modulus operation.
Signed-off-by: Russell King <[email protected]>
Acked-by: Boris Brezillon <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
