hash_ef_generic.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <k5-int.h>
#include <des_int.h>
unsigned int icount,
{
int i;
CKR_OK) {
"rv = 0x%x.", rv);
return (PKCS_ERR);
}
for (i = 0; i < icount; i++) {
"rv = 0x%x", rv);
return (PKCS_ERR);
}
}
"rv = 0x%x", rv);
return (PKCS_ERR);
}
/* Narrowing conversion OK because hashes are much smaller than 2^32 */
return (0);
}
/*
* Ideally, this would use the PKCS#11 interface
* for doing DES_CBC_MAC_* operations, but for now we
* can fake it by using the des-cbc crypto operation.
* and truncating the output.
*/
{
krb5_error_code retval = 0;
int inlen;
int outlen;
/*
* This is ugly but necessary until proper PKCS#11
* interface is ready.
*/
}
else
}
(const mit_des_cblock *)inbuf,
(mit_des_cblock *)outbuf,
if (retval == 0) {
}
}
return (retval);
}