original_docstring: Find the cryptography pad function given a signed digest algorithm from asn1crypto.
  
      Args:
          algorithm (SignedDigestAlgorithm): The asn1crypto Signed Digest Algorithm
      Returns:
          Union[None, Type[padding.PKCS1v15]]: The padding function for the signed digest
          
docstring: Find the cryptography pad function given a signed digest algorithm from asn1crypto.
docstring_tokens: Find the cryptography pad function given a signed digest algorithm from asn1crypto .
code: def _cryptography_pad_function(algorithm: SignedDigestAlgorithm) -> Union[None, Type[padding.PKCS1v15]]:
      """Find the cryptography pad function given a signed digest algorithm from asn1crypto.
  
      Args:
          algorithm (SignedDigestAlgorithm): The asn1crypto Signed Digest Algorithm
      Returns:
          Union[None, Type[padding.PKCS1v15]]: The padding function for the signed digest
          """
      signature_algo = algorithm.signature_algo
  
      if signature_algo == "rsassa_pkcs1v15":
          return padding.PKCS1v15
      else:
          return None
code_tokens: def _cryptography_pad_function ( algorithm : SignedDigestAlgorithm ) -> Union [ None , Type [ padding . PKCS1v15 ] ] : signature_algo = algorithm . signature_algo if signature_algo == "rsassa_pkcs1v15" : return padding . PKCS1v15 else : return None
short_docstring: Find the cryptography pad function given a signed digest algorithm from asn1crypto.
short_docstring_tokens: Find the cryptography pad function given a signed digest algorithm from asn1crypto .
comment: """Find the cryptography pad function given a signed digest algorithm from asn1crypto.
  
      Args:
          algorithm (SignedDigestAlgorithm): The asn1crypto Signed Digest Algorithm
      Returns:
          Union[None, Type[padding.PKCS1v15]]: The padding function for the signed digest
          """