Help with crypto module - crypto_one_time method - (ArgumentError) argument error Issue

Thank you @Niranjan , update OTP solved the issue.
On that note:
I have a symmetric key that i generate using aes_256_key= ExCrypto.generate_aes_key(:aes_256,:bytes), I use ExPublicKey.encrypt_public(aes_256_key, rsa_pub_key) to encrypt the result. However i need to return the result within a maximum byte size of 256,but each time, it exceeds this size.
Any ideas how i can attend to this?

Thanks!