n-for-1-auth / circuits

A collection of Bristol format circuit files
Apache License 2.0
9 stars 5 forks source link

Input information for the key generation circuits #4

Closed joerowell closed 1 year ago

joerowell commented 2 years ago

Is there any information available about the input layout expected for the key generation circuits?

To give an example of what I mean, the AES-non-expanded circuit expects the input in this format:

<message bits><key bits>

This can be seen e.g here:

// NIST test vector
string input_message_key = "00112233445566778899AABBCCDDEEFF000102030405060708090A0B0C0D0E0F";

Thanks so much! :)

weikengchen commented 1 year ago

I hope this script would be helpful: https://github.com/n-for-1-auth/circuits/blob/main/generator/generate_handshake_circuits.cpp

joerowell commented 1 year ago

Hey @weikengchen! Sorry, I should have closed this: I figured it out a while back :) Thanks for commenting anyway!