gcm128.c: add boundary condition checks.