static unsigned long tom_encrypt(void *key, int keylen, void *iv,
void *pt, void *ct, int tlen)
{
static unsigned long tom_encrypt(void *key, int keylen, void *iv,
void *pt, void *ct, int tlen)
{
if ((index = register_hash(&sha1_desc)) == -1)
return CRYPT_INVALID_HASH;
rc = hmac_memory(index, key, keylen, pt, tlen, tag, <aglen);
if ((index = register_hash(&sha1_desc)) == -1)
return CRYPT_INVALID_HASH;
rc = hmac_memory(index, key, keylen, pt, tlen, tag, <aglen);