Home | History | Annotate | Download | only in tests

Lines Matching full:key_len

87     uint32_t key_len = RSA1024NUMBYTES << i;
89 *buf_key_len = key_len / sizeof(uint32_t);
92 buf[8 + key_len - 1] = 101;
93 buf[8 + key_len] = 120;
94 buf[8 + key_len * 2 - 1] = 121;
97 key = RSAPublicKeyFromBuf(buf, 8 + key_len * 2);
103 TEST_EQ(((uint8_t*)key->n)[key_len - 1], 101,
107 TEST_EQ(((uint8_t*)key->rr)[key_len - 1], 121,
112 TEST_PTR_EQ(RSAPublicKeyFromBuf(buf, 8 + key_len * 2 - 1), NULL,
114 TEST_PTR_EQ(RSAPublicKeyFromBuf(buf, 8 + key_len * 2 + 1), NULL,
118 *buf_key_len = key_len / sizeof(uint32_t) + 1;
119 TEST_PTR_EQ(RSAPublicKeyFromBuf(buf, 8 + key_len * 2 + 1), NULL,
124 TEST_PTR_EQ(RSAPublicKeyFromBuf(buf, 8 + key_len * 2 + 1), NULL,