code: def crypto_pwhash_scryptsalsa208sha256_str_verify(passwd_hash, passwd):
      
  
      ensure(len(passwd_hash) == SCRYPT_STRBYTES - 1, 'Invalid password hash',
             raising=exc.ValueError)
  
      ret = lib.crypto_pwhash_scryptsalsa208sha256_str_verify(passwd_hash,
                                                              passwd,
                                                              len(passwd))
      ensure(ret == 0,
             "Wrong password",
             raising=exc.InvalidkeyError)
      # all went well, therefore:
      return True
docs: Verifies the ``passwd`` against the ``passwd_hash`` that was generated.
      Returns True or False depending on the success
  
      :param passwd_hash: bytes
      :param passwd: bytes
      :rtype: boolean