|  |  |  | Gcr Library Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
guchar * gcr_fingerprint_from_attributes (GckAttributes *attrs,GChecksumType checksum_type,gsize *n_fingerprint); guchar * gcr_fingerprint_from_subject_public_key_info (const guchar *key_info,gsize n_key_info,GChecksumType checksum_type,gsize *n_fingerprint);
These functions generate key fingerprints for public keys, certificates and key data. The fingerprints are created so that they they will be identical for a key and its corresponding certificate.
Note that in the case of certificates these are not fingerprints of the actual certificate data, but rather of the public key contained in a certificate.
These fingerprints are created using the subjectPublicKeyInfo ASN.1 structure.
guchar * gcr_fingerprint_from_attributes (GckAttributes *attrs,GChecksumType checksum_type,gsize *n_fingerprint);
Create a key fingerprint for a certificate, public key or private key.
Note that this is not a fingerprint of certificate data, which you would
use gcr_certificate_get_fingerprint() for.
| 
 | attributes for key or certificate | 
| 
 | the type of fingerprint to create | 
| 
 | the length of fingerprint returned | 
| Returns : | the
fingerprint or NULLif the input was invalid. [transfer full][allow-none][array length=n_fingerprint] | 
guchar * gcr_fingerprint_from_subject_public_key_info (const guchar *key_info,gsize n_key_info,GChecksumType checksum_type,gsize *n_fingerprint);
Create a key fingerprint for a DER encoded subjectPublicKeyInfo.
| 
 | DER encoded subjectPublicKeyInfo structure. [array length=n_key_info] | 
| 
 | length of DER encoded structure | 
| 
 | the type of fingerprint to create | 
| 
 | the length of fingerprint returned | 
| Returns : | the
fingerprint or NULLif the input was invalid. [transfer full][allow-none][array length=n_fingerprint] |