added signature_length() function, returning signature length required by verify_signature
changed signature_length() to SIGNATURE_LENGTH
base64 sig length now accurate