I've just made a test encrypting the string "Hello World!" with both client and server functions and these are the results.
[image: Screenshot 2023-11-05 100312.png] Both green-highlighted bytes corresponds to the input string but, as you can see, there is a different padding that I'm 100% sure is the source of the problem. On Saturday, November 4, 2023 at 7:39:31 PM UTC+1 Lucas Marchetti wrote: > Good evening. > > I'm building a client-server application and I want to implement a > XChaCha20 communication over TCP after performing key exchange. > > What I'm issuing is a bad decryption output like the one shown in the pic. > > [image: Screenshot 2023-11-04 193625.png] > > I'm currently using crypto++ 8.9 in the client-side and > https://pkg.go.dev/golang.org/x/crypto/chacha20 in the server-side. > > Is that something related to sealing or authentication implemented in the > Golang library? > > Functions that I'm using: > > [image: Screenshot 2023-11-04 193751.png] > > [image: Screenshot 2023-11-04 193832.png] > > Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/c1e4b8a1-7735-43a3-9a77-66b1ce7fadc8n%40googlegroups.com.
