Sorry, seeing now that I've linked the wrong Golang library, here it is: https://pkg.go.dev/golang.org/x/crypto/chacha20poly1305
On Sunday, November 5, 2023 at 10:10:44 AM UTC+1 Lucas Marchetti wrote: > 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 cryptopp-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/65021204-cb99-492b-beb4-9c25cefaf7ben%40googlegroups.com.