Skip to content

serdect: is it actually constant-time? #1111

@fjarri

Description

@fjarri

The binary serializer uses serializer.serialize_tuple() and serialize_element() which, in some formats at least, makes it data-dependent. E.g. MessagePack prepends every element greater than 127 with 0xCC.

Also, this contradicts the documentation claim:

When using a binary format, the data is serialized as-is into binary.

What was the reason behind not using serialize_bytes()? Seems like it would provide better constant-time guarantees?

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