next up previous contents
Next: Other data elements Up: Checksum interface Previous: Checksum interface   Contents

Functional interface


\begin{funcdecl}{sum_func}{krb5_error_code}{\funcin}
\funcarg{krb5_pointer}{in}
...
...size_t}{seed_length}
\funcout
\funcarg{krb5_checksum *}{outcksum}
\end{funcdecl}

This routine computes the desired checksum over in_length bytes at in. seed_length bytes of a seed (usually an encryption key) are pointed to by seed. Some checksum algorithms may choose to ignore seed. If seed_length is zero, then there is no seed available. The routine places the resulting value into outcksumcontents.

outcksumcontents must be set by the caller to point to enough storage to contain the checksum; the size necessary is an element of the krb5_checksum_entry structure.



Autobuild 2006-06-16