GO-2022-0888: Crash due to malformed relay protocol message in github.com/syncthing/syncthing
package
Version:
v0.10.18
Opens a new window with list of versions in this module.
Published: Jan 6, 2015
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package luhn generates and validates Luhn mod N check digits.
An alphabet is a string of N characters, representing the digits of a given
base N.
var (
Base32 Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"
)
Generate returns a check digit for the string s, which should be composed
of characters from the Alphabet a.
Validate returns true if the last character of the string s is correct, for
a string s composed of characters in the alphabet a.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.