Lines Matching refs:rc
66 int rc; in ZTEST() local
75 rc = base64_encode(buffer, sizeof(buffer), &len, src, 64); in ZTEST()
76 zassert_equal(rc, 0, "Encode test return value"); in ZTEST()
77 rc = memcmp(base64_test_enc, buffer, 88); in ZTEST()
78 zassert_equal(rc, 0, "Encode test comparison"); in ZTEST()
83 rc = base64_decode(buffer, sizeof(buffer), &len, src, 88); in ZTEST()
84 zassert_equal(rc, 0, "Decode test return value"); in ZTEST()
85 rc = memcmp(base64_test_dec, buffer, 64); in ZTEST()
86 zassert_equal(rc, 0, "Decode test comparison"); in ZTEST()
89 rc = base64_encode(buffer, sizeof(buffer), &len, src, 0); in ZTEST()
90 zassert_equal(rc, 0, "Error: slen: encode test return value"); in ZTEST()
94 rc = base64_encode(buffer, sizeof(buffer), &len, src, slen); in ZTEST()
95 zassert_equal(rc, -ENOMEM, "Error: n: encode test return value"); in ZTEST()
101 rc = base64_encode(buffer, sizeof(buffer), &len, src, slen); in ZTEST()
102 zassert_equal(rc, -ENOMEM, "Error: dlen: encode test return value"); in ZTEST()
107 rc = base64_decode(buffer, sizeof(buffer), &len, src, 88); in ZTEST()
108 zassert_equal(rc, -EINVAL, "Error: space: decode test return value"); in ZTEST()
111 rc = base64_decode(buffer, sizeof(buffer), &len, src, 88); in ZTEST()
112 zassert_equal(rc, -EINVAL, "Error: dec_map: decode test return value"); in ZTEST()
115 rc = base64_decode(buffer, sizeof(buffer), &len, src, 88); in ZTEST()
116 zassert_equal(rc, -EINVAL, "Error: equal: decode test return value"); in ZTEST()
119 rc = base64_decode(buffer, sizeof(buffer), &len, src, 88); in ZTEST()
120 zassert_equal(rc, 0, "return, newline: decode test return value"); in ZTEST()
123 rc = base64_decode(buffer, sizeof(buffer), &len, src, 0); in ZTEST()
124 zassert_equal(rc, 0, "Error: n: decode test return value"); in ZTEST()
128 rc = base64_decode(NULL, -1, &len, src, 88); in ZTEST()
129 zassert_equal(rc, -ENOMEM, "Error: dst NULL: decode test return value"); in ZTEST()