code: def load_secret(self, secret):
          
          if isinstance(secret, pyhsm.aead_cmd.YHSM_YubiKeySecret):
              secret = secret.pack()
          return pyhsm.buffer_cmd.YHSM_Cmd_Buffer_Load(self.stick, secret).execute()
docs: Ask YubiHSM to load a pre-existing YubiKey secret.
  
          The data is stored internally in the YubiHSM in temporary memory -
          this operation would typically be followed by one or more L{generate_aead}
          commands to actually retreive the generated secret (in encrypted form).
  
          @param secret: YubiKey secret to load
          @type secret: L{pyhsm.aead_cmd.YHSM_YubiKeySecret} or string
  
          @returns: Number of bytes in YubiHSM internal buffer after load
          @rtype: integer
  
          @see: L{pyhsm.buffer_cmd.YHSM_Cmd_Buffer_Load}