update krb5_c_keylength function, create krb5_c_random_to_key function
authorKevin Coffman <kwc@citi.umich.edu>
Fri, 17 Nov 2006 19:48:17 +0000 (19:48 +0000)
committerKevin Coffman <kwc@citi.umich.edu>
Fri, 17 Nov 2006 19:48:17 +0000 (19:48 +0000)
commite91c20fb8b51c22f8a81ebd8f81343f4bd1d0896
tree6e12ff022f4a51b58ace620c2e1315c1809e21c1
parentf893735bf76cee0a7fea6bb092e4ee4bc84eac9c
update krb5_c_keylength function, create krb5_c_random_to_key function

Modify the keylength function to return both keybytes and keylength.
Change the name of the function and source file to reflect this.

Add a function, krb5_c_random_to_key() that takes random input data
of the right length (keybytes) and produce a valid key for a given
enctype.

ticket: new
Target_Version: 1.6
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18836 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/crypto/Makefile.in
src/lib/crypto/keylengths.c [moved from src/lib/crypto/keylength.c with 79% similarity]
src/lib/crypto/libk5crypto.exports
src/lib/crypto/random_to_key.c [new file with mode: 0644]