Expected behavior
The AES key decrypts as expected and program flow continues normally.
Additional context
As far as I am concerned, the error is inside the client.
The server properly loads the public key from the client and encrypts the AES key before sending it back, base64 encoded.
The client successfully receives and decodes the base64 encoded key, but fails to decrypt the data (using RSA OAEP and its previously generated private key).
Describe the bug On the client, trying to decrypt the RSA-encrypted AES key throws an error:
To Reproduce Steps to reproduce the behavior:
Expected behavior The AES key decrypts as expected and program flow continues normally.
Additional context As far as I am concerned, the error is inside the client. The server properly loads the public key from the client and encrypts the AES key before sending it back, base64 encoded. The client successfully receives and decodes the base64 encoded key, but fails to decrypt the data (using RSA OAEP and its previously generated private key).