Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. [Solved] Soft signing with whitelist on nodes

[Solved] Soft signing with whitelist on nodes

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 1.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    carlierd
    wrote on last edited by carlierd
    #1

    Hello,

    This is what I want to do:

    • soft signing between a serial gateway and different nodes
    • serial gateway accept data from any nodes (no whitelist on it)
    • nodes only accept data from the serial gateway using whitelist

    The code in the gateway:

    uint8_t soft_serial[SHA204_SERIAL_SZ] = {0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA};
    MySigningAtsha204Soft signer(true, 0, NULL, soft_serial);
    MyHwATMega328 hw;
    MyTransportRFM69 transport;
    MySensor gw(transport, hw, signer, RADIO_RX_LED_PIN, RADIO_TX_LED_PIN, RADIO_ERROR_LED_PIN);
    

    The code in the node:

    whitelist_entry_t node_whitelist[] = {
      { .nodeId = 0,
        .serial = {0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA} }};
    uint8_t soft_serial[SHA204_SERIAL_SZ] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09};
    MySigningAtsha204Soft signer(true, 1, node_whitelist, soft_serial);
    MyHwATMega328 hw;
    MyTransportRFM69 transport;
    MySensor gw(transport, hw, signer);
    

    In MyConfig.h I enabled MY_SIGNING_FEATURE and MY_SECURE_NODE_WHITELISTING.

    Do you think it's correct ?

    If I enable DEBUG_SIGNINGin MySigningAtsha204Soft.cpp, on reception of a message I got a SNOKand a W?. Why ?

    David.

    A 1 Reply Last reply
    0
    • C carlierd

      Hello,

      This is what I want to do:

      • soft signing between a serial gateway and different nodes
      • serial gateway accept data from any nodes (no whitelist on it)
      • nodes only accept data from the serial gateway using whitelist

      The code in the gateway:

      uint8_t soft_serial[SHA204_SERIAL_SZ] = {0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA};
      MySigningAtsha204Soft signer(true, 0, NULL, soft_serial);
      MyHwATMega328 hw;
      MyTransportRFM69 transport;
      MySensor gw(transport, hw, signer, RADIO_RX_LED_PIN, RADIO_TX_LED_PIN, RADIO_ERROR_LED_PIN);
      

      The code in the node:

      whitelist_entry_t node_whitelist[] = {
        { .nodeId = 0,
          .serial = {0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA} }};
      uint8_t soft_serial[SHA204_SERIAL_SZ] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09};
      MySigningAtsha204Soft signer(true, 1, node_whitelist, soft_serial);
      MyHwATMega328 hw;
      MyTransportRFM69 transport;
      MySensor gw(transport, hw, signer);
      

      In MyConfig.h I enabled MY_SIGNING_FEATURE and MY_SECURE_NODE_WHITELISTING.

      Do you think it's correct ?

      If I enable DEBUG_SIGNINGin MySigningAtsha204Soft.cpp, on reception of a message I got a SNOKand a W?. Why ?

      David.

      A Offline
      A Offline
      Anticimex
      Contest Winner
      wrote on last edited by
      #2

      @carlierd Is this a duplicate of this thread? http://forum.mysensors.org/topic/2491/verify-fail-when-enabling-whitelist-in-signing-function
      Lets continue in that one if so.

      Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

      1 Reply Last reply
      0
      • C Offline
        C Offline
        carlierd
        wrote on last edited by
        #3

        Hello !

        It's not exactly the same thing. In this post I described what I want to do and how I implemented it. It's a global vision of what I understood or not correctly understood ;)

        We can continue on the previous post.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Anticimex
          Contest Winner
          wrote on last edited by
          #4

          Well, then I do believe your vision is described in my signing thread ;)
          But let's focus on the problem you describe in the other thread.

          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          9

          Online

          12.0k

          Users

          11.2k

          Topics

          113.4k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular