An implementation of plain rsa signature with simple fault detection