net/data/verify_signed_data_unittest/annotate_test_data.py
def GenerateCommentForBlock(block_name, block_data):
  """Returns a string describing the ASN.1 structure of block_data"""

  p = subprocess.Popen(['openssl', 'asn1parse', '-i', '-inform', 'DER'],
                       stdout=subprocess.PIPE, stdin=subprocess.PIPE,
                       stderr=subprocess.PIPE)
  stdout_data, stderr_data = p.communicate(input=block_data)
  generated_comment = '$ openssl asn1parse -i < [%s]\n%s' % (block_name,
                                                             stdout_data)
  return generated_comment.strip('\n')
Returns a string describing the ASN.1 structure of block_data
Returns a string describing the ASN.1 structure of block_data
Returns a string describing the ASN . 1 structure of block_data
def GenerateCommentForBlock(block_name, block_data):
  p = subprocess.Popen(['openssl', 'asn1parse', '-i', '-inform', 'DER'],
                       stdout=subprocess.PIPE, stdin=subprocess.PIPE,
                       stderr=subprocess.PIPE)
  stdout_data, stderr_data = p.communicate(input=block_data)
  generated_comment = '$ openssl asn1parse -i < [%s]\n%s' % (block_name,
                                                             stdout_data)
  return generated_comment.strip('\n')
def GenerateCommentForBlock ( block_name , block_data ) : p = subprocess . Popen ( [ 'openssl' , 'asn1parse' , '-i' , '-inform' , 'DER' ] , stdout = subprocess . PIPE , stdin = subprocess . PIPE , stderr = subprocess . PIPE ) stdout_data , stderr_data = p . communicate ( input = block_data ) generated_comment = '$ openssl asn1parse -i < [%s]\n%s' % ( block_name , stdout_data ) return generated_comment . strip ( '\n' )
Returns a string describing the ASN.1 structure of block_data
Returns a string describing the ASN . 1 structure of block_data
"""Returns a string describing the ASN.1 structure of block_data"""
block_name
block_data