Remove ancient obsolete files under pkcs7.
Make sure BN_sqr can never return a negative value.

PR#3410