Change method signature of getSignature to operate on byte[]