I would like to know whether the elements of the key matrix are integers from 0 to 9 or it can be any positive or negative integers. If so what is the range of…