Use swap32() right.

Submitted by:	gcopper
MFC after:	2 weeks
This commit is contained in:
Xin LI 2011-06-12 23:33:08 +00:00
parent 057ead2f86
commit 357a26abb1

View File

@ -1580,9 +1580,12 @@ safe_callback(struct safe_softc *sc, struct safe_ringentry *re)
* SHA-1 ICV's are byte-swapped; fix 'em up
* before copy them to their destination.
*/
bswap32(re->re_sastate.sa_saved_indigest[0]);
bswap32(re->re_sastate.sa_saved_indigest[1]);
bswap32(re->re_sastate.sa_saved_indigest[2]);
re->re_sastate.sa_saved_indigest[0] =
bswap32(re->re_sastate.sa_saved_indigest[0]);
re->re_sastate.sa_saved_indigest[1] =
bswap32(re->re_sastate.sa_saved_indigest[1]);
re->re_sastate.sa_saved_indigest[2] =
bswap32(re->re_sastate.sa_saved_indigest[2]);
}
crypto_copyback(crp->crp_flags, crp->crp_buf,
crd->crd_inject,