Skip to content

Wikipedia: Binary protocol: Wrong encrypted part description #1

Description

@matwey

Hello,

Currently, https://www.collectd.org/wiki/index.php/Binary_protocol#Encrypted_part says

The encrypted part consists of fields:

  • Type 0x0210
  • Length (16 bit field)
  • Username length (16 bit field, length of Username field)
  • Username (without null byte)
  • Init vector (16 bytes fixed length)
  • Hash (20 bytes fixed length)
  • Encrypted data

In the real-world implementation the hash is part of encrypted data, so the proper description show be like this:

The encrypted part consists of fields:

  • Type 0x0210
  • Length (16 bit field)
  • Username length (16 bit field, length of Username field)
  • Username (without null byte)
  • Init vector (16 bytes fixed length)
  • Encrypted data:
    • SHA1 Hash (20 bytes fixed length)
    • Sequence of data parts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions