On some mathematical aspects of security notions and constructions of public key cryptosystems and secret sharing schemes