crypto: improve GCM support, code style.