Based on rsa digital signature c++ implementation