Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cosnicolaou committed Oct 26, 2023
1 parent d96af27 commit a0651ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
9 changes: 5 additions & 4 deletions v23/security/digest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ const (
MHcCAQEEIAYkd29NwBnAkhzARDwx+KhOiJLMDSAxf8E67Xug3SpIoAoGCCqGSM49
AwEHoUQDQgAEIHvCWOkEjvGQYwdTzASIDuYSByJ9qYVZ1Hw2ecbIqu2AS5Ms5EN/
NEcea36rZAOVnVyaU5GgPpYfgoLeCOnIRQ==
-----END EC PRIVATE KEY-----`
-----END EC PRIVATE KEY-----` // #nosec G101

ed25519KeyPEM = `-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIBxrp6nd9uI9qMPqn9EiZEMu/8AMSArRN3gJscvJnJuE
-----END PRIVATE KEY-----
`
` // #nosec G101

rsa2048PEM = `-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA2CjRtb1yRuGjeHTLe37/rjDZhHGaAAg8DcV85Hr5oJDgrez8
+RCEJy6eoYqv+Z1yD0Tg41fI3hoYzfes1xUV71ejHEcaeTzWrqJSFve9QM0Y0Mii
Expand All @@ -54,7 +55,7 @@ gHYIcHfTeZEMq3EXDBfoifN4JWXNbe8G4cDqCHoAm1wBmirdi05HPPlJq0tQ+avP
4RXend0CgYAtPrwmvJ+JZ5TKJsj0y176KwFR7TmsG6VZGd6RHcCP/yjGZowktSOt
GHep8kwXNgB4u+uZsKlHmNOjWpwwruMt+LmKD7IlbvCKlnQfIw6hmTYhp3tzCR8r
LUv800pKz/E490ugsQkHPd49EzwylxQEFliG7t4FwlMt8erdP3k/7A==
-----END RSA PRIVATE KEY-----`
-----END RSA PRIVATE KEY-----` // #nosec G101

rsa4096PEM = `-----BEGIN RSA PRIVATE KEY-----
MIIJKQIBAAKCAgEAw4HC1OivsinI+GPx5v950joDkh0bL8mrptyGymXe977QwvOB
Expand Down Expand Up @@ -107,7 +108,7 @@ HG/aCuC+jFWRN2CdzO4d+d/6wPtEhPLfkI6kLa97PBN/xCzc09Phspo1ojMdBfOv
3QSlcGjiKx8j4PJOA2i/Fs9KgAPVMLhlCFp1gRKYM7/08s/3EiZbFIeVcGmJGLSx
L/2aHj2343RcjS2KCH4DVisXuiB4CQKOiGz8bbKRTGyEfW39gEPYAyD3pREM
-----END RSA PRIVATE KEY-----
`
` // #nosec G101

rsa2048Sig = `QTsG6Hm7QckWjGvhA/HiKOhb5FGnH530ZJOnWAAkHXhS97TDC+aSVEhGS9lLKPALkf4fMODEo9PYufJQjOeVhBf8rgASIQJUb0qxLuigC5Gyvg+GiNfQhAOYvrQJjJeM0wGIFvr8JmMlbkj4+QdrtdQqzAtUq3jVMeaOvslIGHgoAqxoCcxCuKDjey21fYjmy9G7AWLsZVb4MCfCSwDGdhP3agtIuLYB2snkLKIiFAh4FJ0PdT1GPRWDkiXxxc3JWTdPHwu/AXS0Ibjk3RXQaVcRjkZwjPIr6dAN0pGp8MYkgMYjXHvccGPWDmZNWamwz/vCR1D6IUbYWFnI/WHgrg`

Expand Down
3 changes: 2 additions & 1 deletion v23/vdl/value_encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ func TestEncodeToValueOptional(t *testing.T) {
}

// optional version.
if err := Write(enc, &tc.input); err != nil {
tmp := tc.input
if err := Write(enc, &tmp); err != nil {
t.Fatalf("val %v: %v", tc.input, err)
}
if got, want := value.String(), "?"+typeStr+"("+tc.output+")"; got != want {
Expand Down
6 changes: 4 additions & 2 deletions v23/vom/raw_bytes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ func TestEncodeFromRawBytes(t *testing.T) {
t.Errorf("%s: Encode goValue failed: %v", test.name, err)
continue
}
fullBytesFromRaw, err := vom.Encode(&test.rawBytes)
tmp := test.rawBytes
fullBytesFromRaw, err := vom.Encode(&tmp)
if err != nil {
t.Errorf("%s: Encode RawBytes failed: %v", test.name, err)
continue
Expand Down Expand Up @@ -300,7 +301,8 @@ func TestWrappedRawBytes(t *testing.T) {
t.Errorf("%s: Decode failed: %v", test.name, err)
continue
}
if got, want := any.X, &test.rawBytes; !reflect.DeepEqual(got, want) {
tmp := test.rawBytes
if got, want := any.X, &tmp; !reflect.DeepEqual(got, want) {
t.Errorf("%s\nGOT %v\nWANT %v", test.name, got, want)
}
}
Expand Down

0 comments on commit a0651ec

Please sign in to comment.