• Home
  • Raw
  • Download

Lines Matching refs:TEST_EQ

47   TEST_EQ(RSAProcessedKeySize(0, &u), 1, "Processed key size 0");  in TestUtils()
48 TEST_EQ(u, RSA1024NUMBYTES * 2 + sizeof(uint32_t) * 2, in TestUtils()
50 TEST_EQ(RSAProcessedKeySize(3, &u), 1, "Processed key size 3"); in TestUtils()
51 TEST_EQ(u, RSA2048NUMBYTES * 2 + sizeof(uint32_t) * 2, in TestUtils()
53 TEST_EQ(RSAProcessedKeySize(7, &u), 1, "Processed key size 7"); in TestUtils()
54 TEST_EQ(u, RSA4096NUMBYTES * 2 + sizeof(uint32_t) * 2, in TestUtils()
56 TEST_EQ(RSAProcessedKeySize(11, &u), 1, "Processed key size 11"); in TestUtils()
57 TEST_EQ(u, RSA8192NUMBYTES * 2 + sizeof(uint32_t) * 2, in TestUtils()
59 TEST_EQ(RSAProcessedKeySize(kNumAlgorithms, &u), 0, in TestUtils()
64 TEST_EQ(key == NULL, 0, "New key not null"); in TestUtils()
68 TEST_EQ(key->len, 0, "New key len"); in TestUtils()
69 TEST_EQ(key->algorithm, kNumAlgorithms, "New key no algorithm"); in TestUtils()
99 TEST_EQ(key->len, *buf_key_len, "RSAPublicKeyFromBuf() len"); in TestKeyFromBuffer()
100 TEST_EQ(key->n0inv, 0xF00D2345, "RSAPublicKeyFromBuf() n0inv"); in TestKeyFromBuffer()
102 TEST_EQ(((uint8_t*)key->n)[0], 100, "RSAPublicKeyFromBuf() n start"); in TestKeyFromBuffer()
103 TEST_EQ(((uint8_t*)key->n)[key_len - 1], 101, in TestKeyFromBuffer()
106 TEST_EQ(((uint8_t*)key->rr)[0], 120, "RSAPublicKeyFromBuf() rr start"); in TestKeyFromBuffer()
107 TEST_EQ(((uint8_t*)key->rr)[key_len - 1], 121, in TestKeyFromBuffer()
142 TEST_EQ(RSAVerifyBinary_f(NULL, &key, buf, sizeof(buf), sig, 0), in TestVerifyBinary()
145 TEST_EQ(RSAVerifyBinary_f(keybuf, NULL, buf, sizeof(buf), sig, 0), in TestVerifyBinary()
150 TEST_EQ(RSAVerifyBinary_f(NULL, &key, buf, sizeof(buf), sig, kNumAlgorithms), in TestVerifyBinary()
154 TEST_EQ(RSAVerifyBinary_f(NULL, NULL, buf, sizeof(buf), sig, kNumAlgorithms), in TestVerifyBinary()
158 TEST_EQ(RSAVerifyBinary_f(keybuf, NULL, buf, sizeof(buf), sig, 3), in TestVerifyBinary()
164 TEST_EQ(RSAVerifyBinary_f(NULL, &key, buf, sizeof(buf), sig, 0), in TestVerifyBinary()
180 TEST_EQ(RSAVerifyBinaryWithDigest_f(NULL, &key, digest, sig, 0), in TestVerifyBinaryWithDigest()
183 TEST_EQ(RSAVerifyBinaryWithDigest_f(keybuf, NULL, digest, sig, 0), in TestVerifyBinaryWithDigest()
188 TEST_EQ(RSAVerifyBinaryWithDigest_f(NULL, &key, digest, sig, kNumAlgorithms), in TestVerifyBinaryWithDigest()
192 TEST_EQ(RSAVerifyBinaryWithDigest_f(NULL, NULL, digest, sig, kNumAlgorithms), in TestVerifyBinaryWithDigest()
196 TEST_EQ(RSAVerifyBinaryWithDigest_f(keybuf, NULL, digest, sig, 3), in TestVerifyBinaryWithDigest()
202 TEST_EQ(RSAVerifyBinaryWithDigest_f(NULL, &key, digest, sig, 0), in TestVerifyBinaryWithDigest()