If there is an algorithm rollover and two keys of different algorithm share the same keytags, then there is a possibility that if we check that a key matches a specific state, we are checking against the wrong key. This has been fixed by not only checking for matching key tag but also key algorithm.
Closes #4878
Merge branch '4878-fix-algorithm-rollover-keytag-conflict-bug' into 'main'
Closes #4878
See merge request isc-projects/bind9!9381