#NEWLINE# def __init__( self , stick , password = '' ) : #NEWLINE# #INDENT# payload = pyhsm . util . input_validate_str ( password , 'password' , max_len = pyhsm . defines . YSM_BLOCK_SIZE ) #NEWLINE# packed = payload . ljust ( pyhsm . defines . YSM_BLOCK_SIZE , chr ( 0 ) ) #NEWLINE# YHSM_Cmd . __init__ ( packed , stick , pyhsm . defines . YSM_KEY_STORAGE_UNLOCK , packed )