/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
*
* Copyright (C) 2009 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtain such a license before exporting.
*
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright notice and
* this permission notice appear in supporting documentation, and that
* the name of M.I.T. not be used in advertising or publicity pertaining
* to distribution of the software without specific, written prior
* permission. Furthermore if you modify this software you must label
* your software as modified software and not distribute it in such a
* fashion that it might be confused with the original M.I.T. software.
* M.I.T. makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
*
*
*
* Implement KRB_FX_CF2 function per
*draft-ietf-krb-wg-preauth-framework-09. Take two keys and two
*pepper strings as input and return a combined key.
*/
/*
*/
#include <k5-int.h>
#include <assert.h>
#include "etypes.h"
/*
* Call the PRF function multiple times with the pepper prefixed with
* a count byte to get enough bits of output.
*/
static krb5_error_code
{
if (retval)
goto cleanup;
iterations++;
if (retval)
goto cleanup;
goto cleanup;
}
while (iterations > 0) {
if (retval)
goto cleanup;
iterations--;
}
return retval;
}
krb5_keyblock **out)
{
return KRB5_BAD_ENCTYPE;
return KRB5_BAD_ENCTYPE;
/* Solaris Kerberos - Move the assignment out of the assert */
if (context)
"Enctype %d has no PRF", out_enctype_num);
return KRB5_CRYPTO_INTERNAL;
}
if (retval)
goto cleanup;
if (retval)
goto cleanup;
for (i = 0; i < keybytes; i++)
&out_key);
if (retval)
goto cleanup;
/* Solaris Kerberos - tmp added 1st arg */
if (retval)
goto cleanup;
return retval;
}