Created
October 8, 2017 18:36
-
-
Save malachib/5be56dfe2475759dd5bc087f80d26929 to your computer and use it in GitHub Desktop.
Convert modulus to a C friendly format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Converts to a more C friendly format | |
echo -n '#define MODULUS "\x' > modulus.h | |
sed s/:/'\\'x/g <modulus.txt >> modulus.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment