Home | History | Annotate | Download | only in testprof

Lines Matching full:sizeof

28    LTC_SET_ASN1(list, 0, LTC_ASN1_OCTET_STRING,  oct_str, sizeof(oct_str));
29 LTC_SET_ASN1(list, 1, LTC_ASN1_BIT_STRING, bin_str, sizeof(bin_str));
33 outlen = sizeof(outbuf);
41 LTC_SET_ASN1(list, 0, LTC_ASN1_BIT_STRING, strs[1], sizeof(strs[1]));
43 LTC_SET_ASN1(list, 2, LTC_ASN1_OCTET_STRING, strs[0], sizeof(strs[0]));
51 if (memcmp(strs[0], oct_str, sizeof(oct_str))) {
56 if (memcmp(strs[1], bin_str, sizeof(bin_str))) {
81 outlen = sizeof(outbuf);
88 LTC_SET_ASN1(list, x, LTC_ASN1_PRINTABLE_STRING, strs[x], sizeof(strs[x]) - 1);
90 XMEMSET(strs, 0, sizeof(strs));
171 encode_buf_len = sizeof(encode_buf);
298 if (memcmp(l->data, &utctime, sizeof(utctime))) {
332 if (l->size != sizeof(oct_str) || memcmp(oct_str, l->data, l->size)) {
352 if (l->size != sizeof(bit_str) || memcmp(bit_str, l->data, l->size)) {
386 if (l->size != sizeof(oid_str)/sizeof(oid_str[0]) || memcmp(oid_str, l->data, l->size*sizeof(oid_str[0]))) {
462 for (x = 0; x < sizeof(bitbuf); x++) { bitbuf[x] = x & 1; }
463 for (x = 0; x < sizeof(octetbuf); x++) { octetbuf[x] = x; }
464 for (x = 0; x < sizeof(ia5buf); x++) { ia5buf[x] = 'a'; }
465 for (x = 0; x < sizeof(printbuf); x++) { printbuf[x] = 'a'; }
467 for (x = 0; x < sizeof(oidbuf)/sizeof(oidbuf[0]); x++) { oidbuf[x] = x + 1; }
472 LTC_SET_ASN1(types, 0, LTC_ASN1_PRINTABLE_STRING, printbuf, sizeof(printbuf));
473 LTC_SET_ASN1(types, 1, LTC_ASN1_BIT_STRING, bitbuf, sizeof(bitbuf));
474 LTC_SET_ASN1(types, 2, LTC_ASN1_OCTET_STRING, octetbuf, sizeof(octetbuf));
475 LTC_SET_ASN1(types, 3, LTC_ASN1_IA5_STRING, ia5buf, sizeof(ia5buf));
481 LTC_SET_ASN1(types, 5, LTC_ASN1_OBJECT_IDENTIFIER, oidbuf, sizeof(oidbuf)/sizeof(oidbuf[0]));
488 outlen = sizeof(outbuf);
556 x = sizeof(buf[0]);
580 x = sizeof(buf[0]);
584 y = sizeof(buf[1]);
613 x = sizeof(buf[1]);
621 y = sizeof(buf[2]);
632 x = sizeof(buf[1]);
639 y = sizeof(buf[2]);
648 x = sizeof(buf[0]);
649 DO(der_encode_object_identifier((unsigned long*)rsa_oid, sizeof(rsa_oid)/sizeof(rsa_oid[0]), buf[0], &x));
650 if (x != sizeof(rsa_oid_der) || memcmp(rsa_oid_der, buf[0], x)) {
657 y = sizeof(oid[0])/sizeof(oid[0][0]);
659 if (y != sizeof(rsa_oid)/sizeof(rsa_oid[0]) || memcmp(rsa_oid, oid[0], sizeof(rsa_oid))) {
671 z = 2 + (z % ((sizeof(oid[0])/sizeof(oid[0][0])) - 2));
683 x = sizeof(buf[0]);
693 y = sizeof(oid[0])/sizeof(oid[0][0]);
699 if (memcmp(oid[0], oid[1], sizeof(oid[0][0]) * z)) {
708 x = sizeof(buf[0]);
710 if (x != sizeof(rsa_ia5_der) || memcmp(buf[0], rsa_ia5_der, x)) {
711 fprintf(stderr, "IA5 encode failed: %lu, %lu\n", x, (unsigned long)sizeof(rsa_ia5_der));
719 y = sizeof(buf[1]);
727 x = sizeof(buf[0]);
729 if (x != sizeof(rsa_printable_der) || memcmp(buf[0], rsa_printable_der, x)) {
730 fprintf(stderr, "PRINTABLE encode failed: %lu, %lu\n", x, (unsigned long)sizeof(rsa_printable_der));
738 y = sizeof(buf[1]);
746 x = sizeof(buf[0]);
748 if (x != sizeof(rsa_time1_der) || memcmp(buf[0], rsa_time1_der, x)) {
749 fprintf(stderr, "UTCTIME encode of rsa_time1 failed: %lu, %lu\n", x, (unsigned long)sizeof(rsa_time1_der));
761 if (y != x || memcmp(&rsa_time1, &tmp_time, sizeof(ltc_utctime))) {
776 x = sizeof(buf[0]);
778 if (x != sizeof(rsa_time2_der) || memcmp(buf[0], rsa_time2_der, x)) {
779 fprintf(stderr, "UTCTIME encode of rsa_time2 failed: %lu, %lu\n", x, (unsigned long)sizeof(rsa_time1_der));
791 if (y != x || memcmp(&rsa_time2, &tmp_time, sizeof(ltc_utctime))) {
810 x = sizeof(utf8_buf);
811 DO(der_encode_utf8_string(utf8_1, sizeof(utf8_1) / sizeof(utf8_1[0]), utf8_buf, &x));
812 if (x != sizeof(utf8_1_der) || memcmp(utf8_buf, utf8_1_der, x)) {
818 y = sizeof(utf8_out) / sizeof(utf8_out[0]);
820 if (y != (sizeof(utf8_1) / sizeof(utf8_1[0])) || memcmp(utf8_1, utf8_out, y * sizeof(wchar_t))) {
827 x = sizeof(utf8_buf);
828 DO(der_encode_utf8_string(utf8_2, sizeof(utf8_2) / sizeof(utf8_2[0]), utf8_buf, &x));
829 if (x != sizeof(utf8_2_der) || memcmp(utf8_buf, utf8_2_der, x)) {
835 y = sizeof(utf8_out) / sizeof(utf8_out[0]);
837 if (y != (sizeof(utf8_2) / sizeof(utf8_2[0])) || memcmp(utf8_2, utf8_out, y * sizeof(wchar_t))) {