You are reading a single comment by @d0773d and its replies. Click here to read the full conversation.
  • @Gordon yup, AES128_CBC_Encrypt_Buffer is fiddling with the data inside of in, errr. And I wonder why that is.....

    {"PH":["Result",5.5],"EC":["Result",700]­,"ResTemp":["Result",137.5]}
    int:
    123,34,80,72,34,58,91,34,82,101,115,117,­108,116,34,44,53,46,53,93,44,34,69,67,34­,58,91,34,82,101,115,117,108,116,34,44,5­5,48,48,93,44,34,82,101,115,84,101,109,1­12,34,58,91,34,82,101,115,117,108,116,34­,44,49,51,55,46,53,93,125,0,0,0,0,0,0,0,­0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,­0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,­0,0,0,0,0,0,0,0,0,0,0,0,0,
    int as hex:
    7b,22,50,48,22,3a,5b,22,52,65,73,75,6c,7­4,22,2c,35,2e,35,5d,2c,22,45,43,22,3a,5b­,22,52,65,73,75,6c,74,22,2c,37,30,30,5d,­2c,22,52,65,73,54,65,6d,70,22,3a,5b,22,5­2,65,73,75,6c,74,22,2c,31,33,37,2e,35,5d­,7d,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,­0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,­0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,­0,0,
    int as char:
    {,",P,H,",:,[,",R,e,s,u,l,t,",,,5,.,5,],­,,",E,C,",:,[,",R,e,s,u,l,t,",,,7,0,0,],­,,",R,e,s,T,e,m,p,",:,[,",R,e,s,u,l,t,",­,,1,3,7,.,5,],},,,,,,,,,,,,,,,,,,,,,,,,,­,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

    And I don't have the slightest idea why AES_128_CBC_encrypt_Buffer is doing that.....

  • And I don't have the slightest idea why AES_128_CBC_encrypt_Buffer is doing that.....

    Because in line 512 XorWithIv modifies it? Maybe that should be

        BlockCopy(output, input);
        XorWithIv(output);
    
About

Avatar for d0773d @d0773d started