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

How to create a test data file for a block cipher algorithm #460

Closed
vgisc-labs opened this issue Dec 21, 2024 · 2 comments
Closed

How to create a test data file for a block cipher algorithm #460

vgisc-labs opened this issue Dec 21, 2024 · 2 comments

Comments

@vgisc-labs
Copy link

I want to integrate a new dedicated block cipher algorithm.

I don't know how to create a data file (Eg: block-ciphers/test/data/*.blb) for testing.

Can anyone who knows this tell how these data files are created?

@vgisc-labs
Copy link
Author

I already have the test vector files for the block cipher algorithm planned to be integrated into the library package.

However, I don't know how to create *.blb files in Rust's testing format

@newpavlov
Copy link
Member

newpavlov commented Dec 27, 2024

If you have only a small number of test vectors you can start with hex!-based tests.

One way to generate blb files is to use the convert binary. You can prepare a text file with hex-encoded strings and convert it using cargo run --release --example convert -- encode hex_input.txt encoded_output.blb.

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