fix mistake on encrypt function
This commit is contained in:
parent
1ca4ecd476
commit
8f29d75d27
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ func (k *KeyStore) GetClientTLSConfig() *tls.Config {
|
||||||
return tlsConfig
|
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
|
// Digital envolope
|
||||||
// Create a random symmetric key
|
// Create a random symmetric key
|
||||||
dataKey := make([]byte, 32)
|
dataKey := make([]byte, 32)
|
||||||
|
|
Loading…
Reference in a new issue