Function

Gcr-4Gcrfingerprint_from_subject_public_key_info

  • Create a key fingerprint for a DER encoded subjectPublicKeyInfo. The fingerprint is created so that it will be identical for a key and its corresponding certificate.

    Note that in the case of certificates this is not a fingerprint of the actual certificate data, but rather of the public key contained in a certificate.

    Parameters

    • key_info: string | Uint8Array<ArrayBufferLike>

      DER encoded subjectPublicKeyInfo structure

    • checksum_type: ChecksumType

      the type of fingerprint to create

    Returns Uint8Array<ArrayBufferLike>

    the fingerprint or null if the input was invalid.