Lines Matching refs:opie_otpkey

38   static unsigned char testout[sizeof(struct opie_otpkey)] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef };
39 struct opie_otpkey key;
52 static unsigned char testin[sizeof(struct opie_otpkey)] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef };
54 struct opie_otpkey testin_aligned;
56 memcpy(&testin_aligned, testin, sizeof(struct opie_otpkey));
69 static unsigned char testin[sizeof(struct opie_otpkey)] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef };
71 struct opie_otpkey testin_aligned;
73 memcpy(&testin_aligned, testin, sizeof(struct opie_otpkey));
87 static unsigned char testout[sizeof(struct opie_otpkey)] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef };
88 struct opie_otpkey key;
128 static unsigned char testin[sizeof(struct opie_otpkey)] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef };
129 static unsigned char testout[sizeof(struct opie_otpkey)] = { 0x9f, 0x40, 0xfb, 0x84, 0xb, 0xf8, 0x7f, 0x4b };
130 struct opie_otpkey testin_aligned;
132 memcpy(&testin_aligned, testin, sizeof(struct opie_otpkey));
136 if (memcmp(&testin_aligned, testout, sizeof(struct opie_otpkey)))
146 struct opie_otpkey testin_aligned;
148 memcpy(&testin_aligned, testin, sizeof(struct opie_otpkey));
152 if (memcmp(&testin_aligned, testout, sizeof(struct opie_otpkey)))
169 static unsigned char testout[sizeof(struct opie_otpkey)] = { 0x2e, 0xd3, 0x5d, 0x74, 0x3e, 0xa9, 0xe9, 0xe8 };
170 struct opie_otpkey opie_otpkey;
172 if (opiekeycrunch(5, &opie_otpkey, testin1, testin2))
175 if (memcmp(&opie_otpkey, testout, sizeof(struct opie_otpkey)))