Mercurial > dropbear
comparison omac_init.c @ 143:5d99163f7e32 libtomcrypt-orig
import of libtomcrypt 0.99
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 19 Dec 2004 11:34:45 +0000 |
parents | 7faae8f46238 |
children |
comparison
equal
deleted
inserted
replaced
15:6362d3854bb4 | 143:5d99163f7e32 |
---|---|
57 } | 57 } |
58 omac->Lu[x][len - 1] = ((omac->Lu[x][len - 1] << 1) ^ (msb ? mask : 0)) & 255; | 58 omac->Lu[x][len - 1] = ((omac->Lu[x][len - 1] << 1) ^ (msb ? mask : 0)) & 255; |
59 | 59 |
60 /* copy up as require */ | 60 /* copy up as require */ |
61 if (x == 0) { | 61 if (x == 0) { |
62 memcpy(omac->Lu[1], omac->Lu[0], sizeof(omac->Lu[0])); | 62 XMEMCPY(omac->Lu[1], omac->Lu[0], sizeof(omac->Lu[0])); |
63 } | 63 } |
64 } | 64 } |
65 | 65 |
66 /* setup state */ | 66 /* setup state */ |
67 omac->cipher_idx = cipher; | 67 omac->cipher_idx = cipher; |