krb5_init_keyblock - Initialize an empty krb5_keyblock .¶
- krb5_error_code krb5_init_keyblock(krb5_context context, krb5_enctype enctype, size_t length, krb5_keyblock ** out)¶
[in] context - Library context
[in] enctype - Encryption type
[in] length - Length of keyblock (or 0)
[out] out - New keyblock structure
Initialize a new keyblock and allocate storage for the contents of the key. It is legal to pass in a length of 0, in which case contents are left unallocated. Use krb5_free_keyblock() to free out when it is no longer needed.
If length is set to 0, contents are left unallocated.