linear algebra used in cryptography