Hashing and Digital Signature Functions

The functions described in this chapter are used by applications to compute hashes (also known as message digests), as well as to create and verify digital signatures. The following table briefly describes each function.

Function Description
CPCreateHash Creates an "empty" hash object.
CPDestroyHash Destroys a hash object.
CPDuplicateHash Makes an exact copy of a hash and the state the hash is in.
CPGetHashParam Retrieves a hash object parameter.
CPHashData Hashes a block of data, adding it to the specified hash object.
CPHashSessionKey Hashes a session key, adding it to the specified hash object.
CPSetHashParam Sets a hash object parameter.
CPSignHash Signs the specified hash object.
CPVerifySignature Verifies a digital signature.