parseapk/parse_apk.py
def parse_public_key(data, offset):
    '''
    parses a length prefixed public key (inside APK Signature Scheme v2 Block)
    offset is the offset to the beginning of the length prefixed public key
    returns: length we parsed
    '''
    length = struct.unpack("<L", data[offset: offset+4])[0]
    print "\t\t\tSubjectPublicKeyInfo length: ", length
    # public key after
    
    return 4+length

    parses a length prefixed public key (inside APK Signature Scheme v2 Block)
    offset is the offset to the beginning of the length prefixed public key
    returns: length we parsed
    
parses a length prefixed public key (inside APK Signature Scheme v2 Block)
offset is the offset to the beginning of the length prefixed public key
returns: length we parsed
parses a length prefixed public key ( inside APK Signature Scheme v2 Block ) offset is the offset to the beginning of the length prefixed public key returns : length we parsed
def parse_public_key(data, offset):
    length = struct.unpack("<L", data[offset: offset+4])[0]
    print "\t\t\tSubjectPublicKeyInfo length: ", length
    return 4+length
def parse_public_key ( data , offset ) : length = struct . unpack ( "<L" , data [ offset : offset + 4 ] ) [ 0 ] print "\t\t\tSubjectPublicKeyInfo length: " , length return 4 + length
parses a length prefixed public key (inside APK Signature Scheme v2 Block)
offset is the offset to the beginning of the length prefixed public key
returns: length we parsed
parses a length prefixed public key ( inside APK Signature Scheme v2 Block ) offset is the offset to the beginning of the length prefixed public key returns : length we parsed
'''
    parses a length prefixed public key (inside APK Signature Scheme v2 Block)
    offset is the offset to the beginning of the length prefixed public key
    returns: length we parsed
    ''' # public key after
data
offset