Skip to content

value of crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX bigger than it should be #111

Closed
@rubiksdot

Description

@rubiksdot

I need to use pysodium.crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX.value in my code but I found that its value is not quite right.

The libsodium docs say it should be ~256GB and my reading of the libsodium code confirms but pysodium.crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX and pysodium.crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX.value both give me ~18.5EB which is a mite bigger than it should be.

I've got libsodium 1.0.18 (debian flavour) and pysodium 0.7.16 (pypi flavour). Another person confirmed with libsodium/pysodium 1.0.19 / 0.7.16 and a third with pysodium 0.7.16.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions