From 8f29d75d27bb85aef49fe0657ae1f07872a73151 Mon Sep 17 00:00:00 2001 From: tsousa111 Date: Thu, 30 May 2024 15:25:30 +0100 Subject: [PATCH] fix mistake on encrypt function --- Projs/PD2/internal/utils/cryptoUtils/cryptoUtils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projs/PD2/internal/utils/cryptoUtils/cryptoUtils.go b/Projs/PD2/internal/utils/cryptoUtils/cryptoUtils.go index e41fb80..1e64774 100644 --- a/Projs/PD2/internal/utils/cryptoUtils/cryptoUtils.go +++ b/Projs/PD2/internal/utils/cryptoUtils/cryptoUtils.go @@ -201,7 +201,7 @@ func (k *KeyStore) GetClientTLSConfig() *tls.Config { return tlsConfig } -func (k KeyStore) EncryptMessageContent(receiverCert *x509.Certificate, recieverId string, reciever, content []byte) ([]byte, error) { +func (k KeyStore) EncryptMessageContent(receiverCert *x509.Certificate, recieverId string, content []byte) ([]byte, error) { // Digital envolope // Create a random symmetric key dataKey := make([]byte, 32)