Lines Matching full:integrity

18      * Step-1 Generate Integrity Data for the packet, using the implemented API  in TEST()
23 // Hardcoded Session Integrity Key in TEST()
27 auto algoPtr = std::make_unique<cipher::integrity::AlgoSHA1>(sik); in TEST()
31 // Generate the Integrity Data in TEST()
35 cipher::integrity::AlgoSHA1::SHA1_96_AUTHCODE_LENGTH)); in TEST()
38 * Step-2 Generate Integrity data using OpenSSL SHA1 algorithm in TEST()
45 // Generated K1 for the integrity algorithm with the additional key keyed in TEST()
62 FAIL() << "Generating integrity data failed"; in TEST()
65 output.resize(cipher::integrity::AlgoSHA1::SHA1_96_AUTHCODE_LENGTH); in TEST()
68 * Step-3 Check if the integrity data we generated using the implemented API in TEST()
78 * Step-1 Generate Integrity data using OpenSSL SHA1 algorithm in TEST()
84 // Hardcoded Session Integrity Key in TEST()
93 // Generated K1 for the integrity algorithm with the additional key keyed in TEST()
110 FAIL() << "Generating integrity data failed"; in TEST()
113 output.resize(cipher::integrity::AlgoSHA1::SHA1_96_AUTHCODE_LENGTH); in TEST()
116 * Step-2 Insert the integrity data into the packet in TEST()
121 // Point to the integrity data in the packet in TEST()
129 auto algoPtr = std::make_unique<cipher::integrity::AlgoSHA1>(sik); in TEST()
142 * Step-1 Add hardcoded Integrity data to the packet in TEST()
148 std::vector<uint8_t> integrity = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; in TEST() local
150 packet.insert(packet.end(), integrity.begin(), integrity.end()); in TEST()
152 // Point to the integrity data in the packet in TEST()
154 std::advance(integrityIter, integrity.size()); in TEST()
160 // Hardcoded Session Integrity Key in TEST()
164 auto algoPtr = std::make_unique<cipher::integrity::AlgoSHA1>(sik); in TEST()
168 // Verify the Integrity Data in TEST()
179 * Step-1 Generate Integrity Data for the packet, using the implemented API in TEST()
184 // Hardcoded Session Integrity Key in TEST()
189 auto algoPtr = std::make_unique<cipher::integrity::AlgoSHA256>(sik); in TEST()
193 // Generate the Integrity Data in TEST()
198 cipher::integrity::AlgoSHA256::SHA256_128_AUTHCODE_LENGTH)); in TEST()
201 * Step-2 Generate Integrity data using OpenSSL SHA256 algorithm in TEST()
208 // Generated K1 for the integrity algorithm with the additional key keyed in TEST()
225 FAIL() << "Generating integrity data failed"; in TEST()
228 output.resize(cipher::integrity::AlgoSHA256::SHA256_128_AUTHCODE_LENGTH); in TEST()
231 * Step-3 Check if the integrity data we generated using the implemented API in TEST()
241 * Step-1 Generate Integrity data using OpenSSL SHA256 algorithm in TEST()
247 // Hardcoded Session Integrity Key in TEST()
257 // Generated K1 for the integrity algorithm with the additional key keyed in TEST()
274 FAIL() << "Generating integrity data failed"; in TEST()
277 output.resize(cipher::integrity::AlgoSHA256::SHA256_128_AUTHCODE_LENGTH); in TEST()
280 * Step-2 Insert the integrity data into the packet in TEST()
285 // Point to the integrity data in the packet in TEST()
293 auto algoPtr = std::make_unique<cipher::integrity::AlgoSHA256>(sik); in TEST()
306 * Step-1 Add hardcoded Integrity data to the packet in TEST()
312 std::vector<uint8_t> integrity = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; in TEST() local
314 packet.insert(packet.end(), integrity.begin(), integrity.end()); in TEST()
316 // Point to the integrity data in the packet in TEST()
318 std::advance(integrityIter, integrity.size()); in TEST()
324 // Hardcoded Session Integrity Key in TEST()
329 auto algoPtr = std::make_unique<cipher::integrity::AlgoSHA256>(sik); in TEST()
333 // Verify the Integrity Data in TEST()
349 // Hardcoded Session Integrity Key in TEST()
422 // Hardcoded Session Integrity Key in TEST()