/*
* OTP hash generation.
*
* Copyright (c) 2006 Andrey Panin <pazke@donpac.ru>
*
* This software is released under the MIT license.
*/
#include "lib.h"
#include "md4.h"
#include "md5.h"
#include "sha1.h"
#include "otp.h"
struct digest {
const char *name;
};
struct digest_context {
union {
} ctx;
};
{
}
{
}
/*
* Sometimes I simply can't look at code generated by gcc.
*/
{
asm("xchgb %b0, %h0\n"
"rorl $16, %0\n"
"xchgb %b0, %h0\n"
:"=q" (val)
: "0" (val));
#else
#endif
return val;
}
{
}
};
{
}
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(digests); i++)
return i;
return -1;
}
{
}
{
}
{
}
{
}
{
while (step-- > 0) {
}
}
unsigned char *result)
{
}