Menu

#225 Issue in Doxygen comment for vos_sc32()

1.4.2.0
closed
1815 (1)
2019-06-13
2018-11-26
No

The Doxygen info for function vos_sc32() in vos_utils.h contains the following line:

Note: Returned CRC is inverted

I believe that this is a typo, due to a cut-and-paste from vos_crc32() (in vos_utils.c).
There is no evidence of bit inversion in the source code of vos_sc32() (bit inversion is evident in vos_crc32() instead).

Furthermore: IEC61375-2-3 - Figure B.4 states that:

CRC of the string "123456789" is 0x1697d06a

I expect to obtain this value using vos_sc32() but I cannot.
Does anyone knows which seed should be used to get this value?
I tried supplying 0x00000000 and 0xffffffff but always obtain other values.

Discussion

  • Armin-Hagen Weiss

    • labels: --> 1815
    • status: open --> closed
    • assigned_to: Armin-Hagen Weiss
    • Milestone: 1.4.1.0 --> 2.0.0.0
     
  • Armin-Hagen Weiss

    Comments in header file corrected. Standard needs to be corrected regarding the expected value for "123456789". Calculation is acc. IEC61784-3-3.

     
  • Armin-Hagen Weiss

    • Milestone: 2.0.0.0 --> 1.4.2.0
     

Log in to post a comment.

MongoDB Logo MongoDB