fix mistake on encrypt function

This commit is contained in:
Tiago Sousa 2024-05-30 15:25:30 +01:00
parent 1ca4ecd476
commit 8f29d75d27
Signed by: tiago
SSH key fingerprint: SHA256:rOmjD81ZIhKdCkFWS9UIKdBi4UByF5x3hRH/0YeXsPI

View file

@ -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)