[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here
HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_c_make_checksum — Compute a checksum

 » Table of Contents

 » Glossary

 » Index

C Prototype

krb5_error_code krb5_c_make_checksum (
krb5_context context,
krb5_cksumtype cksumtype,
const krb5_keyblock *key,
krb5_keyusage usage,
const krb5_data *input,
krb5_checksum *cksum );

Arguments

context (input/output) 

The context structure.

cksumtype (input) 

The checksum type.

key (input) 

A pointer to the encryption key.

usage (input) 

A salt value.

input (input) 

The data for which a checksum is to be produced.

cksum (output) 

The checksum.

Description

This routine computes a checksum, which is returned in cksum. Input parameters include the checksum type cksumtype, the encryption key key, a salt value usage, and the data for which a checksum is to be produced in input.

Return Values

This routine returns the following KRB5 status codes:

0Successful completion.

KRB5_BAD_ENCTYPE

Bad encryption type.

ENOMEMInsufficient memory.