VERIFYdata

From flud

Note: the most up-to-date documentation of the protocol is the source code itself, at http://flud.org/tryit.html

Contents

[edit] (Verify) GET /hash/[filekey]

Verify file data. This operation requests the sha256 hash of the data for [filekey] from [offset] to [offset]+[length].

[edit] authentication

This operation requires authentication.

[edit] required parameters:

  • Ku_e: integer value (not encoded). value of 'e' from public key.
  • Ku_n: integer value (not encoded). value of 'n' from public key.
  • port: integer value (not encoded). listen port.
  • offset: integer value (not encoded). offset into filedata.
  • length: integer value (not encoded). length of filedata to hash.

[edit] possible responses

normal response:

  • code: 200 OK
  • data: [shar256 hashstring]

response for malformed request:

  • code: 400 BAD REQUEST
  • data: error message

response for challenge-response failure:

  • code: 401 UNAUTHORIZED
  • data: error message
Personal tools