diff --git a/sys/crypto/via/padlock.h b/sys/crypto/via/padlock.h index 97bb8b035bbf..9b326dd656ed 100644 --- a/sys/crypto/via/padlock.h +++ b/sys/crypto/via/padlock.h @@ -72,7 +72,7 @@ struct padlock_session { TAILQ_ENTRY(padlock_session) ses_next; }; -#define PADLOCK_ALIGN(p) (void *)((char *)(p) - ((uintptr_t)(p) % 16) + 16) +#define PADLOCK_ALIGN(p) (void *)((uintptr_t)(p) - (((uintptr_t)(p) - 1) % 16) + 15) int padlock_cipher_setup(struct padlock_session *ses, struct cryptoini *encini);