aes and rsa with cpp and java