mirror of
https://codeberg.org/SiB64/bch4369.git
synced 2026-05-01 16:04:25 +02:00
Compare commits
2 commits
df2bd55855
...
eebd4bb430
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eebd4bb430 | ||
|
|
81967b6ad2 |
2 changed files with 8 additions and 1 deletions
7
LICENSE
Normal file
7
LICENSE
Normal 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.
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue