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

Errors when trying to build #9

Open
amicha24 opened this issue Apr 28, 2020 · 1 comment
Open

Errors when trying to build #9

amicha24 opened this issue Apr 28, 2020 · 1 comment

Comments

@amicha24
Copy link

amicha24 commented Apr 28, 2020

Hello,

I would like to do some -maybe- noob questions.

When I try to execute the do.sh file I am unable to execute.

I receive ./do.sh: 2: ./do.sh: Syntax error: "||" unexpected

and if I remove the || from the double || before which gcc, then

I receive ./do.sh: 6: ./do.sh: Syntax error: Unterminated quoted string

Please I also need to add the extra command for the memset, as suggested.

If someone can give me this I would appreciate it.

Thank you.

@jweinraub
Copy link

Hi,

Sorry to see nobody wrote back to you but I just spent some time sorting things out. What are you trying to do, make a library or play with the code? I was doing the latter instead of the former so I just directly compiled it when I saw the silly shell script collapsed and failed out.

So instead, I did: gcc -o driver driver.c keccak-tiny.c

Obviously you will need your own driver, I commented just now too. But the gist of it is shake256(out, 64, in, strlen(in)); (the notes that were provided were incorrect, thanks to someone there for pointing it out).

Likewise, you can do shake-128, shake128(out, 32, in, strlen(in)); but I had SHA3 already from a different package so I didn't play with it yet (though I am searching for SHA512/256 (and 224)...

But before I go on a tangent, good luck!

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