net/data/ssl/scripts/crlsetutil.py
def der_cert_to_spki_hash(der_cert):
  """Gets the SHA-256 hash of the subjectPublicKeyInfo of a DER encoded cert

  Args:
    der_cert: A string containing the DER-encoded certificate

  Returns:
    The SHA-256 hash of the certificate, as a byte sequence
  """
  return hashlib.sha256(_der_cert_to_spki(der_cert)).digest()
Gets the SHA-256 hash of the subjectPublicKeyInfo of a DER encoded cert

  Args:
    der_cert: A string containing the DER-encoded certificate

  Returns:
    The SHA-256 hash of the certificate, as a byte sequence
  
Gets the SHA-256 hash of the subjectPublicKeyInfo of a DER encoded cert
Gets the SHA - 256 hash of the subjectPublicKeyInfo of a DER encoded cert
def der_cert_to_spki_hash(der_cert):
  return hashlib.sha256(_der_cert_to_spki(der_cert)).digest()
def der_cert_to_spki_hash ( der_cert ) : return hashlib . sha256 ( _der_cert_to_spki ( der_cert ) ) . digest ( )
Gets the SHA-256 hash of the subjectPublicKeyInfo of a DER encoded cert
Gets the SHA - 256 hash of the subjectPublicKeyInfo of a DER encoded cert
"""Gets the SHA-256 hash of the subjectPublicKeyInfo of a DER encoded cert

  Args:
    der_cert: A string containing the DER-encoded certificate

  Returns:
    The SHA-256 hash of the certificate, as a byte sequence
  """
The SHA-256 hash of the certificate, as a byte sequence
The SHA - 256 hash of the certificate as a byte sequence
der_cert
A string containing the DER-encoded certificate
A string containing the DER - encoded certificate