Reverse engineered TETRA cryptographic primitives