aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorRussell King <[email protected]>2015-10-09 20:43:48 +0100
committerHerbert Xu <[email protected]>2015-10-14 22:23:18 +0800
commitc3bf02a22c5369b25090d12c202ea0807d01978a (patch)
tree03f4ab7fd95fa76c1017c371da99692bf34e9f1e /lib/mpi/mpi-cmp.c
parente72f407ee793f1455051cfa834e758afca09e4f6 (diff)
crypto: marvell/cesa - fix wrong hash results
Attempting to use the sha1 digest for openssh via openssl reveals that the result from the hash is wrong: this happens when we export the state from one socket and import it into another via calling accept(). The reason for this is because the operation is reset to "initial block" state, whereas we may be past the first fragment of data to be hashed. Arrange for the operation code to avoid the initialisation of the state, thereby preserving the imported state. 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/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions