> By using the unaligned access helpers, we drastically improve > performance on small MIPS routers that have to go through the > exception fix-up handler for these unaligned accesses.
I couldn't measure any slowdown here, so: Acked-by: Martin Willi <mar...@strongswan.org> > - dctx->s[0] = le32_to_cpuvp(key + 0); > + dctx->s[0] = get_unaligned_le32(key + 0); Not sure what the exact alignment rules for key/iv are, but maybe we want to replace the same function in chacha20_generic.c as well? Martin -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html