URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -ftree-loop-linear" } */
|
/* { dg-options "-O2 -ftree-loop-linear" } */
|
|
|
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
|
|
static unsigned char sbox[256] = {
|
static unsigned char sbox[256] = {
|
};
|
};
|
void MD2Transform (unsigned char state[16])
|
void MD2Transform (unsigned char state[16])
|
{
|
{
|
unsigned char t = 0;
|
unsigned char t = 0;
|
int i, j;
|
int i, j;
|
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++)
|
{
|
{
|
for (j = 0; j < 2; j++)
|
for (j = 0; j < 2; j++)
|
t = (state[j] ^= sbox[t]);
|
t = (state[j] ^= sbox[t]);
|
t += i;
|
t += i;
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.