Module Import alias Import alias TryExcept body ImportFrom alias ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Print Str ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Num AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Slice Num Num For NameStore Call NameLoad Num Call NameLoad NameLoad Num body AugAssignAdd NameStore BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Slice Num Num For NameStore Call NameLoad Num Call NameLoad NameLoad Num body AugAssignAdd NameStore BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A hashlib N/A binascii N/A N/A ecdsa SigningKey ecdsa.curves NIST256p ecdsa.keys sigencode_string N/A N/A N/A Exception N/A N/A Failed to import ecdsa, cannot do signing nordicsemi.exceptions InvalidArgumentException IllegalStateException Signing N/A object N/A N/A 
    Class for singing of hex-files
     gen_key N/A N/A self filename N/A N/A N/A 
        Generate a new Signing key using NIST P-256 curve
         N/A N/A self sk N/A N/A SigningKey generate curve NIST256p N/A N/A open filename w sk_file N/A N/A N/A N/A sk_file write N/A N/A N/A self sk to_pem N/A load_key N/A N/A self filename N/A N/A N/A 
        Load signing key (from pem file)
         N/A N/A open filename r sk_file N/A N/A sk_pem N/A N/A sk_file read N/A N/A self sk N/A N/A SigningKey from_pem sk_pem N/A sk_hex N/A N/A join N/A N/A N/A c encode hex N/A c N/A N/A N/A self sk to_string N/A sign N/A N/A self init_packet_data N/A N/A N/A 
        Create signature for init package using P-256 curve and SHA-256 as hashing algorithm
        Returns R and S keys combined in a 64 byte array
         N/A N/A N/A self sk None N/A N/A N/A IllegalStateException Can't save key. No key created/loaded N/A signature N/A N/A N/A self sk sign init_packet_data hashfunc N/A hashlib sha256 sigencode sigencode_string N/A signature N/A verify N/A N/A self init_packet signature N/A N/A N/A 
        Verify init packet
         N/A N/A N/A self sk None N/A N/A N/A IllegalStateException Can't save key. No key created/loaded N/A vk N/A N/A N/A self sk get_verifying_key N/A N/A N/A N/A N/A vk verify signature init_packet hashfunc N/A hashlib sha256 N/A N/A N/A N/A False N/A True N/A get_vk N/A N/A self output_type N/A N/A N/A 
        Get verification key (as hex, code or pem)
         N/A N/A N/A self sk None N/A N/A N/A IllegalStateException Can't get key. No key created/loaded N/A N/A output_type None N/A N/A N/A InvalidArgumentException Invalid output type for signature. N/A N/A N/A output_type hex N/A N/A N/A N/A self get_vk_hex N/A N/A N/A output_type code N/A N/A N/A N/A self get_vk_code N/A N/A N/A output_type pem N/A N/A N/A N/A self get_vk_pem N/A N/A N/A InvalidArgumentException Invalid argument. Can't get key N/A get_vk_hex N/A N/A self N/A N/A N/A 
        Get the verification key as hex
         N/A N/A N/A self sk None N/A N/A N/A IllegalStateException Can't get key. No key created/loaded N/A vk N/A N/A N/A self sk get_verifying_key N/A vk_hexlify N/A N/A binascii hexlify N/A N/A vk to_string N/A vk_hex N/A N/A Verification key Qx: {0}
 format N/A vk_hexlify N/A 0 64 N/A vk_hex N/A N/A Verification key Qy: {0} format N/A vk_hexlify N/A 64 128 N/A vk_hex N/A get_vk_code N/A N/A self N/A N/A N/A 
        Get the verification key as code
         N/A N/A N/A self sk None N/A N/A N/A IllegalStateException Can't get key. No key created/loaded N/A vk N/A N/A N/A self sk get_verifying_key N/A vk_hex N/A N/A binascii hexlify N/A N/A vk to_string N/A vk_x_separated N/A vk_x_str N/A vk_hex N/A 0 64 N/A i N/A xrange 0 N/A len vk_x_str 2 N/A N/A vk_x_separated N/A N/A 0x N/A vk_x_str N/A i N/A i 2 ,  N/A vk_x_separated N/A vk_x_separated N/A -2 N/A vk_y_separated N/A vk_y_str N/A vk_hex N/A 64 128 N/A i N/A xrange 0 N/A len vk_y_str 2 N/A N/A vk_y_separated N/A N/A 0x N/A vk_y_str N/A i N/A i 2 ,  N/A vk_y_separated N/A vk_y_separated N/A -2 N/A vk_code N/A N/A static uint8_t Qx[] = {{ {0} }};
 format vk_x_separated N/A vk_code N/A N/A static uint8_t Qy[] = {{ {0} }}; format vk_y_separated N/A vk_code N/A get_vk_pem N/A N/A self N/A N/A N/A 
        Get the verification key as PEM
         N/A N/A N/A self sk None N/A N/A N/A IllegalStateException Can't get key. No key created/loaded N/A vk N/A N/A N/A self sk get_verifying_key N/A vk_pem N/A N/A vk to_pem N/A vk_pem N/A N/A