Lines Matching refs:kb
26 struct vb2_keyblock *kb; in keyblock_tests() local
81 TEST_SUCC(vb2_keyblock_create(&kb, pubk2048, prik, 1, 0x1234, NULL), in keyblock_tests()
83 TEST_PTR_NEQ(kb, NULL, " kb_ptr"); in keyblock_tests()
84 TEST_SUCC(vb2_verify_keyblock(kb, kb->c.total_size, pubk4096, &wb), in keyblock_tests()
86 TEST_EQ(strcmp(vb2_common_desc(kb), pubk2048->desc), 0, " desc"); in keyblock_tests()
87 TEST_EQ(kb->flags, 0x1234, " flags"); in keyblock_tests()
89 pak = (struct vb2_packed_key *)((uint8_t *)kb + kb->key_offset); in keyblock_tests()
91 free(kb); in keyblock_tests()
96 TEST_SUCC(vb2_keyblock_create(&kb, pubk4096, prik, 2, 0, test_desc), in keyblock_tests()
98 TEST_SUCC(vb2_verify_keyblock(kb, kb->c.total_size, pubk8192, &wb), in keyblock_tests()
100 TEST_SUCC(vb2_verify_keyblock(kb, kb->c.total_size, &pubkhash, &wb), in keyblock_tests()
102 TEST_EQ(strcmp(vb2_common_desc(kb), test_desc), 0, " desc"); in keyblock_tests()
103 TEST_EQ(kb->flags, 0, " flags"); in keyblock_tests()
104 free(kb); in keyblock_tests()
109 TEST_EQ(vb2_keyblock_create(&kb, pubk4096, prik, 1, 0, NULL), in keyblock_tests()
111 TEST_PTR_EQ(kb, NULL, " kb_ptr"); in keyblock_tests()
115 TEST_EQ(vb2_keyblock_create(&kb, pubk4096, prik, 1, 0, NULL), in keyblock_tests()