Skip to content
Snippets Groups Projects
Commit 277e6f7a authored by baskaran's avatar baskaran Committed by Tink Team
Browse files

Bazel import fixes

PiperOrigin-RevId: 232551792
GitOrigin-RevId: 1f5806e48de2e4e94608fc540971b1fbfa36d39d
parent 49f47c9e
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,8 @@ go_test(
"hkdf_test.go"
],
data = ["@wycheproof//testvectors:all",],
embed = [":go_default_library",],
deps = [
":go_default_library",
"//go/subtle/random:go_default_library",
"@org_golang_x_crypto//hkdf:go_default_library",
],
......
......@@ -25,6 +25,7 @@ import (
"fmt"
"math/big"
"os"
"reflect"
"strings"
"testing"
)
......@@ -601,12 +602,13 @@ func TestVectors(t *testing.T) {
default:
errPub = errors.New("invalid schema")
}
if errPub != nil && test.Result == "invalid" {
if errPub != nil && test.Result != "valid" {
t.Logf("test case %s failing as expected for invalid result : %v", tcID, err)
continue
}
if pubKey == nil {
if reflect.DeepEqual(&ECPublicKey{}, pubKey) {
t.Logf("error decoding public key in test case %s: %v", tcID, err)
// Some test vectors have incorrect public key encoding which
// leads to runtime errors. For more details please see the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment