Compare commits

...

2 commits

Author SHA1 Message Date
Stephan I. Böttcher
eebd4bb430 add LICENSE 2026-02-09 10:14:26 +01:00
Stephan I. Böttcher
81967b6ad2 README typo 2026-02-09 10:12:23 +01:00
2 changed files with 8 additions and 1 deletions

7
LICENSE Normal file
View file

@ -0,0 +1,7 @@
Copyright (c) 2026 Stephan I. Böttcher <codeberg@psjt.org>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -19,4 +19,4 @@ The python implementation can encode and check the parity without module galois.
## Salt
The default `.salt` is `b'\x01'`, i.e., the message length is 4097 bits with the leading bit set. A codeword off all zeros will see a correctable error in the salt. A real message of all zeros has nontrival parity. The python code can handle salts up to 18 bytes, 144 bits. The AVR could support longer salts by replacing `bch5369_init` by a `memcpy`. I do not know how usefull a salt is. I though is might be good to have nontrivial parity for an all zeros message.
The default `.salt` is `b'\x01'`, i.e., the message length is 4097 bits with the leading bit set. A codeword off all zeros will see a correctable error in the salt. A real message of all zeros has nontrival parity. The python code can handle salts up to 18 bytes, 144 bits. The AVR could support longer salts by replacing `bch5369_init` by a `memcpy`. I do not know how usefull a salt is. I though it might be good to have nontrivial parity for an all zeros message.