net/data/ssl/scripts/crlsetutil.py
def _der_cert_to_spki(der_bytes):
  """Returns the subjectPublicKeyInfo of a DER-encoded certificate

  Args:
    der_bytes: A DER-encoded certificate (RFC 5280)

  Returns:
    A byte array containing the subjectPublicKeyInfo
  """
  iterator = ASN1Iterator(der_bytes)
  iterator.step_into()  # enter certificate structure
  iterator.step_into()  # enter TBSCertificate
  iterator.step_over()  # over version
  iterator.step_over()  # over serial
  iterator.step_over()  # over signature algorithm
  iterator.step_over()  # over issuer name
  iterator.step_over()  # over validity
  iterator.step_over()  # over subject name
  return iterator.contents()
Returns the subjectPublicKeyInfo of a DER-encoded certificate

  Args:
    der_bytes: A DER-encoded certificate (RFC 5280)

  Returns:
    A byte array containing the subjectPublicKeyInfo
  
Returns the subjectPublicKeyInfo of a DER-encoded certificate
Returns the subjectPublicKeyInfo of a DER - encoded certificate
def _der_cert_to_spki(der_bytes):
  iterator = ASN1Iterator(der_bytes)
  iterator.step_into()  
  iterator.step_into()  
  iterator.step_over()  
  iterator.step_over()  
  iterator.step_over()  
  iterator.step_over()  
  iterator.step_over()  
  iterator.step_over()  
  return iterator.contents()
def _der_cert_to_spki ( der_bytes ) : iterator = ASN1Iterator ( der_bytes ) iterator . step_into ( ) iterator . step_into ( ) iterator . step_over ( ) iterator . step_over ( ) iterator . step_over ( ) iterator . step_over ( ) iterator . step_over ( ) iterator . step_over ( ) return iterator . contents ( )
Returns the subjectPublicKeyInfo of a DER-encoded certificate
Returns the subjectPublicKeyInfo of a DER - encoded certificate
"""Returns the subjectPublicKeyInfo of a DER-encoded certificate

  Args:
    der_bytes: A DER-encoded certificate (RFC 5280)

  Returns:
    A byte array containing the subjectPublicKeyInfo
  """ # enter certificate structure # enter TBSCertificate # over version # over serial # over signature algorithm # over issuer name # over validity # over subject name
A byte array containing the subjectPublicKeyInfo
A byte array containing the subjectPublicKeyInfo
der_bytes
A DER-encoded certificate (RFC 5280)
A DER - encoded certificate ( RFC 5280 )