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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block Sizes smaller than 512B #1

Open
seesharpsteve opened this issue Nov 15, 2013 · 1 comment
Open

Block Sizes smaller than 512B #1

seesharpsteve opened this issue Nov 15, 2013 · 1 comment

Comments

@seesharpsteve
Copy link

Is there anyway to get a much smaller blocksize than 512B? I have tried lowering BLOCK_SIZE to 128 and 64 but I get a Bus Error each time I try to encrypt data.

Any help would be very much appreciated! I need to get the size of my data packets much smaller than 512B. I believe XXTea should support variable block sizes, so I'm hoping this is possible!

Thanks!

@jviki
Copy link
Owner

jviki commented Nov 15, 2013

Try to set
#define CRYPT_ATONCE_SIZE (BLOCK_SIZE / 4)

It is in words, not in bytes... I hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants