
def 						__magic_name__			(   __a      :	bytes						):



     '''simple docstring'''




     return "".join([hex(__a						)[2:].zfill(2						).upper() for byte in list(__a						)]						)






def 						__magic_name__			(   __a      :	str						):



     '''simple docstring'''




     if (len(__a						) % 2) != 0:
          raise ValueError(
              """Base16 encoded data is invalid:
Data does not have an even number of hex digits."""						)
     # Check the character set - the standard base16 alphabet
     # is uppercase according to RFC3548 section 6
     if not set(__a						) <= set("""0123456789ABCDEF"""						):
          raise ValueError(
              """Base16 encoded data is invalid:
Data is not uppercase hex or it contains invalid characters."""						)
     # For every two hexadecimal digits (= a byte), turn it into an integer.
     # Then, string the result together into bytes, and return it.
     return bytes(int(data[i] + data[i + 1]	,		16						) for i in range(0	,		len(__a						)	,		2						)						)


if __name__ == "__main__":
    import doctest

    doctest.testmod()







def 						__magic_name__			(   __a      :	int	,		__a      :	int						):



     '''simple docstring'''




     while a != 0:
          UpperCamelCase__		,	UpperCamelCase__				=    b % a, a
     return b






def 						__magic_name__			(   __a      :	int	,		__a      :	int						):



     '''simple docstring'''




     if gcd(__a	,		__a						) != 1:
          UpperCamelCase__				=    f"mod inverse of {a!r} and {m!r} does not exist"
          raise ValueError(__a						)
     UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__				=    1, 0, a
     UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__				=    0, 1, m
     while va != 0:
          UpperCamelCase__				=    ua // va
          UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__				=    (ua - q * va), (ua - q * va), (ua - q * va), va, va, va
     return ua % m





