Use strings instead of contants for signatures

OPENSSL_ALGO_SHA### constants weren't added until PHP 5.4.8, but
sometime during 5.3.x openssl_sign started accepting strings for
algorithm types. Use those strings.