From 628c66225068626e8fb11705a41c19bf31302f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 27 Apr 2009 02:42:42 +0000 Subject: [PATCH] doxygen git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25150 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/crypto.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index e7c0cd6dd..7fc26afbb 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -4273,6 +4273,23 @@ krb5_crypto_overhead (krb5_context context, krb5_crypto crypto) return crypto_overhead (context, crypto); } +/** + * Converts the random bytestring to a protocol key according to + * Kerberos crypto frame work. It may be assumed that all the bits of + * the input string are equally random, even though the entropy + * present in the random source may be limited. + * + * @param context Kerberos 5 context + * @param type the enctype resulting key will be of + * @param data input random data to convert to a key + * @param data size of input random data, at least krb5_enctype_keysize() long + * @param data key, output key, free with krb5_free_keyblock_contents() + * + * @return Return an error code or 0. + * + * @ingroup krb5_crypto + */ + krb5_error_code KRB5_LIB_FUNCTION krb5_random_to_key(krb5_context context, krb5_enctype type,