Algorithm on a symmetric-key digital signature scheme