Substring search algorithm optimized for hardware acceleration
Abstract
Techniques are provided for generating a hash value for searching for substrings in a data stream without reading more than one element (e.g. one byte) at a time. According to one technique, a before a next element is added to an old hash value, the old hash value is circularly shifted one or more bits. The first original element is shifted a number of bits and XOR'ed against the old hash value. The next element is added to the old hash value. In one embodiment, an entry value is retrieved for each element from an index table and the XOR and shift operations are performed on the entry values. According to another technique, each Linear Feedback Shift Register (LFSR) of a plurality of LFSRs read in one element at a time beginning at different offsets. Each LFSR uses the same state machine. The result of reading a number of elements into an LFSR is used as the hash value.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A circuit, comprising: a byte shift register array comprising a hash key output and a plurality of linear feedback shift registers (LFSRs), wherein each LFSR of the plurality of LFSRs implements a same finite state machine and is initialized to an initial state; a memory having a hash key input coupled to the hash key output and a match output, and the memory comprising a plurality of stored digital signatures each keyed to a particular hash key; and logic coupled to the byte shift register array which, when executed, is operable for performing the steps of: reading a subset of input elements,
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (3)
- "The Rabin-Karp Algorithm" downloaded Oct. 18, 2006: http://www.eecs.harvard.edu/~ellard/Q-97/HTML/root/node43.html, 4 pages.
- "The Rabin-Karp Algorithm" downloaded Oct. 18, 2006: http://www.eecs.harvard.edu/˜ellard/Q-97/HTML/root/node43.html, 4 pages.
- Erdogan, Ozgun et al., "Hash-AV: Fast Virus Signature Scanning by Cache-Resident Filters" Department of Computer Science, Stanford University, 9 pages.