arcfour_str2key.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <k5-int.h>
#include <rsa-md4.h>
#include <arcfour.h>
{
int counter;
}
}
const struct krb5_enc_provider *enc,
{
return KRB5_ERR_BAD_S2K_PARAMS;
return (KRB5_BAD_MSIZE);
/* We ignore salt per the Microsoft spec*/
/* compute the space needed for the new string.
Since the password must be stored in unicode, we need to increase
that number by 2x.
This should be re-evauated in the future, it makes the assumption that
thes user's password is in ascii.
*/
return ENOMEM;
/* make the string. start by creating the unicode version of the password*/
/* the actual MD4 hash of the data */
#if 0
/* test the string_to_key function */
printf("Hash=");
{
int counter;
printf("\n");
}
#endif /* 0 */
/* Zero out the data behind us */
if (copystr)
return 0;
}