Add krb5_enctype_keybits.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19063 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1075,6 +1075,21 @@ krb5_enctype_keysize(krb5_context context,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
|
krb5_enctype_keybits(krb5_context context,
|
||||||
|
krb5_enctype type,
|
||||||
|
size_t *keybits)
|
||||||
|
{
|
||||||
|
struct encryption_type *et = _find_enctype(type);
|
||||||
|
if(et == NULL) {
|
||||||
|
krb5_set_error_string(context, "encryption type %d not supported",
|
||||||
|
type);
|
||||||
|
return KRB5_PROG_ETYPE_NOSUPP;
|
||||||
|
}
|
||||||
|
*keybits = et->keytype->bits;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_generate_random_keyblock(krb5_context context,
|
krb5_generate_random_keyblock(krb5_context context,
|
||||||
krb5_enctype type,
|
krb5_enctype type,
|
||||||
|
Reference in New Issue
Block a user