Any person is guilty of a felony, punishable by imprisonment pursuant to subdivision (h) of Section 1170 of the Penal Code for two, three, or four years who, before or during an election:
(a)
Tampers with, interferes with, or attempts to interfere with, the correct operation of, or willfully damages in order to prevent the use of, any voting machine, voting device, voting system, vote tabulating device, or ballot tally software program source codes.
(b)
Interferes or attempts to interfere with the secrecy of voting or ballot tally software program source codes.
(c)
Knowingly,
and without authorization, makes or has in his or her possession a key to a voting machine that has been adopted and will be used in elections in this state.
(d)
Willfully substitutes or attempts to substitute forged or counterfeit ballot tally software program source codes.