KRB5_STRING_TO_KEY(3) | FreeBSD Library Functions Manual | KRB5_STRING_TO_KEY(3) |
名称
krb5_string_to_key, krb5_string_to_key_data, krb5_string_to_key_data_salt, krb5_string_to_key_data_salt_opaque, krb5_string_to_key_salt, krb5_string_to_key_salt_opaque, krb5_get_pw_salt, krb5_free_salt — 文字列を Kerberos キーに変えるライブラリ
Kerberos 5 ライブラリ (libkrb5, -lkrb5)書式
#include < krb5.h> krb5_error_code
krb5_string_to_key( krb5_context context, krb5_enctype enctype, const char *password, krb5_principal principal, krb5_keyblock *key);
krb5_error_code
krb5_string_to_key_data( krb5_context context, krb5_enctype enctype, krb5_data password, krb5_principal principal, krb5_keyblock *key);
krb5_error_code
krb5_string_to_key_data_salt( krb5_context context, krb5_enctype enctype, krb5_data password, krb5_salt salt, krb5_keyblock *key);
krb5_error_code
krb5_string_to_key_data_salt_opaque( krb5_context context, krb5_enctype enctype, krb5_data password, krb5_salt salt, krb5_data opaque, krb5_keyblock *key);
krb5_error_code
krb5_string_to_key_salt( krb5_context context, krb5_enctype enctype, const char *password, krb5_salt salt, krb5_keyblock *key);
krb5_error_code
krb5_string_to_key_salt_opaque( krb5_context context, krb5_enctype enctype, const char *password, krb5_salt salt, krb5_data opaque, krb5_keyblock *key);
krb5_error_code
krb5_get_pw_salt( krb5_context context, krb5_const_principal principal, krb5_salt *salt);
krb5_error_code
krb5_free_salt( krb5_context context, krb5_salt salt);
解説
キー関数への文字列は、文字列を kerberos キーに変換します。krb5_string_to_key_data_salt_opaque() は、すべての作業を行う関数で、残りの関数は、単に、デフォルト値でそれを呼び出す krb5_string_to_key_data_salt_opaque() へのラッパです。
krb5_string_to_key_data_salt_opaque() は、与えられた salt ストリング salt と enctype に関連づけられたキー関数への文字列に従ってキー key を暗号化するための暗号化タイプ特有のパラメータ opaque で password を変換します。
key は、 krb5_free_keyblock_contents(). で解放されるべきです。
引数として krb5_salt
を取らない関数の 1 つであるなら、 krb5_get_pw_salt() は、salt 値を取得するために使用されます。
krb5_get_pw_salt() は、プリンシパルのためにデフォルトのパスワード salt を取得し、終了したとき、salt を解放するために、 krb5_free_salt() を使用します。
krb5_free_salt() は、 salt の内容を解放します。
July 10, 2006 | HEIMDAL |