From 5df49004ee8e0d314d46bd9d555bcb3b422f8e17 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sat, 10 Apr 1999 21:02:28 +0000 Subject: [PATCH] fixes for crays git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5917 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/destest.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/lib/des/destest.c b/lib/des/destest.c index 3537a291e..e0d3ec7b4 100644 --- a/lib/des/destest.c +++ b/lib/des/destest.c @@ -317,7 +317,14 @@ char *argv[]; unsigned char cbc_out[40]; DES_LONG cs; unsigned char cret[8]; +#ifdef _CRAY + struct { + int a:32; + int b:32; + } lqret[2]; +#else DES_LONG lqret[4]; +#endif int num; char *str; @@ -648,6 +655,32 @@ char *argv[]; (unsigned long)cs); err=1; } +#ifdef _CRAY + if (lqret[0].a != 0x327eba8dL) + { + printf("quad_cksum error, out[0] %08lx is not %08lx\n", + (unsigned long)lqret[0].a,0x327eba8dL); + err=1; + } + if (lqret[0].b != 0x201a49ccL) + { + printf("quad_cksum error, out[1] %08lx is not %08lx\n", + (unsigned long)lqret[0].b,0x201a49ccL); + err=1; + } + if (lqret[1].a != 0x70d7a63aL) + { + printf("quad_cksum error, out[2] %08lx is not %08lx\n", + (unsigned long)lqret[1].a,0x70d7a63aL); + err=1; + } + if (lqret[1].b != 0x501c2c26L) + { + printf("quad_cksum error, out[3] %08lx is not %08lx\n", + (unsigned long)lqret[1].b,0x501c2c26L); + err=1; + } +#else if (lqret[0] != 0x327eba8dL) { printf("quad_cksum error, out[0] %08lx is not %08lx\n", @@ -672,6 +705,7 @@ char *argv[]; (unsigned long)lqret[3],0x501c2c26L); err=1; } +#endif #endif printf("input word alignment test");