Lines Matching full:plain
24 uint8_t plain[256]; in test25() local
30 plen = sizeof(plain); in test25()
31 …CHECK(radius_decrypt_mppe_key_attr(plain, &plen, encrypted, sizeof(encrypted), ra, "hogehogefugafu… in test25()
33 CHECK(memcmp(plain, plainkey, 16) == 0); in test25()
38 memset(plain, 0, sizeof(plain)); in test25()
39 plen = sizeof(plain); in test25()
40 CHECK(radius_decrypt_mppe_key_attr(plain, &plen, cipher, clen, ra, "hogehogefugafuga") == 0); in test25()
42 CHECK(memcmp(plain, plainkey, 16) == 0); in test25()
47 CHECK(radius_decrypt_mppe_key_attr(plain, &plen, cipher, 34, ra, "hogehogefugafuga") != 0); in test25()
49 CHECK(radius_decrypt_mppe_key_attr(plain, &plen, cipher, 33, ra, "hogehogefugafuga") != 0); in test25()
57 plen = sizeof(plain); in test25()
58 …CHECK(radius_decrypt_mppe_key_attr(plain, &plen, cipher, clen, radius_get_authenticator_retval(pac… in test25()
60 CHECK(memcmp(plain, plainkey, plen) == 0); in test25()
61 memset(plain, 0, sizeof(plain)); in test25()
62 plen = sizeof(plain); in test25()
63 CHECK(radius_get_mppe_send_key_attr(packet, plain, &plen, "sharedsecret") == 0); in test25()
65 CHECK(memcmp(plain, plainkey, plen) == 0); in test25()
73 plen = sizeof(plain); in test25()
74 …CHECK(radius_decrypt_mppe_key_attr(plain, &plen, cipher, clen, radius_get_authenticator_retval(pac… in test25()
76 CHECK(memcmp(plain, plainkey2, plen) == 0); in test25()
77 memset(plain, 0, sizeof(plain)); in test25()
78 plen = sizeof(plain); in test25()
79 CHECK(radius_get_mppe_recv_key_attr(response, plain, &plen, "sharedsecret") == 0); in test25()
81 CHECK(memcmp(plain, plainkey2, plen) == 0); in test25()