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. Development
  3. [security] Migrating from library version 2.1 to 2.2

[security] Migrating from library version 2.1 to 2.2

Scheduled Pinned Locked Moved Development
48 Posts 7 Posters 9.2k Views 9 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.
  • AnticimexA Anticimex

    @alowhum right, but if you update your sketches OTA, he can potentially sniff your key OTA as well and then he does not need to enter your house ;)

    alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by
    #39

    @anticimex I have a question - I have two GWs: one with ATSHA204A and one soft signing.
    I have noticed that when doing #define PERSONALIZE_ATSHA204A, AES key is saved to ATSHA204A and EEPROM. Is this correct? In what case I need a combination of HMAC + AES keys? I do not do whitelisting

    AnticimexA 1 Reply Last reply
    0
    • alexsh1A alexsh1

      @anticimex I have a question - I have two GWs: one with ATSHA204A and one soft signing.
      I have noticed that when doing #define PERSONALIZE_ATSHA204A, AES key is saved to ATSHA204A and EEPROM. Is this correct? In what case I need a combination of HMAC + AES keys? I do not do whitelisting

      AnticimexA Offline
      AnticimexA Offline
      Anticimex
      Contest Winner
      wrote on last edited by
      #40

      @alexsh1 AES key is never saved to atsha204. It is for encryption and always stored in eeprom.

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

      alexsh1A 1 Reply Last reply
      0
      • AnticimexA Anticimex

        @alexsh1 AES key is never saved to atsha204. It is for encryption and always stored in eeprom.

        alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by
        #41

        @anticimex Now I got more confused. What keys do I need for atsha204a signing?

        AnticimexA 1 Reply Last reply
        0
        • alexsh1A alexsh1

          @anticimex Now I got more confused. What keys do I need for atsha204a signing?

          AnticimexA Offline
          AnticimexA Offline
          Anticimex
          Contest Winner
          wrote on last edited by
          #42

          @alexsh1 it is pretty clearly documented. HMAC key is used for signing.

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

          alexsh1A 1 Reply Last reply
          0
          • AnticimexA Anticimex

            @alexsh1 it is pretty clearly documented. HMAC key is used for signing.

            alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by alexsh1
            #43

            @anticimex Sorry, I think I need to re-read documentation. HMAC is for atsha204a signing and AES for encryption, right?

            I am in the process of re-personalising now :)

            AnticimexA 1 Reply Last reply
            0
            • alexsh1A alexsh1

              @anticimex Sorry, I think I need to re-read documentation. HMAC is for atsha204a signing and AES for encryption, right?

              I am in the process of re-personalising now :)

              AnticimexA Offline
              AnticimexA Offline
              Anticimex
              Contest Winner
              wrote on last edited by
              #44

              @alexsh1 correct

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

              alexsh1A 1 Reply Last reply
              1
              • AnticimexA Anticimex

                @alexsh1 correct

                alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #45

                @anticimex thank you! I set-up singing some time ago and it was working fine, but now I need to revise all that again.

                AnticimexA 1 Reply Last reply
                0
                • alexsh1A alexsh1

                  @anticimex thank you! I set-up singing some time ago and it was working fine, but now I need to revise all that again.

                  AnticimexA Offline
                  AnticimexA Offline
                  Anticimex
                  Contest Winner
                  wrote on last edited by
                  #46

                  @alexsh1 it is worth mentioning that if you personalize using 2.2.0, you are free to go back to earlier versions without re doing personalization. It is only when going from 2.1 to 2.2 it has to be redone due to the checksum. Of course, be aware that overwriting the checksum will cause signing to fail again.

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

                  alexsh1A 1 Reply Last reply
                  0
                  • AnticimexA Anticimex

                    @alexsh1 it is worth mentioning that if you personalize using 2.2.0, you are free to go back to earlier versions without re doing personalization. It is only when going from 2.1 to 2.2 it has to be redone due to the checksum. Of course, be aware that overwriting the checksum will cause signing to fail again.

                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #47

                    @anticimex said in [security] Migrating from library version 2.1 to 2.2:

                    @alexsh1 Of course, be aware that overwriting the checksum will cause signing to fail again.

                    And what has to be done in this case? Re-personalising both GW and a node?

                    AnticimexA 1 Reply Last reply
                    0
                    • alexsh1A alexsh1

                      @anticimex said in [security] Migrating from library version 2.1 to 2.2:

                      @alexsh1 Of course, be aware that overwriting the checksum will cause signing to fail again.

                      And what has to be done in this case? Re-personalising both GW and a node?

                      AnticimexA Offline
                      AnticimexA Offline
                      Anticimex
                      Contest Winner
                      wrote on last edited by
                      #48

                      @alexsh1 re-personalize the node that lost the checksum. Each node (including gw) has a unique personalization and checksum (possibly). Just because one node looses the checksum or gets a mismatch does not mean any other node has the same problem. Everything is stored in eeprom locally.

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

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      20

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 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