Functions for hybrid RSA/AES encryption