Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

cp-abe: plaintext exceeding a certain length will fail during decryption #484

Closed
hafeidejiangyou opened this issue Mar 5, 2024 · 2 comments 路 Fixed by #490
Closed

cp-abe: plaintext exceeding a certain length will fail during decryption #484

hafeidejiangyou opened this issue Mar 5, 2024 · 2 comments 路 Fixed by #490
Assignees
Labels
bug Something isn't working documentation

Comments

@hafeidejiangyou
Copy link

Run example_test.go, and change the plaintext like:

msgStr := must have the precious 馃巸 + strings.Repeat("abc", 1024*10*3)

It will Encrypt error with "decryption using right attrs should have succeeded"

Is there a limitation on the length of the plaintext?

@armfazh armfazh self-assigned this Mar 6, 2024
@armfazh armfazh added bug Something isn't working documentation labels Mar 6, 2024
@armfazh
Copy link
Contributor

armfazh commented Mar 7, 2024

I've identified the issue, and am preparing documentation for it.
In short, message is length-prefixed stored with uint16 prefixes.

@hafeidejiangyou
Copy link
Author

I've identified the issue, and am preparing documentation for it. In short, message is length-prefixed stored with uint16 prefixes.

Are there any other considerations when using uint16? Will larger data types be used in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants