diff options
Diffstat (limited to 'doc/html/_sources/appdev/refs/api/krb5_k_make_checksum.txt')
-rw-r--r-- | doc/html/_sources/appdev/refs/api/krb5_k_make_checksum.txt | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/doc/html/_sources/appdev/refs/api/krb5_k_make_checksum.txt b/doc/html/_sources/appdev/refs/api/krb5_k_make_checksum.txt new file mode 100644 index 000000000000..2a11066fc7cf --- /dev/null +++ b/doc/html/_sources/appdev/refs/api/krb5_k_make_checksum.txt @@ -0,0 +1,68 @@ +krb5_k_make_checksum - Compute a checksum (operates on opaque key). +===================================================================== + +.. + +.. c:function:: krb5_error_code krb5_k_make_checksum(krb5_context context, krb5_cksumtype cksumtype, krb5_key key, krb5_keyusage usage, const krb5_data * input, krb5_checksum * cksum) + +.. + + +:param: + + **[in]** **context** - Library context + + **[in]** **cksumtype** - Checksum type (0 for mandatory type) + + **[in]** **key** - Encryption key for a keyed checksum + + **[in]** **usage** - Key usage (see :data:`KRB5_KEYUSAGE` types) + + **[in]** **input** - Input data + + **[out]** **cksum** - Generated checksum + + +.. + + +:retval: + - 0 Success; otherwise - Kerberos error codes + + +.. + + + + + + + +This function computes a checksum of type *cksumtype* over *input* , using *key* if the checksum type is a keyed checksum. If *cksumtype* is 0 and *key* is non-null, the checksum type will be the mandatory-to-implement checksum type for the key's encryption type. The actual checksum key will be derived from *key* and *usage* if key derivation is specified for the checksum type. The newly created *cksum* must be released by calling :c:func:`krb5_free_checksum_contents()` when it is no longer needed. + + + + + + + + + + +.. + +.. seealso:: + :c:func:`krb5_c_verify_checksum()` + + + + + + +.. note:: + + This function is similar to :c:func:`krb5_c_make_checksum()` , but operates on opaque *key* . + + + + |