We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb7407 commit f83b8dfCopy full SHA for f83b8df
auth/peer_test.go
@@ -1,6 +1,7 @@
1
package auth
2
3
import (
4
+ "bytes"
5
"context"
6
"encoding/base64"
7
"fmt"
@@ -451,10 +452,7 @@ func TestPeerCertificateExchange(t *testing.T) {
451
452
}
453
454
// Generate a symmetric key for field encryption
- fieldSymmetricKeyBytes := make([]byte, 32)
455
- for i := range fieldSymmetricKeyBytes {
456
- fieldSymmetricKeyBytes[i] = byte(i) // Deterministic for testing
457
- }
+ fieldSymmetricKeyBytes := bytes.Repeat([]byte{1}, 32)
458
fieldSymmetricKey := ec.NewSymmetricKey(fieldSymmetricKeyBytes)
459
460
// Encrypt the field value
0 commit comments