1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
/* automatically generated by rust-bindgen 0.58.1 */

pub const _STRING_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __STDC_NO_THREADS__: u32 = 1;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 27;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
pub const _STRINGS_H: u32 = 1;
pub const ATCA_POST_DELAY_MSEC: u32 = 25;
pub const _STDINT_H: u32 = 1;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const ATCA_BLOCK_SIZE: u32 = 32;
pub const ATCA_WORD_SIZE: u32 = 4;
pub const ATCA_PUB_KEY_PAD: u32 = 4;
pub const ATCA_SERIAL_NUM_SIZE: u32 = 9;
pub const ATCA_KEY_COUNT: u32 = 16;
pub const ATCA_ECC_CONFIG_SIZE: u32 = 128;
pub const ATCA_SHA_CONFIG_SIZE: u32 = 88;
pub const ATCA_OTP_SIZE: u32 = 64;
pub const ATCA_AES_GFM_SIZE: u32 = 32;
pub const ATCA_CHIPMODE_OFFSET: u32 = 19;
pub const ATCA_PUB_KEY_SIZE: u32 = 64;
pub const ATCA_PRIV_KEY_SIZE: u32 = 32;
pub const ATCA_SIG_SIZE: u32 = 64;
pub const ATCA_KEY_SIZE: u32 = 32;
pub const RSA2048_KEY_SIZE: u32 = 256;
pub const OUTNONCE_SIZE: u32 = 32;
pub const ATCA_COUNT_IDX: u32 = 0;
pub const ATCA_OPCODE_IDX: u32 = 1;
pub const ATCA_PARAM1_IDX: u32 = 2;
pub const ATCA_PARAM2_IDX: u32 = 3;
pub const ATCA_DATA_IDX: u32 = 5;
pub const ATCA_RSP_DATA_IDX: u32 = 1;
pub const ATCA_ADDRESS_MASK_CONFIG: u32 = 31;
pub const ATCA_ADDRESS_MASK_OTP: u32 = 15;
pub const ATCA_ADDRESS_MASK: u32 = 127;
pub const ATCA_TEMPKEY_KEYID: u32 = 65535;
pub const ATCA_B283_KEY_TYPE: u32 = 0;
pub const ATCA_K283_KEY_TYPE: u32 = 1;
pub const ATCA_P256_KEY_TYPE: u32 = 4;
pub const ATCA_AES_KEY_TYPE: u32 = 6;
pub const ATCA_SHA_KEY_TYPE: u32 = 7;
pub const AES_MODE_IDX: u32 = 2;
pub const AES_KEYID_IDX: u32 = 3;
pub const AES_INPUT_IDX: u32 = 5;
pub const AES_COUNT: u32 = 23;
pub const AES_MODE_KEY_BLOCK_POS: u32 = 6;
pub const AES_DATA_SIZE: u32 = 16;
pub const CHECKMAC_MODE_IDX: u32 = 2;
pub const CHECKMAC_KEYID_IDX: u32 = 3;
pub const CHECKMAC_CLIENT_CHALLENGE_IDX: u32 = 5;
pub const CHECKMAC_CLIENT_RESPONSE_IDX: u32 = 37;
pub const CHECKMAC_DATA_IDX: u32 = 69;
pub const CHECKMAC_COUNT: u32 = 84;
pub const CHECKMAC_CLIENT_CHALLENGE_SIZE: u32 = 32;
pub const CHECKMAC_CLIENT_RESPONSE_SIZE: u32 = 32;
pub const CHECKMAC_OTHER_DATA_SIZE: u32 = 13;
pub const CHECKMAC_CLIENT_COMMAND_SIZE: u32 = 4;
pub const CHECKMAC_CMD_MATCH: u32 = 0;
pub const CHECKMAC_CMD_MISMATCH: u32 = 1;
pub const COUNTER_MODE_IDX: u32 = 2;
pub const COUNTER_KEYID_IDX: u32 = 3;
pub const DERIVE_KEY_RANDOM_IDX: u32 = 2;
pub const DERIVE_KEY_TARGETKEY_IDX: u32 = 3;
pub const DERIVE_KEY_MAC_IDX: u32 = 5;
pub const DERIVE_KEY_COUNT_LARGE: u32 = 39;
pub const DERIVE_KEY_MAC_SIZE: u32 = 32;
pub const ECDH_KEY_SIZE: u32 = 32;
pub const GENDIG_ZONE_IDX: u32 = 2;
pub const GENDIG_KEYID_IDX: u32 = 3;
pub const GENDIG_DATA_IDX: u32 = 5;
pub const GENKEY_MODE_IDX: u32 = 2;
pub const GENKEY_KEYID_IDX: u32 = 3;
pub const GENKEY_DATA_IDX: u32 = 5;
pub const GENKEY_COUNT_DATA: u32 = 10;
pub const GENKEY_OTHER_DATA_SIZE: u32 = 3;
pub const HMAC_MODE_IDX: u32 = 2;
pub const HMAC_KEYID_IDX: u32 = 3;
pub const HMAC_DIGEST_SIZE: u32 = 32;
pub const INFO_PARAM1_IDX: u32 = 2;
pub const INFO_PARAM2_IDX: u32 = 3;
pub const KDF_MODE_IDX: u32 = 2;
pub const KDF_KEYID_IDX: u32 = 3;
pub const KDF_DETAILS_IDX: u32 = 5;
pub const KDF_DETAILS_SIZE: u32 = 4;
pub const KDF_MESSAGE_IDX: u32 = 9;
pub const LOCK_ZONE_IDX: u32 = 2;
pub const LOCK_SUMMARY_IDX: u32 = 3;
pub const LOCK_ZONE_MASK: u32 = 191;
pub const ATCA_UNLOCKED: u32 = 85;
pub const ATCA_LOCKED: u32 = 0;
pub const MAC_MODE_IDX: u32 = 2;
pub const MAC_KEYID_IDX: u32 = 3;
pub const MAC_CHALLENGE_IDX: u32 = 5;
pub const MAC_COUNT_LONG: u32 = 39;
pub const MAC_CHALLENGE_SIZE: u32 = 32;
pub const MAC_SIZE: u32 = 32;
pub const NONCE_MODE_IDX: u32 = 2;
pub const NONCE_PARAM2_IDX: u32 = 3;
pub const NONCE_INPUT_IDX: u32 = 5;
pub const NONCE_NUMIN_SIZE: u32 = 20;
pub const NONCE_NUMIN_SIZE_PASSTHROUGH: u32 = 32;
pub const PAUSE_SELECT_IDX: u32 = 2;
pub const PAUSE_PARAM2_IDX: u32 = 3;
pub const PRIVWRITE_ZONE_IDX: u32 = 2;
pub const PRIVWRITE_KEYID_IDX: u32 = 3;
pub const PRIVWRITE_VALUE_IDX: u32 = 5;
pub const PRIVWRITE_MAC_IDX: u32 = 41;
pub const PRIVWRITE_COUNT: u32 = 75;
pub const RANDOM_MODE_IDX: u32 = 2;
pub const RANDOM_PARAM2_IDX: u32 = 3;
pub const READ_ZONE_IDX: u32 = 2;
pub const READ_ADDR_IDX: u32 = 3;
pub const SECUREBOOT_MODE_IDX: u32 = 2;
pub const SECUREBOOT_DIGEST_SIZE: u32 = 32;
pub const SECUREBOOT_SIGNATURE_SIZE: u32 = 64;
pub const SECUREBOOT_MAC_SIZE: u32 = 32;
pub const SECUREBOOTCONFIG_OFFSET: u32 = 70;
pub const SELFTEST_MODE_IDX: u32 = 2;
pub const ATCA_SHA_DIGEST_SIZE: u32 = 32;
pub const SHA_DATA_MAX: u32 = 64;
pub const ATCA_SHA256_BLOCK_SIZE: u32 = 64;
pub const SHA_CONTEXT_MAX_SIZE: u32 = 99;
pub const SIGN_MODE_IDX: u32 = 2;
pub const SIGN_KEYID_IDX: u32 = 3;
pub const UPDATE_MODE_IDX: u32 = 2;
pub const UPDATE_VALUE_IDX: u32 = 3;
pub const VERIFY_MODE_IDX: u32 = 2;
pub const VERIFY_KEYID_IDX: u32 = 3;
pub const VERIFY_DATA_IDX: u32 = 5;
pub const VERIFY_256_STORED_COUNT: u32 = 71;
pub const VERIFY_283_STORED_COUNT: u32 = 79;
pub const VERIFY_256_VALIDATE_COUNT: u32 = 90;
pub const VERIFY_283_VALIDATE_COUNT: u32 = 98;
pub const VERIFY_256_EXTERNAL_COUNT: u32 = 135;
pub const VERIFY_283_EXTERNAL_COUNT: u32 = 151;
pub const VERIFY_256_KEY_SIZE: u32 = 64;
pub const VERIFY_283_KEY_SIZE: u32 = 72;
pub const VERIFY_256_SIGNATURE_SIZE: u32 = 64;
pub const VERIFY_283_SIGNATURE_SIZE: u32 = 72;
pub const VERIFY_OTHER_DATA_SIZE: u32 = 19;
pub const WRITE_ZONE_IDX: u32 = 2;
pub const WRITE_ADDR_IDX: u32 = 3;
pub const WRITE_VALUE_IDX: u32 = 5;
pub const WRITE_MAC_VS_IDX: u32 = 9;
pub const WRITE_MAC_VL_IDX: u32 = 37;
pub const WRITE_MAC_SIZE: u32 = 32;
pub const ATCA_SHA2_256_DIGEST_SIZE: u32 = 32;
pub const ATCA_AES_GCM_IV_STD_LENGTH: u32 = 12;
pub type size_t = ::std::os::raw::c_ulong;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
    pub __bindgen_padding_0: u64,
    pub __clang_max_align_nonce2: u128,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_max_align_t() {
    assert_eq!(
        ::std::mem::size_of::<max_align_t>(),
        32usize,
        concat!("Size of: ", stringify!(max_align_t))
    );
    assert_eq!(
        ::std::mem::align_of::<max_align_t>(),
        16usize,
        concat!("Alignment of ", stringify!(max_align_t))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce1 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce2 as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce2)
        )
    );
}
extern "C" {
    pub fn memcpy(
        __dest: *mut ::std::os::raw::c_void,
        __src: *const ::std::os::raw::c_void,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memmove(
        __dest: *mut ::std::os::raw::c_void,
        __src: *const ::std::os::raw::c_void,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memccpy(
        __dest: *mut ::std::os::raw::c_void,
        __src: *const ::std::os::raw::c_void,
        __c: ::std::os::raw::c_int,
        __n: size_t,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memset(
        __s: *mut ::std::os::raw::c_void,
        __c: ::std::os::raw::c_int,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memcmp(
        __s1: *const ::std::os::raw::c_void,
        __s2: *const ::std::os::raw::c_void,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn memchr(
        __s: *const ::std::os::raw::c_void,
        __c: ::std::os::raw::c_int,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn strcpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strncpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strcat(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strncat(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strcmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strncmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strcoll(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strxfrm(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_ulong;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_struct {
    pub __locales: [*mut __locale_data; 13usize],
    pub __ctype_b: *const ::std::os::raw::c_ushort,
    pub __ctype_tolower: *const ::std::os::raw::c_int,
    pub __ctype_toupper: *const ::std::os::raw::c_int,
    pub __names: [*const ::std::os::raw::c_char; 13usize],
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout___locale_struct() {
    assert_eq!(
        ::std::mem::size_of::<__locale_struct>(),
        232usize,
        concat!("Size of: ", stringify!(__locale_struct))
    );
    assert_eq!(
        ::std::mem::align_of::<__locale_struct>(),
        8usize,
        concat!("Alignment of ", stringify!(__locale_struct))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__locales as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__locales)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_b as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_b)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_tolower as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_tolower)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_toupper as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_toupper)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__names as *const _ as usize },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__names)
        )
    );
}
pub type __locale_t = *mut __locale_struct;
pub type locale_t = __locale_t;
extern "C" {
    pub fn strcoll_l(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __l: locale_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strxfrm_l(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: size_t,
        __l: locale_t,
    ) -> size_t;
}
extern "C" {
    pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strndup(
        __string: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strchr(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strrchr(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strcspn(
        __s: *const ::std::os::raw::c_char,
        __reject: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strspn(
        __s: *const ::std::os::raw::c_char,
        __accept: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strpbrk(
        __s: *const ::std::os::raw::c_char,
        __accept: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strstr(
        __haystack: *const ::std::os::raw::c_char,
        __needle: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strtok(
        __s: *mut ::std::os::raw::c_char,
        __delim: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn __strtok_r(
        __s: *mut ::std::os::raw::c_char,
        __delim: *const ::std::os::raw::c_char,
        __save_ptr: *mut *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strtok_r(
        __s: *mut ::std::os::raw::c_char,
        __delim: *const ::std::os::raw::c_char,
        __save_ptr: *mut *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: size_t) -> size_t;
}
extern "C" {
    pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[link_name = "\u{1}__xpg_strerror_r"]
    pub fn strerror_r(
        __errnum: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __buflen: size_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strerror_l(
        __errnum: ::std::os::raw::c_int,
        __l: locale_t,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn bcmp(
        __s1: *const ::std::os::raw::c_void,
        __s2: *const ::std::os::raw::c_void,
        __n: size_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn bcopy(
        __src: *const ::std::os::raw::c_void,
        __dest: *mut ::std::os::raw::c_void,
        __n: size_t,
    );
}
extern "C" {
    pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong);
}
extern "C" {
    pub fn index(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn rindex(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strcasecmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strncasecmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strcasecmp_l(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strncasecmp_l(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __n: size_t,
        __loc: locale_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: size_t);
}
extern "C" {
    pub fn strsep(
        __stringp: *mut *mut ::std::os::raw::c_char,
        __delim: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn __stpcpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn stpcpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn __stpncpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: size_t,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn stpncpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_char;
}
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __intmax_t = ::std::os::raw::c_long;
pub type __uintmax_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [::std::os::raw::c_int; 2usize],
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout___fsid_t() {
    assert_eq!(
        ::std::mem::size_of::<__fsid_t>(),
        8usize,
        concat!("Size of: ", stringify!(__fsid_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__fsid_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__fsid_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__fsid_t>())).__val as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__fsid_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
pub type int_least8_t = ::std::os::raw::c_schar;
pub type int_least16_t = ::std::os::raw::c_short;
pub type int_least32_t = ::std::os::raw::c_int;
pub type int_least64_t = ::std::os::raw::c_long;
pub type uint_least8_t = ::std::os::raw::c_uchar;
pub type uint_least16_t = ::std::os::raw::c_ushort;
pub type uint_least32_t = ::std::os::raw::c_uint;
pub type uint_least64_t = ::std::os::raw::c_ulong;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
#[doc = "!< Function succeeded."]
pub const ATCA_STATUS_ATCA_SUCCESS: ATCA_STATUS = 0;
pub const ATCA_STATUS_ATCA_CONFIG_ZONE_LOCKED: ATCA_STATUS = 1;
pub const ATCA_STATUS_ATCA_DATA_ZONE_LOCKED: ATCA_STATUS = 2;
#[doc = "!< response status byte indicates CheckMac failure (status byte = 0x01)"]
pub const ATCA_STATUS_ATCA_WAKE_FAILED: ATCA_STATUS = 208;
#[doc = "!< response status byte indicates CheckMac failure (status byte = 0x01)"]
pub const ATCA_STATUS_ATCA_CHECKMAC_VERIFY_FAILED: ATCA_STATUS = 209;
#[doc = "!< response status byte indicates parsing error (status byte = 0x03)"]
pub const ATCA_STATUS_ATCA_PARSE_ERROR: ATCA_STATUS = 210;
#[doc = "!< response status byte indicates DEVICE did not receive data properly (status byte = 0xFF)"]
pub const ATCA_STATUS_ATCA_STATUS_CRC: ATCA_STATUS = 212;
#[doc = "!< response status byte is unknown"]
pub const ATCA_STATUS_ATCA_STATUS_UNKNOWN: ATCA_STATUS = 213;
#[doc = "!< response status byte is ECC fault (status byte = 0x05)"]
pub const ATCA_STATUS_ATCA_STATUS_ECC: ATCA_STATUS = 214;
#[doc = "!< response status byte is Self Test Error, chip in failure mode (status byte = 0x07)"]
pub const ATCA_STATUS_ATCA_STATUS_SELFTEST_ERROR: ATCA_STATUS = 215;
#[doc = "!< Function could not execute due to incorrect condition / state."]
pub const ATCA_STATUS_ATCA_FUNC_FAIL: ATCA_STATUS = 224;
#[doc = "!< unspecified error"]
pub const ATCA_STATUS_ATCA_GEN_FAIL: ATCA_STATUS = 225;
#[doc = "!< bad argument (out of range, null pointer, etc.)"]
pub const ATCA_STATUS_ATCA_BAD_PARAM: ATCA_STATUS = 226;
#[doc = "!< invalid device id, id not set"]
pub const ATCA_STATUS_ATCA_INVALID_ID: ATCA_STATUS = 227;
#[doc = "!< Count value is out of range or greater than buffer size."]
pub const ATCA_STATUS_ATCA_INVALID_SIZE: ATCA_STATUS = 228;
#[doc = "!< CRC error in data received from device"]
pub const ATCA_STATUS_ATCA_RX_CRC_ERROR: ATCA_STATUS = 229;
#[doc = "!< Timed out while waiting for response. Number of bytes received is > 0."]
pub const ATCA_STATUS_ATCA_RX_FAIL: ATCA_STATUS = 230;
#[doc = "!< Not an error while the Command layer is polling for a command response."]
pub const ATCA_STATUS_ATCA_RX_NO_RESPONSE: ATCA_STATUS = 231;
#[doc = "!< Re-synchronization succeeded, but only after generating a Wake-up"]
pub const ATCA_STATUS_ATCA_RESYNC_WITH_WAKEUP: ATCA_STATUS = 232;
#[doc = "!< for protocols needing parity"]
pub const ATCA_STATUS_ATCA_PARITY_ERROR: ATCA_STATUS = 233;
#[doc = "!< for Microchip PHY protocol, timeout on transmission waiting for master"]
pub const ATCA_STATUS_ATCA_TX_TIMEOUT: ATCA_STATUS = 234;
#[doc = "!< for Microchip PHY protocol, timeout on receipt waiting for master"]
pub const ATCA_STATUS_ATCA_RX_TIMEOUT: ATCA_STATUS = 235;
#[doc = "!< Device did not respond too many times during a transmission. Could indicate no device present."]
pub const ATCA_STATUS_ATCA_TOO_MANY_COMM_RETRIES: ATCA_STATUS = 236;
#[doc = "!< Supplied buffer is too small for data required"]
pub const ATCA_STATUS_ATCA_SMALL_BUFFER: ATCA_STATUS = 237;
#[doc = "!< Communication with device failed. Same as in hardware dependent modules."]
pub const ATCA_STATUS_ATCA_COMM_FAIL: ATCA_STATUS = 240;
#[doc = "!< Timed out while waiting for response. Number of bytes received is 0."]
pub const ATCA_STATUS_ATCA_TIMEOUT: ATCA_STATUS = 241;
#[doc = "!< opcode is not supported by the device"]
pub const ATCA_STATUS_ATCA_BAD_OPCODE: ATCA_STATUS = 242;
#[doc = "!< received proper wake token"]
pub const ATCA_STATUS_ATCA_WAKE_SUCCESS: ATCA_STATUS = 243;
#[doc = "!< chip was in a state where it could not execute the command, response status byte indicates command execution error (status byte = 0x0F)"]
pub const ATCA_STATUS_ATCA_EXECUTION_ERROR: ATCA_STATUS = 244;
#[doc = "!< Function or some element of it hasn't been implemented yet"]
pub const ATCA_STATUS_ATCA_UNIMPLEMENTED: ATCA_STATUS = 245;
#[doc = "!< Code failed run-time consistency check"]
pub const ATCA_STATUS_ATCA_ASSERT_FAILURE: ATCA_STATUS = 246;
#[doc = "!< Failed to write"]
pub const ATCA_STATUS_ATCA_TX_FAIL: ATCA_STATUS = 247;
#[doc = "!< required zone was not locked"]
pub const ATCA_STATUS_ATCA_NOT_LOCKED: ATCA_STATUS = 248;
#[doc = "!< For protocols that support device discovery (kit protocol), no devices were found"]
pub const ATCA_STATUS_ATCA_NO_DEVICES: ATCA_STATUS = 249;
#[doc = "!< random number generator health test error"]
pub const ATCA_STATUS_ATCA_HEALTH_TEST_ERROR: ATCA_STATUS = 250;
#[doc = "!< Couldn't allocate required memory"]
pub const ATCA_STATUS_ATCA_ALLOC_FAILURE: ATCA_STATUS = 251;
#[doc = "!< Use flags on the device indicates its consumed fully"]
pub const ATCA_STATUS_ATCA_USE_FLAGS_CONSUMED: ATCA_STATUS = 252;
pub type ATCA_STATUS = ::std::os::raw::c_uint;
pub const ATCADeviceType_ATSHA204A: ATCADeviceType = 0;
pub const ATCADeviceType_ATECC108A: ATCADeviceType = 1;
pub const ATCADeviceType_ATECC508A: ATCADeviceType = 2;
pub const ATCADeviceType_ATECC608A: ATCADeviceType = 3;
pub const ATCADeviceType_ATSHA206A: ATCADeviceType = 4;
pub const ATCADeviceType_ATCA_DEV_UNKNOWN: ATCADeviceType = 32;
#[doc = " \\brief The supported Device type in Cryptoauthlib library"]
pub type ATCADeviceType = ::std::os::raw::c_uint;
#[doc = " \\brief atca_command is the C object backing ATCACommand."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct atca_command {
    pub dt: ATCADeviceType,
    pub clock_divider: u8,
    pub execution_time_msec: u16,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atca_command() {
    assert_eq!(
        ::std::mem::size_of::<atca_command>(),
        8usize,
        concat!("Size of: ", stringify!(atca_command))
    );
    assert_eq!(
        ::std::mem::align_of::<atca_command>(),
        4usize,
        concat!("Alignment of ", stringify!(atca_command))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_command>())).dt as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_command),
            "::",
            stringify!(dt)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_command>())).clock_divider as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_command),
            "::",
            stringify!(clock_divider)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<atca_command>())).execution_time_msec as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_command),
            "::",
            stringify!(execution_time_msec)
        )
    );
}
pub type ATCACommand = *mut atca_command;
extern "C" {
    pub fn initATCACommand(device_type: ATCADeviceType, ca_cmd: ATCACommand) -> ATCA_STATUS;
}
extern "C" {
    pub fn newATCACommand(device_type: ATCADeviceType) -> ATCACommand;
}
extern "C" {
    pub fn deleteATCACommand(ca_cmd: *mut ATCACommand);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ATCAPacket {
    pub _reserved: u8,
    pub txsize: u8,
    pub opcode: u8,
    pub param1: u8,
    pub param2: u16,
    pub data: [u8; 192usize],
    pub execTime: u8,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAPacket() {
    assert_eq!(
        ::std::mem::size_of::<ATCAPacket>(),
        200usize,
        concat!("Size of: ", stringify!(ATCAPacket))
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAPacket>(),
        2usize,
        concat!("Alignment of ", stringify!(ATCAPacket))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAPacket>()))._reserved as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAPacket),
            "::",
            stringify!(_reserved)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAPacket>())).txsize as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAPacket),
            "::",
            stringify!(txsize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAPacket>())).opcode as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAPacket),
            "::",
            stringify!(opcode)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAPacket>())).param1 as *const _ as usize },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAPacket),
            "::",
            stringify!(param1)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAPacket>())).param2 as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAPacket),
            "::",
            stringify!(param2)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAPacket>())).data as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAPacket),
            "::",
            stringify!(data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAPacket>())).execTime as *const _ as usize },
        198usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAPacket),
            "::",
            stringify!(execTime)
        )
    );
}
extern "C" {
    pub fn atCheckMAC(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atCounter(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atDeriveKey(ca_cmd: ATCACommand, packet: *mut ATCAPacket, has_mac: bool) -> ATCA_STATUS;
}
extern "C" {
    pub fn atECDH(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atGenDig(
        ca_cmd: ATCACommand,
        packet: *mut ATCAPacket,
        is_no_mac_key: bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atGenKey(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atHMAC(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atInfo(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atLock(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atMAC(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atNonce(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atPause(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atPrivWrite(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atRandom(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atRead(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atSecureBoot(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atSHA(
        ca_cmd: ATCACommand,
        packet: *mut ATCAPacket,
        write_context_size: u16,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atSign(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atUpdateExtra(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atVerify(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atWrite(ca_cmd: ATCACommand, packet: *mut ATCAPacket, has_mac: bool) -> ATCA_STATUS;
}
extern "C" {
    pub fn atAES(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atSelfTest(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atKDF(ca_cmd: ATCACommand, packet: *mut ATCAPacket) -> ATCA_STATUS;
}
extern "C" {
    pub fn atIsSHAFamily(device_type: ATCADeviceType) -> bool;
}
extern "C" {
    pub fn atIsECCFamily(device_type: ATCADeviceType) -> bool;
}
extern "C" {
    pub fn isATCAError(data: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atCRC(length: size_t, data: *const u8, crc_le: *mut u8);
}
extern "C" {
    pub fn atCalcCrc(pkt: *mut ATCAPacket);
}
extern "C" {
    pub fn atCheckCrc(response: *const u8) -> ATCA_STATUS;
}
pub const ATCAIfaceType_ATCA_I2C_IFACE: ATCAIfaceType = 0;
pub const ATCAIfaceType_ATCA_SWI_IFACE: ATCAIfaceType = 1;
pub const ATCAIfaceType_ATCA_UART_IFACE: ATCAIfaceType = 2;
pub const ATCAIfaceType_ATCA_SPI_IFACE: ATCAIfaceType = 3;
pub const ATCAIfaceType_ATCA_HID_IFACE: ATCAIfaceType = 4;
pub const ATCAIfaceType_ATCA_CUSTOM_IFACE: ATCAIfaceType = 5;
pub const ATCAIfaceType_ATCA_UNKNOWN_IFACE: ATCAIfaceType = 6;
pub type ATCAIfaceType = ::std::os::raw::c_uint;
pub const ATCAKitType_ATCA_KIT_AUTO_IFACE: ATCAKitType = 0;
pub const ATCAKitType_ATCA_KIT_I2C_IFACE: ATCAKitType = 1;
pub const ATCAKitType_ATCA_KIT_SWI_IFACE: ATCAKitType = 2;
pub const ATCAKitType_ATCA_KIT_UNKNOWN_IFACE: ATCAKitType = 3;
pub type ATCAKitType = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ATCAIfaceCfg {
    pub iface_type: ATCAIfaceType,
    pub devtype: ATCADeviceType,
    pub __bindgen_anon_1: ATCAIfaceCfg__bindgen_ty_1,
    pub wake_delay: u16,
    pub rx_retries: ::std::os::raw::c_int,
    pub cfg_data: *mut ::std::os::raw::c_void,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union ATCAIfaceCfg__bindgen_ty_1 {
    pub atcai2c: ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1,
    pub atcaswi: ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2,
    pub atcauart: ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3,
    pub atcahid: ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4,
    pub atcacustom: ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1 {
    pub slave_address: u8,
    pub bus: u8,
    pub baud: u32,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1>())).slave_address
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(slave_address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1>())).bus as *const _
                as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(bus)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1>())).baud as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(baud)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2 {
    pub bus: u8,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2() {
    assert_eq!(
        ::std::mem::size_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2>(),
        1usize,
        concat!(
            "Size of: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2>())).bus as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_2),
            "::",
            stringify!(bus)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3 {
    pub port: ::std::os::raw::c_int,
    pub baud: u32,
    pub wordsize: u8,
    pub parity: u8,
    pub stopbits: u8,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3() {
    assert_eq!(
        ::std::mem::size_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3>(),
        12usize,
        concat!(
            "Size of: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3>())).port as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3),
            "::",
            stringify!(port)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3>())).baud as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3),
            "::",
            stringify!(baud)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3>())).wordsize
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3),
            "::",
            stringify!(wordsize)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3>())).parity as *const _
                as usize
        },
        9usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3),
            "::",
            stringify!(parity)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3>())).stopbits
                as *const _ as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_3),
            "::",
            stringify!(stopbits)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4 {
    pub idx: ::std::os::raw::c_int,
    pub dev_interface: ATCAKitType,
    pub dev_identity: u8,
    pub vid: u32,
    pub pid: u32,
    pub packetsize: u32,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4() {
    assert_eq!(
        ::std::mem::size_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4>(),
        24usize,
        concat!(
            "Size of: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4>())).idx as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4),
            "::",
            stringify!(idx)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4>())).dev_interface
                as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4),
            "::",
            stringify!(dev_interface)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4>())).dev_identity
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4),
            "::",
            stringify!(dev_identity)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4>())).vid as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4),
            "::",
            stringify!(vid)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4>())).pid as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4),
            "::",
            stringify!(pid)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4>())).packetsize
                as *const _ as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_4),
            "::",
            stringify!(packetsize)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5 {
    pub halinit: ::std::option::Option<
        unsafe extern "C" fn(
            hal: *mut ::std::os::raw::c_void,
            cfg: *mut ::std::os::raw::c_void,
        ) -> ATCA_STATUS,
    >,
    pub halpostinit: ::std::option::Option<
        unsafe extern "C" fn(iface: *mut ::std::os::raw::c_void) -> ATCA_STATUS,
    >,
    pub halsend: ::std::option::Option<
        unsafe extern "C" fn(
            iface: *mut ::std::os::raw::c_void,
            txdata: *mut u8,
            txlength: ::std::os::raw::c_int,
        ) -> ATCA_STATUS,
    >,
    pub halreceive: ::std::option::Option<
        unsafe extern "C" fn(
            iface: *mut ::std::os::raw::c_void,
            rxdata: *mut u8,
            rxlength: *mut u16,
        ) -> ATCA_STATUS,
    >,
    pub halwake: ::std::option::Option<
        unsafe extern "C" fn(iface: *mut ::std::os::raw::c_void) -> ATCA_STATUS,
    >,
    pub halidle: ::std::option::Option<
        unsafe extern "C" fn(iface: *mut ::std::os::raw::c_void) -> ATCA_STATUS,
    >,
    pub halsleep: ::std::option::Option<
        unsafe extern "C" fn(iface: *mut ::std::os::raw::c_void) -> ATCA_STATUS,
    >,
    pub halrelease: ::std::option::Option<
        unsafe extern "C" fn(hal_data: *mut ::std::os::raw::c_void) -> ATCA_STATUS,
    >,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5() {
    assert_eq!(
        ::std::mem::size_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>(),
        64usize,
        concat!(
            "Size of: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>())).halinit as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5),
            "::",
            stringify!(halinit)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>())).halpostinit
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5),
            "::",
            stringify!(halpostinit)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>())).halsend as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5),
            "::",
            stringify!(halsend)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>())).halreceive
                as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5),
            "::",
            stringify!(halreceive)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>())).halwake as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5),
            "::",
            stringify!(halwake)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>())).halidle as *const _
                as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5),
            "::",
            stringify!(halidle)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>())).halsleep
                as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5),
            "::",
            stringify!(halsleep)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5>())).halrelease
                as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1__bindgen_ty_5),
            "::",
            stringify!(halrelease)
        )
    );
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAIfaceCfg__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<ATCAIfaceCfg__bindgen_ty_1>(),
        64usize,
        concat!("Size of: ", stringify!(ATCAIfaceCfg__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAIfaceCfg__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(ATCAIfaceCfg__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1>())).atcai2c as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1),
            "::",
            stringify!(atcai2c)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1>())).atcaswi as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1),
            "::",
            stringify!(atcaswi)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1>())).atcauart as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1),
            "::",
            stringify!(atcauart)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1>())).atcahid as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1),
            "::",
            stringify!(atcahid)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ATCAIfaceCfg__bindgen_ty_1>())).atcacustom as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg__bindgen_ty_1),
            "::",
            stringify!(atcacustom)
        )
    );
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAIfaceCfg() {
    assert_eq!(
        ::std::mem::size_of::<ATCAIfaceCfg>(),
        88usize,
        concat!("Size of: ", stringify!(ATCAIfaceCfg))
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAIfaceCfg>(),
        8usize,
        concat!("Alignment of ", stringify!(ATCAIfaceCfg))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAIfaceCfg>())).iface_type as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg),
            "::",
            stringify!(iface_type)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAIfaceCfg>())).devtype as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg),
            "::",
            stringify!(devtype)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAIfaceCfg>())).wake_delay as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg),
            "::",
            stringify!(wake_delay)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAIfaceCfg>())).rx_retries as *const _ as usize },
        76usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg),
            "::",
            stringify!(rx_retries)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAIfaceCfg>())).cfg_data as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAIfaceCfg),
            "::",
            stringify!(cfg_data)
        )
    );
}
pub type ATCAIface = *mut atca_iface;
#[doc = " \\brief atca_iface is the C object backing ATCAIface.  See the atca_iface.h file for"]
#[doc = " details on the ATCAIface methods"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct atca_iface {
    pub mType: ATCAIfaceType,
    pub mIfaceCFG: *mut ATCAIfaceCfg,
    pub atinit: ::std::option::Option<
        unsafe extern "C" fn(
            hal: *mut ::std::os::raw::c_void,
            arg1: *mut ATCAIfaceCfg,
        ) -> ATCA_STATUS,
    >,
    pub atpostinit: ::std::option::Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>,
    pub atsend: ::std::option::Option<
        unsafe extern "C" fn(
            hal: ATCAIface,
            txdata: *mut u8,
            txlength: ::std::os::raw::c_int,
        ) -> ATCA_STATUS,
    >,
    pub atreceive: ::std::option::Option<
        unsafe extern "C" fn(hal: ATCAIface, rxdata: *mut u8, rxlength: *mut u16) -> ATCA_STATUS,
    >,
    pub atwake: ::std::option::Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>,
    pub atidle: ::std::option::Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>,
    pub atsleep: ::std::option::Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>,
    pub hal_data: *mut ::std::os::raw::c_void,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atca_iface() {
    assert_eq!(
        ::std::mem::size_of::<atca_iface>(),
        80usize,
        concat!("Size of: ", stringify!(atca_iface))
    );
    assert_eq!(
        ::std::mem::align_of::<atca_iface>(),
        8usize,
        concat!("Alignment of ", stringify!(atca_iface))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).mType as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(mType)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).mIfaceCFG as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(mIfaceCFG)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).atinit as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(atinit)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).atpostinit as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(atpostinit)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).atsend as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(atsend)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).atreceive as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(atreceive)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).atwake as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(atwake)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).atidle as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(atidle)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).atsleep as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(atsleep)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_iface>())).hal_data as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_iface),
            "::",
            stringify!(hal_data)
        )
    );
}
extern "C" {
    pub fn initATCAIface(cfg: *mut ATCAIfaceCfg, ca_iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn newATCAIface(cfg: *mut ATCAIfaceCfg) -> ATCAIface;
}
extern "C" {
    pub fn releaseATCAIface(ca_iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn deleteATCAIface(ca_iface: *mut ATCAIface);
}
extern "C" {
    pub fn atinit(ca_iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn atpostinit(ca_iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn atsend(
        ca_iface: ATCAIface,
        txdata: *mut u8,
        txlength: ::std::os::raw::c_int,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atreceive(ca_iface: ATCAIface, rxdata: *mut u8, rxlength: *mut u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atwake(ca_iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn atidle(ca_iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn atsleep(ca_iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn atgetifacecfg(ca_iface: ATCAIface) -> *mut ATCAIfaceCfg;
}
extern "C" {
    pub fn atgetifacehaldat(ca_iface: ATCAIface) -> *mut ::std::os::raw::c_void;
}
#[doc = " \\brief an intermediary data structure to allow the HAL layer to point the standard API functions"]
#[doc = "used by the upper layers to the HAL implementation for the interface.  This isolates the upper layers"]
#[doc = "and loosely couples the ATCAIface object from the physical implementation."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ATCAHAL_t {
    pub halinit: ::std::option::Option<
        unsafe extern "C" fn(
            hal: *mut ::std::os::raw::c_void,
            cfg: *mut ATCAIfaceCfg,
        ) -> ATCA_STATUS,
    >,
    pub halpostinit: ::std::option::Option<unsafe extern "C" fn(iface: ATCAIface) -> ATCA_STATUS>,
    pub halsend: ::std::option::Option<
        unsafe extern "C" fn(
            iface: ATCAIface,
            txdata: *mut u8,
            txlength: ::std::os::raw::c_int,
        ) -> ATCA_STATUS,
    >,
    pub halreceive: ::std::option::Option<
        unsafe extern "C" fn(iface: ATCAIface, rxdata: *mut u8, rxlength: *mut u16) -> ATCA_STATUS,
    >,
    pub halwake: ::std::option::Option<unsafe extern "C" fn(iface: ATCAIface) -> ATCA_STATUS>,
    pub halidle: ::std::option::Option<unsafe extern "C" fn(iface: ATCAIface) -> ATCA_STATUS>,
    pub halsleep: ::std::option::Option<unsafe extern "C" fn(iface: ATCAIface) -> ATCA_STATUS>,
    pub halrelease: ::std::option::Option<
        unsafe extern "C" fn(hal_data: *mut ::std::os::raw::c_void) -> ATCA_STATUS,
    >,
    pub hal_data: *mut ::std::os::raw::c_void,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_ATCAHAL_t() {
    assert_eq!(
        ::std::mem::size_of::<ATCAHAL_t>(),
        72usize,
        concat!("Size of: ", stringify!(ATCAHAL_t))
    );
    assert_eq!(
        ::std::mem::align_of::<ATCAHAL_t>(),
        8usize,
        concat!("Alignment of ", stringify!(ATCAHAL_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).halinit as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(halinit)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).halpostinit as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(halpostinit)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).halsend as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(halsend)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).halreceive as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(halreceive)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).halwake as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(halwake)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).halidle as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(halidle)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).halsleep as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(halsleep)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).halrelease as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(halrelease)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ATCAHAL_t>())).hal_data as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(ATCAHAL_t),
            "::",
            stringify!(hal_data)
        )
    );
}
extern "C" {
    pub fn hal_iface_init(arg1: *mut ATCAIfaceCfg, hal: *mut ATCAHAL_t) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_iface_release(
        arg1: ATCAIfaceType,
        hal_data: *mut ::std::os::raw::c_void,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_check_wake(response: *const u8, response_size: ::std::os::raw::c_int)
        -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_init(hal: *mut ::std::os::raw::c_void, cfg: *mut ATCAIfaceCfg) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_post_init(iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_send(
        iface: ATCAIface,
        txdata: *mut u8,
        txlength: ::std::os::raw::c_int,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_receive(iface: ATCAIface, rxdata: *mut u8, rxlength: *mut u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_wake(iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_idle(iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_sleep(iface: ATCAIface) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_release(hal_data: *mut ::std::os::raw::c_void) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_discover_buses(
        i2c_buses: *mut ::std::os::raw::c_int,
        max_buses: ::std::os::raw::c_int,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_i2c_discover_devices(
        bus_num: ::std::os::raw::c_int,
        cfg: *mut ATCAIfaceCfg,
        found: *mut ::std::os::raw::c_int,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atca_delay_ms(ms: u32);
}
extern "C" {
    pub fn atca_delay_us(us: u32);
}
extern "C" {
    #[doc = " \\brief Timer API implemented at the HAL level"]
    pub fn hal_rtos_delay_ms(ms: u32);
}
extern "C" {
    pub fn hal_delay_ms(ms: u32);
}
extern "C" {
    pub fn hal_delay_us(us: u32);
}
extern "C" {
    #[doc = " \\brief Optional hal interfaces"]
    pub fn hal_create_mutex(
        ppMutex: *mut *mut ::std::os::raw::c_void,
        pName: *mut ::std::os::raw::c_char,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_destroy_mutex(pMutex: *mut ::std::os::raw::c_void) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_lock_mutex(pMutex: *mut ::std::os::raw::c_void) -> ATCA_STATUS;
}
extern "C" {
    pub fn hal_unlock_mutex(pMutex: *mut ::std::os::raw::c_void) -> ATCA_STATUS;
}
#[doc = " \\brief atca_device is the C object backing ATCADevice.  See the"]
#[doc = "         atca_device.h file for details on the ATCADevice methods."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct atca_device {
    #[doc = "!< Command set for a given CryptoAuth device"]
    pub mCommands: ATCACommand,
    #[doc = "!< Physical interface"]
    pub mIface: ATCAIface,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atca_device() {
    assert_eq!(
        ::std::mem::size_of::<atca_device>(),
        16usize,
        concat!("Size of: ", stringify!(atca_device))
    );
    assert_eq!(
        ::std::mem::align_of::<atca_device>(),
        8usize,
        concat!("Alignment of ", stringify!(atca_device))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_device>())).mCommands as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_device),
            "::",
            stringify!(mCommands)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_device>())).mIface as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_device),
            "::",
            stringify!(mIface)
        )
    );
}
pub type ATCADevice = *mut atca_device;
extern "C" {
    pub fn initATCADevice(cfg: *mut ATCAIfaceCfg, cadev: ATCADevice) -> ATCA_STATUS;
}
extern "C" {
    pub fn newATCADevice(cfg: *mut ATCAIfaceCfg) -> ATCADevice;
}
extern "C" {
    pub fn releaseATCADevice(ca_dev: ATCADevice) -> ATCA_STATUS;
}
extern "C" {
    pub fn deleteATCADevice(ca_dev: *mut ATCADevice);
}
extern "C" {
    pub fn atGetCommands(dev: ATCADevice) -> ATCACommand;
}
extern "C" {
    pub fn atGetIFace(dev: ATCADevice) -> ATCAIface;
}
extern "C" {
    pub static mut cfg_ateccx08a_i2c_default: ATCAIfaceCfg;
}
extern "C" {
    pub static mut cfg_ateccx08a_swi_default: ATCAIfaceCfg;
}
extern "C" {
    pub static mut cfg_ateccx08a_kitcdc_default: ATCAIfaceCfg;
}
extern "C" {
    pub static mut cfg_ateccx08a_kithid_default: ATCAIfaceCfg;
}
extern "C" {
    pub static mut cfg_atsha20xa_i2c_default: ATCAIfaceCfg;
}
extern "C" {
    pub static mut cfg_atsha20xa_swi_default: ATCAIfaceCfg;
}
extern "C" {
    pub static mut cfg_atsha20xa_kitcdc_default: ATCAIfaceCfg;
}
extern "C" {
    pub static mut cfg_atsha20xa_kithid_default: ATCAIfaceCfg;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct atcac_sha2_256_ctx {
    #[doc = "!< Filler value to make sure the actual implementation has enough room to store its context. uint32_t is used to remove some alignment warnings."]
    pub pad: [u32; 48usize],
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atcac_sha2_256_ctx() {
    assert_eq!(
        ::std::mem::size_of::<atcac_sha2_256_ctx>(),
        192usize,
        concat!("Size of: ", stringify!(atcac_sha2_256_ctx))
    );
    assert_eq!(
        ::std::mem::align_of::<atcac_sha2_256_ctx>(),
        4usize,
        concat!("Alignment of ", stringify!(atcac_sha2_256_ctx))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atcac_sha2_256_ctx>())).pad as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atcac_sha2_256_ctx),
            "::",
            stringify!(pad)
        )
    );
}
extern "C" {
    pub fn atcac_sw_sha2_256_init(ctx: *mut atcac_sha2_256_ctx) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn atcac_sw_sha2_256_update(
        ctx: *mut atcac_sha2_256_ctx,
        data: *const u8,
        data_size: size_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn atcac_sw_sha2_256_finish(
        ctx: *mut atcac_sha2_256_ctx,
        digest: *mut u8,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn atcac_sw_sha2_256(
        data: *const u8,
        data_size: size_t,
        digest: *mut u8,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub static mut _gDevice: ATCADevice;
}
extern "C" {
    pub fn atcab_version(ver_str: *mut ::std::os::raw::c_char) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_init(cfg: *mut ATCAIfaceCfg) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_init_device(ca_device: ATCADevice) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_release() -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_get_device() -> ATCADevice;
}
extern "C" {
    pub fn atcab_get_device_type() -> ATCADeviceType;
}
extern "C" {
    pub fn _atcab_exit() -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_wakeup() -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_idle() -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sleep() -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_cfg_discover(
        cfg_array: *mut ATCAIfaceCfg,
        max: ::std::os::raw::c_int,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_get_addr(
        zone: u8,
        slot: u16,
        block: u8,
        offset: u8,
        addr: *mut u16,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_get_zone_size(zone: u8, slot: u16, size: *mut size_t) -> ATCA_STATUS;
}
extern "C" {
    pub static mut atca_basic_aes_gcm_version: *const ::std::os::raw::c_char;
}
#[doc = " Context structure for AES GCM operations."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct atca_aes_gcm_ctx {
    #[doc = "!< Key location. Can either be a slot number or ATCA_TEMPKEY_KEYID for TempKey."]
    pub key_id: u16,
    #[doc = "!< Index of the 16-byte block to use within the key location for the actual key."]
    pub key_block: u8,
    #[doc = "!< Counter block, comprises of nonce + count value (16 bytes)."]
    pub cb: [u8; 16usize],
    #[doc = "!< Size of the data being encrypted/decrypted in bytes."]
    pub data_size: u32,
    #[doc = "!< Size of the additional authenticated data in bytes."]
    pub aad_size: u32,
    #[doc = "!< Subkey for ghash functions in GCM."]
    pub h: [u8; 16usize],
    #[doc = "!< Precounter block generated from IV."]
    pub j0: [u8; 16usize],
    #[doc = "!< Current GHASH output"]
    pub y: [u8; 16usize],
    #[doc = "!< Partial blocks of data waiting to be processed"]
    pub partial_aad: [u8; 16usize],
    #[doc = "!< Amount of data in the partial block buffer"]
    pub partial_aad_size: u32,
    #[doc = "!< Last encrypted counter block"]
    pub enc_cb: [u8; 16usize],
    #[doc = "!< Last ciphertext block"]
    pub ciphertext_block: [u8; 16usize],
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atca_aes_gcm_ctx() {
    assert_eq!(
        ::std::mem::size_of::<atca_aes_gcm_ctx>(),
        128usize,
        concat!("Size of: ", stringify!(atca_aes_gcm_ctx))
    );
    assert_eq!(
        ::std::mem::align_of::<atca_aes_gcm_ctx>(),
        4usize,
        concat!("Alignment of ", stringify!(atca_aes_gcm_ctx))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).key_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(key_id)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).key_block as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(key_block)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).cb as *const _ as usize },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(cb)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).data_size as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(data_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).aad_size as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(aad_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).h as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(h)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).j0 as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(j0)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).y as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(y)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).partial_aad as *const _ as usize },
        76usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(partial_aad)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).partial_aad_size as *const _ as usize
        },
        92usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(partial_aad_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).enc_cb as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(enc_cb)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<atca_aes_gcm_ctx>())).ciphertext_block as *const _ as usize
        },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_gcm_ctx),
            "::",
            stringify!(ciphertext_block)
        )
    );
}
pub type atca_aes_gcm_ctx_t = atca_aes_gcm_ctx;
extern "C" {
    pub fn atcab_aes_gcm_init(
        ctx: *mut atca_aes_gcm_ctx_t,
        key_id: u16,
        key_block: u8,
        iv: *const u8,
        iv_size: size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_gcm_init_rand(
        ctx: *mut atca_aes_gcm_ctx_t,
        key_id: u16,
        key_block: u8,
        rand_size: size_t,
        free_field: *const u8,
        free_field_size: size_t,
        iv: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_gcm_aad_update(
        ctx: *mut atca_aes_gcm_ctx_t,
        aad: *const u8,
        aad_size: u32,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_gcm_encrypt_update(
        ctx: *mut atca_aes_gcm_ctx_t,
        plaintext: *const u8,
        plaintext_size: u32,
        ciphertext: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_gcm_encrypt_finish(
        ctx: *mut atca_aes_gcm_ctx_t,
        tag: *mut u8,
        tag_size: size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_gcm_decrypt_update(
        ctx: *mut atca_aes_gcm_ctx_t,
        ciphertext: *const u8,
        ciphertext_size: u32,
        plaintext: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_gcm_decrypt_finish(
        ctx: *mut atca_aes_gcm_ctx_t,
        tag: *const u8,
        tag_size: size_t,
        is_verified: *mut bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes(mode: u8, key_id: u16, aes_in: *const u8, aes_out: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_encrypt(
        key_id: u16,
        key_block: u8,
        plaintext: *const u8,
        ciphertext: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_decrypt(
        key_id: u16,
        key_block: u8,
        ciphertext: *const u8,
        plaintext: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_gfm(h: *const u8, input: *const u8, output: *mut u8) -> ATCA_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct atca_aes_cbc_ctx {
    #[doc = "!< Key location. Can either be a slot number or ATCA_TEMPKEY_KEYID for TempKey."]
    pub key_id: u16,
    #[doc = "!< Index of the 16-byte block to use within the key location for the actual key."]
    pub key_block: u8,
    #[doc = "!< Ciphertext from last operation."]
    pub ciphertext: [u8; 16usize],
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atca_aes_cbc_ctx() {
    assert_eq!(
        ::std::mem::size_of::<atca_aes_cbc_ctx>(),
        20usize,
        concat!("Size of: ", stringify!(atca_aes_cbc_ctx))
    );
    assert_eq!(
        ::std::mem::align_of::<atca_aes_cbc_ctx>(),
        2usize,
        concat!("Alignment of ", stringify!(atca_aes_cbc_ctx))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_cbc_ctx>())).key_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_cbc_ctx),
            "::",
            stringify!(key_id)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_cbc_ctx>())).key_block as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_cbc_ctx),
            "::",
            stringify!(key_block)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_cbc_ctx>())).ciphertext as *const _ as usize },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_cbc_ctx),
            "::",
            stringify!(ciphertext)
        )
    );
}
pub type atca_aes_cbc_ctx_t = atca_aes_cbc_ctx;
extern "C" {
    pub fn atcab_aes_cbc_init(
        ctx: *mut atca_aes_cbc_ctx_t,
        key_id: u16,
        key_block: u8,
        iv: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_cbc_encrypt_block(
        ctx: *mut atca_aes_cbc_ctx_t,
        plaintext: *const u8,
        ciphertext: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_cbc_decrypt_block(
        ctx: *mut atca_aes_cbc_ctx_t,
        ciphertext: *const u8,
        plaintext: *mut u8,
    ) -> ATCA_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct atca_aes_cmac_ctx {
    #[doc = "!< CBC context"]
    pub cbc_ctx: atca_aes_cbc_ctx_t,
    #[doc = "!< Number of bytes in current block."]
    pub block_size: u32,
    #[doc = "!< Unprocessed message storage."]
    pub block: [u8; 16usize],
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atca_aes_cmac_ctx() {
    assert_eq!(
        ::std::mem::size_of::<atca_aes_cmac_ctx>(),
        40usize,
        concat!("Size of: ", stringify!(atca_aes_cmac_ctx))
    );
    assert_eq!(
        ::std::mem::align_of::<atca_aes_cmac_ctx>(),
        4usize,
        concat!("Alignment of ", stringify!(atca_aes_cmac_ctx))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_cmac_ctx>())).cbc_ctx as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_cmac_ctx),
            "::",
            stringify!(cbc_ctx)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_cmac_ctx>())).block_size as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_cmac_ctx),
            "::",
            stringify!(block_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_cmac_ctx>())).block as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_cmac_ctx),
            "::",
            stringify!(block)
        )
    );
}
pub type atca_aes_cmac_ctx_t = atca_aes_cmac_ctx;
extern "C" {
    pub fn atcab_aes_cmac_init(
        ctx: *mut atca_aes_cmac_ctx_t,
        key_id: u16,
        key_block: u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_cmac_update(
        ctx: *mut atca_aes_cmac_ctx_t,
        data: *const u8,
        data_size: u32,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_cmac_finish(
        ctx: *mut atca_aes_cmac_ctx_t,
        cmac: *mut u8,
        cmac_size: u32,
    ) -> ATCA_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct atca_aes_ctr_ctx {
    #[doc = "!< Key location. Can either be a slot number or ATCA_TEMPKEY_KEYID for TempKey."]
    pub key_id: u16,
    #[doc = "!< Index of the 16-byte block to use within the key location for the actual key."]
    pub key_block: u8,
    #[doc = "!< Counter block, comprises of nonce + count value (16 bytes)."]
    pub cb: [u8; 16usize],
    #[doc = "!< Size of counter in the initialization vector."]
    pub counter_size: u8,
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atca_aes_ctr_ctx() {
    assert_eq!(
        ::std::mem::size_of::<atca_aes_ctr_ctx>(),
        20usize,
        concat!("Size of: ", stringify!(atca_aes_ctr_ctx))
    );
    assert_eq!(
        ::std::mem::align_of::<atca_aes_ctr_ctx>(),
        2usize,
        concat!("Alignment of ", stringify!(atca_aes_ctr_ctx))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_ctr_ctx>())).key_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_ctr_ctx),
            "::",
            stringify!(key_id)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_ctr_ctx>())).key_block as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_ctr_ctx),
            "::",
            stringify!(key_block)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_ctr_ctx>())).cb as *const _ as usize },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_ctr_ctx),
            "::",
            stringify!(cb)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_aes_ctr_ctx>())).counter_size as *const _ as usize },
        19usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_aes_ctr_ctx),
            "::",
            stringify!(counter_size)
        )
    );
}
pub type atca_aes_ctr_ctx_t = atca_aes_ctr_ctx;
extern "C" {
    pub fn atcab_aes_ctr_init(
        ctx: *mut atca_aes_ctr_ctx_t,
        key_id: u16,
        key_block: u8,
        counter_size: u8,
        iv: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_ctr_init_rand(
        ctx: *mut atca_aes_ctr_ctx_t,
        key_id: u16,
        key_block: u8,
        counter_size: u8,
        iv: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_ctr_block(
        ctx: *mut atca_aes_ctr_ctx_t,
        input: *const u8,
        output: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_ctr_encrypt_block(
        ctx: *mut atca_aes_ctr_ctx_t,
        plaintext: *const u8,
        ciphertext: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_ctr_decrypt_block(
        ctx: *mut atca_aes_ctr_ctx_t,
        ciphertext: *const u8,
        plaintext: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_aes_ctr_increment(ctx: *mut atca_aes_ctr_ctx_t) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_checkmac(
        mode: u8,
        key_id: u16,
        challenge: *const u8,
        response: *const u8,
        other_data: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_counter(mode: u8, counter_id: u16, counter_value: *mut u32) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_counter_increment(counter_id: u16, counter_value: *mut u32) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_counter_read(counter_id: u16, counter_value: *mut u32) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_derivekey(mode: u8, key_id: u16, mac: *const u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_ecdh_base(
        mode: u8,
        key_id: u16,
        public_key: *const u8,
        pms: *mut u8,
        out_nonce: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_ecdh(key_id: u16, public_key: *const u8, pms: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_ecdh_enc(
        key_id: u16,
        public_key: *const u8,
        pms: *mut u8,
        read_key: *const u8,
        read_key_id: u16,
        num_in: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_ecdh_ioenc(
        key_id: u16,
        public_key: *const u8,
        pms: *mut u8,
        io_key: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_ecdh_tempkey(public_key: *const u8, pms: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_ecdh_tempkey_ioenc(
        public_key: *const u8,
        pms: *mut u8,
        io_key: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_gendig(
        zone: u8,
        key_id: u16,
        other_data: *const u8,
        other_data_size: u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_genkey_base(
        mode: u8,
        key_id: u16,
        other_data: *const u8,
        public_key: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_genkey(key_id: u16, public_key: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_get_pubkey(key_id: u16, public_key: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_hmac(mode: u8, key_id: u16, digest: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_info_base(mode: u8, param2: u16, out_data: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_info(revision: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_info_set_latch(state: bool) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_info_get_latch(state: *mut bool) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_kdf(
        mode: u8,
        key_id: u16,
        details: u32,
        message: *const u8,
        out_data: *mut u8,
        out_nonce: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_lock(mode: u8, summary_crc: u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_lock_config_zone() -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_lock_config_zone_crc(summary_crc: u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_lock_data_zone() -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_lock_data_zone_crc(summary_crc: u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_lock_data_slot(slot: u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_mac(mode: u8, key_id: u16, challenge: *const u8, digest: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_nonce_base(
        mode: u8,
        zero: u16,
        num_in: *const u8,
        rand_out: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_nonce(num_in: *const u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_nonce_load(target: u8, num_in: *const u8, num_in_size: u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_nonce_rand(num_in: *const u8, rand_out: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_challenge(num_in: *const u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_challenge_seed_update(num_in: *const u8, rand_out: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_priv_write(
        key_id: u16,
        priv_key: *const u8,
        write_key_id: u16,
        write_key: *const u8,
        num_in: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_random(rand_out: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_read_zone(
        zone: u8,
        slot: u16,
        block: u8,
        offset: u8,
        data: *mut u8,
        len: u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_is_locked(zone: u8, is_locked: *mut bool) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_is_slot_locked(slot: u16, is_locked: *mut bool) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_read_bytes_zone(
        zone: u8,
        slot: u16,
        offset: size_t,
        data: *mut u8,
        length: size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_read_serial_number(serial_number: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_read_pubkey(slot: u16, public_key: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_read_sig(slot: u16, sig: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_read_config_zone(config_data: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_cmp_config_zone(config_data: *mut u8, same_config: *mut bool) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_read_enc(
        key_id: u16,
        block: u8,
        data: *mut u8,
        enc_key: *const u8,
        enc_key_id: u16,
        num_in: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_secureboot(
        mode: u8,
        param2: u16,
        digest: *const u8,
        signature: *const u8,
        mac: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_secureboot_mac(
        mode: u8,
        digest: *const u8,
        signature: *const u8,
        num_in: *const u8,
        io_key: *const u8,
        is_verified: *mut bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_selftest(mode: u8, param2: u16, result: *mut u8) -> ATCA_STATUS;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct atca_sha256_ctx {
    #[doc = "!< Total number of message bytes processed"]
    pub total_msg_size: u32,
    #[doc = "!< Number of bytes in current block"]
    pub block_size: u32,
    #[doc = "!< Unprocessed message storage"]
    pub block: [u8; 128usize],
}
#[allow(deref_nullptr)]
#[test]
fn bindgen_test_layout_atca_sha256_ctx() {
    assert_eq!(
        ::std::mem::size_of::<atca_sha256_ctx>(),
        136usize,
        concat!("Size of: ", stringify!(atca_sha256_ctx))
    );
    assert_eq!(
        ::std::mem::align_of::<atca_sha256_ctx>(),
        4usize,
        concat!("Alignment of ", stringify!(atca_sha256_ctx))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_sha256_ctx>())).total_msg_size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_sha256_ctx),
            "::",
            stringify!(total_msg_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_sha256_ctx>())).block_size as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_sha256_ctx),
            "::",
            stringify!(block_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<atca_sha256_ctx>())).block as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(atca_sha256_ctx),
            "::",
            stringify!(block)
        )
    );
}
pub type atca_sha256_ctx_t = atca_sha256_ctx;
pub type atca_hmac_sha256_ctx_t = atca_sha256_ctx_t;
extern "C" {
    pub fn atcab_sha_base(
        mode: u8,
        length: u16,
        data_in: *const u8,
        data_out: *mut u8,
        data_out_size: *mut u16,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_start() -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_update(message: *const u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_end(digest: *mut u8, length: u16, message: *const u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_read_context(context: *mut u8, context_size: *mut u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_write_context(context: *const u8, context_size: u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha(length: u16, message: *const u8, digest: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_hw_sha2_256(data: *const u8, data_size: size_t, digest: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_hw_sha2_256_init(ctx: *mut atca_sha256_ctx_t) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_hw_sha2_256_update(
        ctx: *mut atca_sha256_ctx_t,
        data: *const u8,
        data_size: size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_hw_sha2_256_finish(ctx: *mut atca_sha256_ctx_t, digest: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_hmac_init(ctx: *mut atca_hmac_sha256_ctx_t, key_slot: u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_hmac_update(
        ctx: *mut atca_hmac_sha256_ctx_t,
        data: *const u8,
        data_size: size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_hmac_finish(
        ctx: *mut atca_hmac_sha256_ctx_t,
        digest: *mut u8,
        target: u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sha_hmac(
        data: *const u8,
        data_size: size_t,
        key_slot: u16,
        digest: *mut u8,
        target: u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sign_base(mode: u8, key_id: u16, signature: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sign(key_id: u16, msg: *const u8, signature: *mut u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_sign_internal(
        key_id: u16,
        is_invalidate: bool,
        is_full_sn: bool,
        signature: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_updateextra(mode: u8, new_value: u16) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_verify(
        mode: u8,
        key_id: u16,
        signature: *const u8,
        public_key: *const u8,
        other_data: *const u8,
        mac: *mut u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_verify_extern(
        message: *const u8,
        signature: *const u8,
        public_key: *const u8,
        is_verified: *mut bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_verify_extern_mac(
        message: *const u8,
        signature: *const u8,
        public_key: *const u8,
        num_in: *const u8,
        io_key: *const u8,
        is_verified: *mut bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_verify_stored(
        message: *const u8,
        signature: *const u8,
        key_id: u16,
        is_verified: *mut bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_verify_stored_mac(
        message: *const u8,
        signature: *const u8,
        key_id: u16,
        num_in: *const u8,
        io_key: *const u8,
        is_verified: *mut bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_verify_validate(
        key_id: u16,
        signature: *const u8,
        other_data: *const u8,
        is_verified: *mut bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_verify_invalidate(
        key_id: u16,
        signature: *const u8,
        other_data: *const u8,
        is_verified: *mut bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_write(zone: u8, address: u16, value: *const u8, mac: *const u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_write_zone(
        zone: u8,
        slot: u16,
        block: u8,
        offset: u8,
        data: *const u8,
        len: u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_write_bytes_zone(
        zone: u8,
        slot: u16,
        offset_bytes: size_t,
        data: *const u8,
        length: size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_write_pubkey(slot: u16, public_key: *const u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_write_config_zone(config_data: *const u8) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_write_enc(
        key_id: u16,
        block: u8,
        data: *const u8,
        enc_key: *const u8,
        enc_key_id: u16,
        num_in: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_write_config_counter(counter_id: u16, counter_value: u32) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_printbin(binary: *mut u8, bin_len: size_t, add_space: bool) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_bin2hex(
        bin: *const u8,
        bin_size: size_t,
        hex: *mut ::std::os::raw::c_char,
        hex_size: *mut size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_bin2hex_(
        bin: *const u8,
        bin_size: size_t,
        hex: *mut ::std::os::raw::c_char,
        hex_size: *mut size_t,
        is_pretty: bool,
        is_space: bool,
        is_upper: bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_hex2bin(
        ascii_hex: *const ::std::os::raw::c_char,
        ascii_hex_len: size_t,
        binary: *mut u8,
        bin_len: *mut size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_hex2bin_(
        hex: *const ::std::os::raw::c_char,
        hex_size: size_t,
        bin: *mut u8,
        bin_size: *mut size_t,
        is_space: bool,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_printbin_sp(binary: *mut u8, bin_len: size_t) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_printbin_label(
        label: *const ::std::os::raw::c_char,
        binary: *mut u8,
        bin_len: size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn packHex(
        ascii_hex: *const ::std::os::raw::c_char,
        ascii_hex_len: size_t,
        packed_hex: *mut ::std::os::raw::c_char,
        packed_len: *mut size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn isDigit(c: ::std::os::raw::c_char) -> bool;
}
extern "C" {
    pub fn isWhiteSpace(c: ::std::os::raw::c_char) -> bool;
}
extern "C" {
    pub fn isAlpha(c: ::std::os::raw::c_char) -> bool;
}
extern "C" {
    pub fn isHexAlpha(c: ::std::os::raw::c_char) -> bool;
}
extern "C" {
    pub fn isHex(c: ::std::os::raw::c_char) -> bool;
}
extern "C" {
    pub fn isHexDigit(c: ::std::os::raw::c_char) -> bool;
}
extern "C" {
    pub fn isBase64(c: ::std::os::raw::c_char, rules: *const u8) -> bool;
}
extern "C" {
    pub fn isBase64Digit(c: ::std::os::raw::c_char, rules: *const u8) -> bool;
}
extern "C" {
    pub fn base64Index(c: ::std::os::raw::c_char, rules: *const u8) -> u8;
}
extern "C" {
    pub fn base64Char(id: u8, rules: *const u8) -> ::std::os::raw::c_char;
}
extern "C" {
    pub static mut atcab_b64rules_default: [u8; 4usize];
}
extern "C" {
    pub static mut atcab_b64rules_mime: [u8; 4usize];
}
extern "C" {
    pub static mut atcab_b64rules_urlsafe: [u8; 4usize];
}
extern "C" {
    pub fn atcab_base64decode_(
        encoded: *const ::std::os::raw::c_char,
        encoded_size: size_t,
        data: *mut u8,
        data_size: *mut size_t,
        rules: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_base64decode(
        encoded: *const ::std::os::raw::c_char,
        encoded_size: size_t,
        data: *mut u8,
        data_size: *mut size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_base64encode_(
        data: *const u8,
        data_size: size_t,
        encoded: *mut ::std::os::raw::c_char,
        encoded_size: *mut size_t,
        rules: *const u8,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_base64encode(
        data: *const u8,
        data_size: size_t,
        encoded: *mut ::std::os::raw::c_char,
        encoded_size: *mut size_t,
    ) -> ATCA_STATUS;
}
extern "C" {
    pub fn atcab_reversal(
        bin: *const u8,
        bin_size: size_t,
        dest: *mut u8,
        dest_size: *mut size_t,
    ) -> ATCA_STATUS;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_data {
    pub _address: u8,
}