Replies: 14 comments 12 replies
-
|
Hi Cybro0, thanks for your interest in CLAASP! Indeed, the docker image should simplify the installation, and our recommendation is to do that. Note that we are also working on a web application that will allow to access CLAASP with no need of installing anything beside the Chrome browser. We hope to have this available by early 2024. If you really want to go for the full local installation, please let us know and we can try to debug your issue. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Cybro0, thanks for your interest in CLAASP,
Could you please send us your question?
thanks
---------------------------------------------------------------------
D.Sc. Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica
Tel: +55 21 97633 3228
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------
El jue, 9 nov 2023 a las 20:17, Cybro0 ***@***.***>)
escribió:
… Hello, i have a doubt regarding adding a new cipher in CLAASP tool. Can u
help me? Any contact?
—
Reply to this email directly, view it on GitHub
<#61 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFB7OPMCD2BRLBV5QM23YDT6X7AVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMRUGQ4DC>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi,
I will suggest to check to use the intermediate output components. You can
see some examples of them in almost of the ciphers that are implemented in
claasp. For example, in Speck.
…On Fri, 1 Dec 2023 at 12:52 Cybro0 ***@***.***> wrote:
I have 32 bit value in t3 variable and i have to pass it through S-Box.
Below code substitutes 8 bits....4 times....
Question is, How do i take this 4 8-bit values as one string or one value
in a variable.
sbox.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/2448447d-c379-42ee-bacf-250291e24028>
—
Reply to this email directly, view it on GitHub
<#61 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFBZGXHK5FPOBWCFKX5TYHFPB7AVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TOMRVGE2TM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Have you manage to solve this?
…On Tue, 28 Nov 2023 at 16:15 Cybro0 ***@***.***> wrote:
Im adding a new cipher which i have to initialize XOR operation result in
a variable. Im giving XOR operation code as shown in the image. As shown in
another image, its taking [0-31] [0-31] both as input bit positions and
appending further not overwriting it. How to resolve this?
ddddd.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/3d268d38-e873-46eb-94fb-1e7423a48d9b>
linescode.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/ddfb557f-cb77-411e-a5aa-b6fea81b2947>
—
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFBYWWCSNKCD4Q2YYAGDYGWMTHAVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMOBZGQZDI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Specifically, in the file speck_block_cipher.py. If it is the last round
also you can use the “cipher output component”. Again you can see several
examples of how to use this in almost of the cipher implemented in claasp.
…On Sat, 2 Dec 2023 at 08:24 Juan Grados ***@***.***> wrote:
Hi,
I will suggest to check to use the intermediate output components. You can
see some examples of them in almost of the ciphers that are implemented in
claasp. For example, in Speck.
On Fri, 1 Dec 2023 at 12:52 Cybro0 ***@***.***> wrote:
> I have 32 bit value in t3 variable and i have to pass it through S-Box.
> Below code substitutes 8 bits....4 times....
>
> Question is, How do i take this 4 8-bit values as one string or one value
> in a variable.
>
> sbox.png (view on web)
> <https://github.com/Crypto-TII/claasp/assets/143835501/2448447d-c379-42ee-bacf-250291e24028>
>
> —
> Reply to this email directly, view it on GitHub
> <#61 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA4KFBZGXHK5FPOBWCFKX5TYHFPB7AVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TOMRVGE2TM>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi Cybro,
In that case you can use the add_round_output_component component. Since
you need to pass the S-Box substituted string to the rotate component then
you can also directly use the rotate component without using the
add_round_output_component. To do so you need to use the input_id_links
parameter of add_round_output_component. Check the attached image.
[image: Screenshot 2023-12-08 at 3.31.57 AM.png]
---------------------------------------------------------------------
D.Sc. Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica
Tel: +55 21 97633 3228
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------
El dom, 3 dic 2023 a las 11:32, Cybro0 ***@***.***>)
escribió:
… Yes, that is for last resultant. But in my case, it is in middle of the
round function , as i need to pass the S-Box substituted string to the
rotate component. How do i do without the output component
—
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFB36HPBYEEMHEYUAFUDYHQTKBAVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TONBSGMYTA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Sorry the image is in the body of the email
…On Fri, 8 Dec 2023 at 12:49 Cybro0 ***@***.***> wrote:
There's no image attached !
—
Reply to this email directly, view it on GitHub
<#61 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFB3KGBTHPOSXXN3FOZTYIKL5RAVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TOOJWGE2TE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi Cybro0,
If I understood well you need to do something similar to what is done in
slide 3 of
https://askworkshop.github.io/ask2023/assets/accessory/ASK_slides-juan.pdf.
Please check it and let me know if that help.
…On Sat, 9 Dec 2023 at 14:15 Cybro0 ***@***.***> wrote:
I couldn't find the image in body of the email too. Posting that again
would be helpful.
My scenario as i pasted my screenshot is, I'm getting last 8 bits of my
S_Box output passed to rot component. I have to change my code lines
accordingly to get whole S-Box substituted string passed to rot component.
How can i do that?
sbox_to_rot.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/de754957-b801-451c-b3ba-14ef6b4508c6>
sbox_to_rot_code.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/052ac84b-8a13-446e-b688-e654c3e8dad4>
—
Reply to this email directly, view it on GitHub
<#61 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFB4IZ2HQLBSZGX7CJUDYIP6WRAVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMBVGUYTC>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I think that your issue is due the second parameter must be a list of sub
lists and each Sublist must contain the indexes. In your case each sublist
has again a list.
…On Sat, 9 Dec 2023 at 15:01 Cybro0 ***@***.***> wrote:
I tried as you done in 7th slide (ToySPN1). But, im getting error of " the
length of [input_bit_positions] is not equal to input_bit_size ".
4sboxes.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/aa993e70-bc93-4b22-a803-44dc3515b8e5>
—
Reply to this email directly, view it on GitHub
<#61 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFB2F3TRWX4NTTC2QFP3YIQED3AVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMBVGYZDO>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Good that now it is working. Regarding this second issue. It seems you are
using the constant component. If so, could you please share the line
containing the call tho that method?
…---------------------------------------------------------------------
D.Sc. Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica
Tel: +55 21 97633 3228
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------
On Sun, 10 Dec 2023 at 17:40 Cybro0 ***@***.***> wrote:
Thank you, it solved the problem. But i encountered another problem.
While performing evaluate( ) function, im getting this TypeError. Don't
know which part of my code is wrong.
add_output_component_code.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/e031232e-62b4-4601-a42d-0ceb2b69d884>
typeerror.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/708a3087-0a1f-4459-a7c2-48389a9dba46>
—
Reply to this email directly, view it on GitHub
<#61 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFB2VQKDVS7GFOHT25RDYIW3VXAVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMJRGY2TC>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Also you can check line 92 of
https://github.com/Crypto-TII/claasp/blob/main/claasp/ciphers/block_ciphers/speck_block_cipher.py
…---------------------------------------------------------------------
D.Sc. Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica
Tel: +55 21 97633 3228
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------
On Sun, 10 Dec 2023 at 19:00 Juan Grados ***@***.***> wrote:
Good that now it is working. Regarding this second issue. It seems you are
using the constant component. If so, could you please share the line
containing the call tho that method?
---------------------------------------------------------------------
D.Sc. Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica
Tel: +55 21 97633 3228
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------
On Sun, 10 Dec 2023 at 17:40 Cybro0 ***@***.***> wrote:
> Thank you, it solved the problem. But i encountered another problem.
> While performing evaluate( ) function, im getting this TypeError. Don't
> know which part of my code is wrong.
>
> add_output_component_code.png (view on web)
> <https://github.com/Crypto-TII/claasp/assets/143835501/e031232e-62b4-4601-a42d-0ceb2b69d884>
> typeerror.png (view on web)
> <https://github.com/Crypto-TII/claasp/assets/143835501/708a3087-0a1f-4459-a7c2-48389a9dba46>
>
> —
> Reply to this email directly, view it on GitHub
> <#61 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA4KFB2VQKDVS7GFOHT25RDYIW3VXAVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMJRGY2TC>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
|
In at least one of your calls to add constant component you’re not passing
the parameters correctly. Check them again. It seems is something similar
to your previous issue.
…---------------------------------------------------------------------
D.Sc. Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica
Tel: +55 21 97633 3228
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------
On Sun, 10 Dec 2023 at 19:18 Cybro0 ***@***.***> wrote:
I used constants component in round key function and the resultant round
key is passed in round function. Last time i checked, there's no any error
in round key function and i got correct output. After i done code for round
function (complete code), im getting this error. Can i share you complete
code by any means?
1a.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/a147ae45-fffc-44d6-81da-227d2fa112c6>
1b.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/e6ab51b5-c168-4ac4-8308-4bbcc62b9709>
—
Reply to this email directly, view it on GitHub
<#61 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFBZZSVBAKY2T32XQGZTYIXHFTAVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMJSGA4DI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi you can use savefigs
https://chartio.com/resources/tutorials/how-to-save-a-plot-to-a-file-using-matplotlib/
---------------------------------------------------------------------
D.Sc. Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica
Tel: +55 21 97633 3228
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------
El mié, 13 dic 2023 a las 10:26, Cybro0 ***@***.***>)
escribió:
… speckcomponentanalysis.png (view on web)
<https://github.com/Crypto-TII/claasp/assets/143835501/ee459821-64cb-41a6-9f2b-eff12bd179d2>
How to see the plotted graph of component analysis?
—
Reply to this email directly, view it on GitHub
<#61 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4KFBYCBL7CY7B2JGMMCR3YJFDCZAVCNFSM6AAAAAA4H4CC5KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMZYGQ4TE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hello, I've encountered an issue during the installation process. Could you please advise on how to resolve it? I've followed the steps to execute make local-installation strictly on Ubuntu 20.04. What should I do next to address this problem and successfully install the Claasp tool? I'm eagerly awaiting your response. Thank you. |
Beta Was this translation helpful? Give feedback.











Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I opted for manual installation which I cloned the git, and next command is to run the "configure. sh" file. Then I noticed that it doesn't have execute permission. So I chmod it and after running the script. I got the error as this: "dependencies_script.sh" permission denied. How to resolve this?. or should I go for docker installation?

Beta Was this translation helpful? Give feedback.
All reactions