pull up r18836 from trunk
authorTom Yu <tlyu@mit.edu>
Thu, 30 Nov 2006 23:21:11 +0000 (23:21 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 30 Nov 2006 23:21:11 +0000 (23:21 +0000)
commit5d4a32ce4e34c6365af72a7eec7fe1cfbda90112
treec71cc77f2d254e10871cd787315296001d1ae45f
parent6baee43ddc498c1662debef1d2c22adceb818cd7
pull up r18836 from trunk

 r18836@cathode-dark-space:  coffman | 2006-11-17 14:48:17 -0500
 subject: update krb5_c_keylength function, create krb5_c_random_to_key function
 ticket: new
 Target_Version: 1.6
 Tags: pullup

 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: 4799
version_fixed: 1.6

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@18890 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]