Shop OBEX P1 Docs P2 Docs Learn Events
Application: Elliptic Curve Cryptographie (gcc) now with riscvp2 — Parallax Forums

Application: Elliptic Curve Cryptographie (gcc) now with riscvp2

ReinhardReinhard Posts: 489
edited 2023-05-20 13:34 in Propeller 1
Hi Forum
found a ECC Demo for ARM, but run also on P1.

If anyone interesst, I attach the side - project.

Is a little bit slow, but on P2 . . . ;-)

Comments

  • Mark_TMark_T Posts: 1,981
    edited 2015-05-14 06:01
    Ah, that's prompted me to upload some old code I had for this (Prop ASM/Spin) to the Obex:
    http://obex.parallax.com/object/817

    I am not even sure if its working, but I think so. All 5 NIST curves are implemented.
  • @Reinhard said:
    Hi Forum
    found a ECC Demo for ARM, but run also on P1.

    If anyone interesst, I attach the side - project.

    Is a little bit slow, but on P2 . . . ;-)

    After a long time I decided to try the riscvp2 compiler and run this demo on P2.
    I'm excited.

    ECC.zip 61.2K
  • RossHRossH Posts: 5,344

    Needed a small ANSI C tweak for Catalina, but here it is for the P1 and P2.

    Ok on the P2, but very slow on the P1!

    Ross.

  • @RossH
    Thank you for this info. I try it next week, when I am at home.

  • ReinhardReinhard Posts: 489
    edited 2023-05-22 08:34

    On first look I see not many difference in execution speed.
    I use the given binary, compiled with catalina and the second binary, compiled with riscvp2.
    I am not familiar with catalina and get problems at compile time.
    But I think I can solve this, something with an Exportvariabe $LCCDIR. Have a look into the load_catalina.sh script
    So I use the given binary.
    If I have more time, I get closer in catalina.
    -- sorry I know this is actually an item for the P2 thread --

  • RossHRossH Posts: 5,344

    @Reinhard said:
    I am not familiar with catalina and get problems at compile time.
    But I think I can solve this, something with an Exportvariabe $LCCDIR.

    See the file README.Linux. Specifically:

    To use Catalina, open a command window, and execute the folowing command from
    a bash shell (assuming you installed it to /opt/catalina):

    LCCDIR=/opt/catalina
    export LCCDIR
    source $LCCDIR/use_catalina

    This will set up the LCCDIR environment variable and add the Catalina binary
    directories to your path. You may want to add these commands to your profile
    so you don't need to execute them every time you open a command window.

    Ross.

  • @RossH
    Thank you, that was the missing link (-- and now I found it also in the README --)
    Now I am prepared to prog with catalina. :)
    Reinhard

Sign In or Register to comment.