Use a 64-bit constant for SK_IV_REV_START so that it doesn't
overflow on 32-bit systems.
Test-Parameters: trivial testlist=sanity-sec
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ie790f7ea438847b18e7b83689e3816ceffe2ddd7
Reviewed-on: http://review.whamcloud.com/23089
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
* use the the negative range of a 64-bit number and regular contexts use the
* postive range. If the same IV/nonce combination were reused it would leak
* information about the plaintext. */
-#define SK_IV_REV_START (1UL << 63)
+#define SK_IV_REV_START (1ULL << 63)
struct sk_ctx {
__u16 sc_hmac;