Public key exchange using extensions by endomorphisms and matrices over a Galois field