==> Building on d ==> Attempt to run pkgver()... ==> Making package: python-tpm2-pytss 1.2.0-2 (Tue 09 Aug 2022 10:06:38 PM EEST) ==> Checking runtime dependencies... ==> Missing dependencies:  -> python-asn1crypto ==> Checking buildtime dependencies... ==> Missing dependencies:  -> python-build  -> python-installer  -> tpm2-tools ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-tpm2-pytss ./ PKGBUILD 1,416 100% 0.00kB/s 0:00:00 1,416 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-tpm2-pytss-1.2.0-2.log 885 100% 864.26kB/s 0:00:00 885 100% 864.26kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,346 bytes received 106 bytes 2,904.00 bytes/sec total size is 2,133 speedup is 1.47 ==> Ensuring required PGP keys are present...  -> Checking for 5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1... ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix3 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix3]...done ==> Making package: python-tpm2-pytss 1.2.0-2 (Tue Aug 9 19:06:54 2022) ==> Retrieving sources...  -> Cloning tpm2-pytss git repo... Cloning into bare repository '/home/felix/packages/python-tpm2-pytss/tpm2-pytss'... remote: Enumerating objects: 8617, done. remote: Counting objects: 0% (1/710) remote: Counting objects: 1% (8/710) remote: Counting objects: 2% (15/710) remote: Counting objects: 3% (22/710) remote: Counting objects: 4% (29/710) remote: Counting objects: 5% (36/710) remote: Counting objects: 6% (43/710) remote: Counting objects: 7% (50/710) remote: Counting objects: 8% (57/710) remote: Counting objects: 9% (64/710) remote: Counting objects: 10% (71/710) remote: Counting objects: 11% (79/710) remote: Counting objects: 12% (86/710) remote: Counting objects: 13% (93/710) remote: Counting objects: 14% (100/710) remote: Counting objects: 15% (107/710) remote: Counting objects: 16% (114/710) remote: Counting objects: 17% (121/710) remote: Counting objects: 18% (128/710) remote: Counting objects: 19% (135/710) remote: Counting objects: 20% (142/710) remote: Counting objects: 21% (150/710) remote: Counting objects: 22% (157/710) remote: Counting objects: 23% (164/710) remote: Counting objects: 24% (171/710) remote: Counting objects: 25% (178/710) remote: Counting objects: 26% (185/710) remote: Counting objects: 27% (192/710) remote: Counting objects: 28% (199/710) remote: Counting objects: 29% (206/710) remote: Counting objects: 30% (213/710) remote: Counting objects: 31% (221/710) remote: Counting objects: 32% (228/710) remote: Counting objects: 33% (235/710) remote: Counting objects: 34% (242/710) remote: Counting objects: 35% (249/710) remote: Counting objects: 36% (256/710) remote: Counting objects: 37% (263/710) remote: Counting objects: 38% (270/710) remote: Counting objects: 39% (277/710) remote: Counting objects: 40% (284/710) remote: Counting objects: 41% (292/710) remote: Counting objects: 42% (299/710) remote: Counting objects: 43% (306/710) remote: Counting objects: 44% (313/710) remote: Counting objects: 45% (320/710) remote: Counting objects: 46% (327/710) remote: Counting objects: 47% (334/710) remote: Counting objects: 48% (341/710) remote: Counting objects: 49% (348/710) remote: Counting objects: 50% (355/710) remote: Counting objects: 51% (363/710) remote: Counting objects: 52% (370/710) remote: Counting objects: 53% (377/710) remote: Counting objects: 54% (384/710) remote: Counting objects: 55% (391/710) remote: Counting objects: 56% (398/710) remote: Counting objects: 57% (405/710) remote: Counting objects: 58% (412/710) remote: Counting objects: 59% (419/710) remote: Counting objects: 60% (426/710) remote: Counting objects: 61% (434/710) remote: Counting objects: 62% (441/710) remote: Counting objects: 63% (448/710) remote: Counting objects: 64% (455/710) remote: Counting objects: 65% (462/710) remote: Counting objects: 66% (469/710) remote: Counting objects: 67% (476/710) remote: Counting objects: 68% (483/710) remote: Counting objects: 69% (490/710) remote: Counting objects: 70% (497/710) remote: Counting objects: 71% (505/710) remote: Counting objects: 72% (512/710) remote: Counting objects: 73% (519/710) remote: Counting objects: 74% (526/710) remote: Counting objects: 75% (533/710) remote: Counting objects: 76% (540/710) remote: Counting objects: 77% (547/710) remote: Counting objects: 78% (554/710) remote: Counting objects: 79% (561/710) remote: Counting objects: 80% (568/710) remote: Counting objects: 81% (576/710) remote: Counting objects: 82% (583/710) remote: Counting objects: 83% (590/710) remote: Counting objects: 84% (597/710) remote: Counting objects: 85% (604/710) remote: Counting objects: 86% (611/710) remote: Counting objects: 87% (618/710) remote: Counting objects: 88% (625/710) remote: Counting objects: 89% (632/710) remote: Counting objects: 90% (639/710) remote: Counting objects: 91% (647/710) remote: Counting objects: 92% (654/710) remote: Counting objects: 93% (661/710) remote: Counting objects: 94% (668/710) remote: Counting objects: 95% (675/710) remote: Counting objects: 96% (682/710) remote: Counting objects: 97% (689/710) remote: Counting objects: 98% (696/710) remote: Counting objects: 99% (703/710) remote: Counting objects: 100% (710/710) remote: Counting objects: 100% (710/710), done. remote: Compressing objects: 0% (1/309) remote: Compressing objects: 1% (4/309) remote: Compressing objects: 2% (7/309) remote: Compressing objects: 3% (10/309) remote: Compressing objects: 4% (13/309) remote: Compressing objects: 5% (16/309) remote: Compressing objects: 6% (19/309) remote: Compressing objects: 7% (22/309) remote: Compressing objects: 8% (25/309) remote: Compressing objects: 9% (28/309) remote: Compressing objects: 10% (31/309) remote: Compressing objects: 11% (34/309) remote: Compressing objects: 12% (38/309) remote: Compressing objects: 13% (41/309) remote: Compressing objects: 14% (44/309) remote: Compressing objects: 15% (47/309) remote: Compressing objects: 16% (50/309) remote: Compressing objects: 17% (53/309) remote: Compressing objects: 18% (56/309) remote: Compressing objects: 19% (59/309) remote: Compressing objects: 20% (62/309) remote: Compressing objects: 21% (65/309) remote: Compressing objects: 22% (68/309) remote: Compressing objects: 23% (72/309) remote: Compressing objects: 24% (75/309) remote: Compressing objects: 25% (78/309) remote: Compressing objects: 26% (81/309) remote: Compressing objects: 27% (84/309) remote: Compressing objects: 28% (87/309) remote: Compressing objects: 29% (90/309) remote: Compressing objects: 30% (93/309) remote: Compressing objects: 31% (96/309) remote: Compressing objects: 32% (99/309) remote: Compressing objects: 33% (102/309) remote: Compressing objects: 34% (106/309) remote: Compressing objects: 35% (109/309) remote: Compressing objects: 36% (112/309) remote: Compressing objects: 37% (115/309) remote: Compressing objects: 38% (118/309) remote: Compressing objects: 39% (121/309) remote: Compressing objects: 40% (124/309) remote: Compressing objects: 41% (127/309) remote: Compressing objects: 42% (130/309) remote: Compressing objects: 43% (133/309) remote: Compressing objects: 44% (136/309) remote: Compressing objects: 45% (140/309) remote: Compressing objects: 46% (143/309) remote: Compressing objects: 47% (146/309) remote: Compressing objects: 48% (149/309) remote: Compressing objects: 49% (152/309) remote: Compressing objects: 50% (155/309) remote: Compressing objects: 51% (158/309) remote: Compressing objects: 52% (161/309) remote: Compressing objects: 53% (164/309) remote: Compressing objects: 54% (167/309) remote: Compressing objects: 55% (170/309) remote: Compressing objects: 56% (174/309) remote: Compressing objects: 57% (177/309) remote: Compressing objects: 58% (180/309) remote: Compressing objects: 59% (183/309) remote: Compressing objects: 60% (186/309) remote: Compressing objects: 61% (189/309) remote: Compressing objects: 62% (192/309) remote: Compressing objects: 63% (195/309) remote: Compressing objects: 64% (198/309) remote: Compressing objects: 65% (201/309) remote: Compressing objects: 66% (204/309) remote: Compressing objects: 67% (208/309) remote: Compressing objects: 68% (211/309) remote: Compressing objects: 69% (214/309) remote: Compressing objects: 70% (217/309) remote: Compressing objects: 71% (220/309) remote: Compressing objects: 72% (223/309) remote: Compressing objects: 73% (226/309) remote: Compressing objects: 74% (229/309) remote: Compressing objects: 75% (232/309) remote: Compressing objects: 76% (235/309) remote: Compressing objects: 77% (238/309) remote: Compressing objects: 78% (242/309) remote: Compressing objects: 79% (245/309) remote: Compressing objects: 80% (248/309) remote: Compressing objects: 81% (251/309) remote: Compressing objects: 82% (254/309) remote: Compressing objects: 83% (257/309) remote: Compressing objects: 84% (260/309) remote: Compressing objects: 85% (263/309) remote: Compressing objects: 86% (266/309) remote: Compressing objects: 87% (269/309) remote: Compressing objects: 88% (272/309) remote: Compressing objects: 89% (276/309) remote: Compressing objects: 90% (279/309) remote: Compressing objects: 91% (282/309) remote: Compressing objects: 92% (285/309) remote: Compressing objects: 93% (288/309) remote: Compressing objects: 94% (291/309) remote: Compressing objects: 95% (294/309) remote: Compressing objects: 96% (297/309) remote: Compressing objects: 97% (300/309) remote: Compressing objects: 98% (303/309) remote: Compressing objects: 99% (306/309) remote: Compressing objects: 100% (309/309) remote: Compressing objects: 100% (309/309), done. Receiving objects: 0% (1/8617) Receiving objects: 1% (87/8617) Receiving objects: 2% (173/8617) Receiving objects: 3% (259/8617) Receiving objects: 4% (345/8617) Receiving objects: 5% (431/8617) Receiving objects: 6% (518/8617) Receiving objects: 7% (604/8617) Receiving objects: 8% (690/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 9% (776/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 10% (862/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 11% (948/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 12% (1035/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 13% (1121/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 14% (1207/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 15% (1293/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 16% (1379/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 17% (1465/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 18% (1552/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 19% (1638/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 20% (1724/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 21% (1810/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 22% (1896/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 23% (1982/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 24% (2069/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 25% (2155/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 26% (2241/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 27% (2327/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 28% (2413/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 29% (2499/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 30% (2586/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 31% (2672/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 32% (2758/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 33% (2844/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 34% (2930/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 35% (3016/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 36% (3103/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 37% (3189/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 38% (3275/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 39% (3361/8617), 140.01 KiB | 260.00 KiB/s Receiving objects: 39% (3397/8617), 812.01 KiB | 785.00 KiB/s Receiving objects: 40% (3447/8617), 812.01 KiB | 785.00 KiB/s Receiving objects: 41% (3533/8617), 812.01 KiB | 785.00 KiB/s Receiving objects: 42% (3620/8617), 812.01 KiB | 785.00 KiB/s Receiving objects: 43% (3706/8617), 812.01 KiB | 785.00 KiB/s Receiving objects: 44% (3792/8617), 812.01 KiB | 785.00 KiB/s Receiving objects: 45% (3878/8617), 812.01 KiB | 785.00 KiB/s Receiving objects: 46% (3964/8617), 3.29 MiB | 2.10 MiB/s Receiving objects: 47% (4050/8617), 3.29 MiB | 2.10 MiB/s Receiving objects: 47% (4103/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 48% (4137/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 49% (4223/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 50% (4309/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 51% (4395/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 52% (4481/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 53% (4568/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 54% (4654/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 55% (4740/8617), 5.31 MiB | 2.29 MiB/s Receiving objects: 55% (4769/8617), 10.15 MiB | 3.50 MiB/s Receiving objects: 55% (4792/8617), 16.00 MiB | 4.08 MiB/s Receiving objects: 56% (4826/8617), 19.39 MiB | 4.34 MiB/s Receiving objects: 56% (4911/8617), 22.55 MiB | 4.54 MiB/s Receiving objects: 57% (4912/8617), 22.55 MiB | 4.54 MiB/s Receiving objects: 58% (4998/8617), 25.79 MiB | 5.17 MiB/s Receiving objects: 58% (5081/8617), 28.30 MiB | 5.57 MiB/s Receiving objects: 59% (5085/8617), 28.30 MiB | 5.57 MiB/s Receiving objects: 60% (5171/8617), 29.46 MiB | 5.23 MiB/s Receiving objects: 61% (5257/8617), 29.46 MiB | 5.23 MiB/s Receiving objects: 61% (5295/8617), 29.46 MiB | 5.23 MiB/s Receiving objects: 62% (5343/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 63% (5429/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 64% (5515/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 65% (5602/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 66% (5688/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 67% (5774/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 68% (5860/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 69% (5946/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 70% (6032/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 71% (6119/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 72% (6205/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 73% (6291/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 74% (6377/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 75% (6463/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 76% (6549/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 77% (6636/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 78% (6722/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 79% (6808/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 80% (6894/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 81% (6980/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 82% (7066/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 83% (7153/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 84% (7239/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 85% (7325/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 86% (7411/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 87% (7497/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 88% (7583/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 89% (7670/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 90% (7756/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 91% (7842/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 92% (7928/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 93% (8014/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 94% (8100/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 95% (8187/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 96% (8273/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 97% (8359/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 98% (8445/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 99% (8531/8617), 33.88 MiB | 5.57 MiB/s remote: Total 8617 (delta 487), reused 565 (delta 393), pack-reused 7907 Receiving objects: 100% (8617/8617), 33.88 MiB | 5.57 MiB/s Receiving objects: 100% (8617/8617), 37.50 MiB | 4.73 MiB/s, done. Resolving deltas: 0% (0/6228) Resolving deltas: 1% (63/6228) Resolving deltas: 2% (125/6228) Resolving deltas: 3% (187/6228) Resolving deltas: 4% (250/6228) Resolving deltas: 5% (312/6228) Resolving deltas: 6% (374/6228) Resolving deltas: 7% (436/6228) Resolving deltas: 8% (499/6228) Resolving deltas: 9% (561/6228) Resolving deltas: 10% (623/6228) Resolving deltas: 11% (686/6228) Resolving deltas: 12% (748/6228) Resolving deltas: 13% (810/6228) Resolving deltas: 14% (872/6228) Resolving deltas: 15% (935/6228) Resolving deltas: 16% (998/6228) Resolving deltas: 17% (1059/6228) Resolving deltas: 18% (1122/6228) Resolving deltas: 19% (1184/6228) Resolving deltas: 20% (1246/6228) Resolving deltas: 21% (1308/6228) Resolving deltas: 22% (1371/6228) Resolving deltas: 23% (1433/6228) Resolving deltas: 24% (1495/6228) Resolving deltas: 25% (1557/6228) Resolving deltas: 26% (1620/6228) Resolving deltas: 27% (1682/6228) Resolving deltas: 28% (1744/6228) Resolving deltas: 29% (1807/6228) Resolving deltas: 30% (1869/6228) Resolving deltas: 31% (1931/6228) Resolving deltas: 32% (1993/6228) Resolving deltas: 33% (2056/6228) Resolving deltas: 34% (2118/6228) Resolving deltas: 35% (2180/6228) Resolving deltas: 36% (2243/6228) Resolving deltas: 37% (2306/6228) Resolving deltas: 38% (2367/6228) Resolving deltas: 39% (2429/6228) Resolving deltas: 40% (2492/6228) Resolving deltas: 41% (2554/6228) Resolving deltas: 42% (2616/6228) Resolving deltas: 43% (2679/6228) Resolving deltas: 44% (2741/6228) Resolving deltas: 45% (2803/6228) Resolving deltas: 46% (2865/6228) Resolving deltas: 47% (2928/6228) Resolving deltas: 48% (2990/6228) Resolving deltas: 49% (3052/6228) Resolving deltas: 50% (3115/6228) Resolving deltas: 51% (3177/6228) Resolving deltas: 52% (3239/6228) Resolving deltas: 53% (3301/6228) Resolving deltas: 54% (3364/6228) Resolving deltas: 55% (3426/6228) Resolving deltas: 56% (3488/6228) Resolving deltas: 57% (3550/6228) Resolving deltas: 58% (3613/6228) Resolving deltas: 59% (3675/6228) Resolving deltas: 60% (3737/6228) Resolving deltas: 61% (3800/6228) Resolving deltas: 62% (3862/6228) Resolving deltas: 63% (3924/6228) Resolving deltas: 64% (3987/6228) Resolving deltas: 65% (4049/6228) Resolving deltas: 66% (4111/6228) Resolving deltas: 67% (4173/6228) Resolving deltas: 68% (4237/6228) Resolving deltas: 69% (4298/6228) Resolving deltas: 70% (4360/6228) Resolving deltas: 71% (4422/6228) Resolving deltas: 72% (4485/6228) Resolving deltas: 73% (4547/6228) Resolving deltas: 74% (4609/6228) Resolving deltas: 75% (4672/6228) Resolving deltas: 76% (4734/6228) Resolving deltas: 77% (4796/6228) Resolving deltas: 78% (4858/6228) Resolving deltas: 79% (4921/6228) Resolving deltas: 80% (4983/6228) Resolving deltas: 81% (5045/6228) Resolving deltas: 82% (5107/6228) Resolving deltas: 83% (5170/6228) Resolving deltas: 84% (5233/6228) Resolving deltas: 85% (5294/6228) Resolving deltas: 86% (5357/6228) Resolving deltas: 87% (5419/6228) Resolving deltas: 88% (5481/6228) Resolving deltas: 89% (5543/6228) Resolving deltas: 90% (5606/6228) Resolving deltas: 91% (5668/6228) Resolving deltas: 92% (5730/6228) Resolving deltas: 93% (5793/6228) Resolving deltas: 94% (5855/6228) Resolving deltas: 95% (5917/6228) Resolving deltas: 96% (5979/6228) Resolving deltas: 97% (6042/6228) Resolving deltas: 98% (6104/6228) Resolving deltas: 99% (6166/6228) Resolving deltas: 99% (6208/6228) Resolving deltas: 100% (6228/6228) Resolving deltas: 100% (6228/6228), done. ==> Validating source files with sha512sums... tpm2-pytss ... Skipped ==> Verifying source file signatures with gpg... tpm2-pytss git repo ... Passed ==> Making package: python-tpm2-pytss 1.2.0-2 (Tue Aug 9 19:07:26 2022) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (13) New Version Net Change Download Size core/json-c 0.16-1 0.16 MiB core/libnsl 2.0.0-2 0.06 MiB extra/libyaml 0.2.5-1 0.14 MiB extra/python-ply 3.11-10 0.31 MiB extra/python-pycparser 2.21-3 1.39 MiB extra/python-pyparsing 3.0.9-1 0.96 MiB core/python 3.10.5-1 80.43 MiB extra/python-asn1crypto 1.5.1-1 1.21 MiB 0.18 MiB extra/python-cffi 1.15.1-1 1.00 MiB extra/python-cryptography 37.0.4-1 3.54 MiB extra/python-packaging 21.3-1 0.26 MiB community/python-yaml 6.0-1 0.68 MiB core/tpm2-tss 3.2.0-1 2.40 MiB Total Download Size: 0.18 MiB Total Installed Size: 92.53 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-asn1crypto-1.5.1-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-asn1crypto... installing python-ply... installing python-pycparser... installing python-cffi... installing python-cryptography... installing python-pyparsing... Optional dependencies for python-pyparsing python-railroad-diagrams: for generating Railroad Diagrams python-jinja: for generating Railroad Diagrams installing python-packaging... installing libyaml... installing python-yaml... installing json-c... installing tpm2-tss... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (28) New Version Net Change Download Size extra/fuse-common 3.11.0-1 0.00 MiB extra/fuse2 2.9.9-4 0.40 MiB 0.11 MiB extra/json-glib 1.6.6-2 0.92 MiB community/libtpms 0.9.5-1 0.84 MiB 0.40 MiB extra/perl-error 0.17029-4 0.04 MiB extra/perl-mailtools 2.21-6 0.11 MiB extra/perl-timedate 2.33-4 0.08 MiB community/python-apipkg 3.0.1-1 0.04 MiB extra/python-appdirs 1.4.4-6 0.07 MiB extra/python-attrs 21.4.0-1 0.45 MiB community/python-iniconfig 1.1.1-5 0.02 MiB community/python-more-itertools 8.13.0-2 0.48 MiB extra/python-ordered-set 4.0.2-6 0.06 MiB extra/python-pep517 0.12.0-4 0.13 MiB community/python-pluggy 1.0.0-1 0.10 MiB community/python-py 1.11.0-1 0.71 MiB extra/python-tomli 2.0.1-1 0.08 MiB community/python-typing_extensions 4.2.0-1 0.19 MiB extra/git 2.37.1-1 30.56 MiB community/python-build 0.8.0-1 0.97 MiB community/python-installer 0.5.1-1 1.13 MiB community/python-pkgconfig 1.5.5-3 0.03 MiB 0.01 MiB community/python-pytest 7.1.2-1 2.62 MiB extra/python-setuptools 1:59.5.0-1 2.96 MiB community/python-setuptools-scm 7.0.4-1 0.26 MiB community/python-wheel 0.37.1-1 0.16 MiB community/swtpm 0.7.3-1 0.41 MiB 0.17 MiB community/tpm2-tools 5.2-1 1.30 MiB Total Download Size: 0.70 MiB Total Installed Size: 45.12 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... libtpms-0.9.5-1-riscv64 downloading... swtpm-0.7.3-1-riscv64 downloading... fuse2-2.9.9-4-riscv64 downloading... python-pkgconfig-1.5.5-3-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing python-tomli... installing python-pep517... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-pkgconfig... installing python-appdirs... installing python-more-itertools... installing python-ordered-set... installing python-setuptools... installing python-typing_extensions... installing python-setuptools-scm... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-attrs... installing python-iniconfig... installing python-pluggy... installing python-apipkg... installing python-py... installing python-pytest... installing fuse-common... installing fuse2... installing json-glib... installing libtpms... installing swtpm... installing tpm2-tools... Optional dependencies for tpm2-tools tpm2-abrmd: user space resource manager :: Running post-transaction hooks... (1/1) Warn about old perl modules [?25h==> Retrieving sources... ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Creating working copy of tpm2-pytss git repo... Cloning into 'tpm2-pytss'... done. Switched to a new branch 'makepkg' ==> Starting pkgver()... ==> Starting build()... adding path: /build/python-tpm2-pytss/src/tpm2-pytss/scripts running bdist_wheel running build running build_py creating build creating build/lib.linux-riscv64-3.10 creating build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/ESAPI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/FAPI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/TCTI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/TCTILdr.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/TSS2_Exception.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/callbacks.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/encoding.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/fapi_info.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/tsskey.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/utils.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/__init__.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/constants.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/types.py -> build/lib.linux-riscv64-3.10/tpm2_pytss creating build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/__init__.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/constants.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/crypto.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/templates.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/utils.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal running build_ext generating cffi module 'build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c' creating build/temp.linux-riscv64-3.10 building 'tpm2_pytss._libtpm2_pytss' extension creating build/temp.linux-riscv64-3.10/build creating build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -I/usr/include/python3.10 -c build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c -o build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.o build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48575:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48575 | static uint32_t _cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(TPMS_ALGORITHM_DESCRIPTION const * x0, uint8_t * x1, size_t x2, size_t * x3) | ^~~~~~ In file included from /usr/include/tss2/tss2_tcti.h:40, from /usr/include/tss2/tss2_esys.h:9, from build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:571: /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48577:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’ is deprecated [-Wdeprecated-declarations] 48577 | return Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(x0, x1, x2, x3); | ^~~~~~ In file included from build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:575: /usr/include/tss2/tss2_mu.h:752:1: note: declared here 752 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_f_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48583:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48583 | TPMS_ALGORITHM_DESCRIPTION const * x0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48602:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48602 | x0 = ((size_t)datasize) <= 640 ? (TPMS_ALGORITHM_DESCRIPTION const *)alloca((size_t)datasize) : NULL; | ^~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48632:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’ is deprecated [-Wdeprecated-declarations] 48632 | { result = Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(x0, x1, x2, x3); } | ^ /usr/include/tss2/tss2_mu.h:752:1: note: declared here 752 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: At top level: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48645:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48645 | static uint32_t _cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(uint8_t const * x0, size_t x1, size_t * x2, TPMS_ALGORITHM_DESCRIPTION * x3) | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48647:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’ is deprecated [-Wdeprecated-declarations] 48647 | return Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(x0, x1, x2, x3); | ^~~~~~ /usr/include/tss2/tss2_mu.h:760:1: note: declared here 760 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_f_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48656:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48656 | TPMS_ALGORITHM_DESCRIPTION * x3; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48694:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48694 | x3 = ((size_t)datasize) <= 640 ? (TPMS_ALGORITHM_DESCRIPTION *)alloca((size_t)datasize) : NULL; | ^~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48702:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’ is deprecated [-Wdeprecated-declarations] 48702 | { result = Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(x0, x1, x2, x3); } | ^ /usr/include/tss2/tss2_mu.h:760:1: note: declared here 760 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: At top level: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:66507:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 66507 | static void _cffi_checkfld__TPMS_ALGORITHM_DESCRIPTION(TPMS_ALGORITHM_DESCRIPTION *p) | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:66514:8: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 66514 | struct _cffi_align__TPMS_ALGORITHM_DESCRIPTION { char x; TPMS_ALGORITHM_DESCRIPTION y; }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69395:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 69395 | { "alg", offsetof(TPMS_ALGORITHM_DESCRIPTION, alg), | ^ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69396:12: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 69396 | sizeof(((TPMS_ALGORITHM_DESCRIPTION *)0)->alg), | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69398:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 69398 | { "attributes", offsetof(TPMS_ALGORITHM_DESCRIPTION, attributes), | ^ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69399:19: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 69399 | sizeof(((TPMS_ALGORITHM_DESCRIPTION *)0)->attributes), | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:70317:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 70317 | sizeof(TPMS_ALGORITHM_DESCRIPTION), offsetof(struct _cffi_align__TPMS_ALGORITHM_DESCRIPTION, y), 87, 2 }, | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.o -L/usr/lib -ltss2-esys -ltss2-tctildr -ltss2-rc -ltss2-mu -ltss2-fapi -o build/lib.linux-riscv64-3.10/tpm2_pytss/_libtpm2_pytss.abi3.so generated _type_map with 61 mappings in build/lib.linux-riscv64-3.10/tpm2_pytss/internal/type_mapping.py and src/tpm2_pytss/internal/type_mapping.py generated _element_type_map with 5 mappings generated _versions with 2 versions installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64 creating build/bdist.linux-riscv64/wheel creating build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/TCTI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/TSS2_Exception.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/callbacks.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/encoding.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/fapi_info.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/tsskey.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/utils.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/__init__.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/constants.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/types.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss creating build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/__init__.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/constants.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/crypto.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/templates.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/type_mapping.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/versions.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/_libtpm2_pytss.abi3.so -> build/bdist.linux-riscv64/wheel/tpm2_pytss running install_egg_info running egg_info creating src/tpm2_pytss.egg-info writing src/tpm2_pytss.egg-info/PKG-INFO writing dependency_links to src/tpm2_pytss.egg-info/dependency_links.txt writing requirements to src/tpm2_pytss.egg-info/requires.txt writing top-level names to src/tpm2_pytss.egg-info/top_level.txt writing manifest file 'src/tpm2_pytss.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'src/tpm2_pytss/version' warning: no files found matching 'src/tpm2_pytss/config.json' warning: no files found matching '*' under directory 'src/tpm2_pytss/swig' warning: no files found matching '*' under directory 'tests' warning: no files found matching '*' under directory 'examples' warning: no previously-included files found matching 'src/tpm2_pytss/internal/type_mapping.py' adding license file 'LICENSE' writing manifest file 'src/tpm2_pytss.egg-info/SOURCES.txt' Copying src/tpm2_pytss.egg-info to build/bdist.linux-riscv64/wheel/tpm2_pytss-1.2.0-py3.10.egg-info running install_scripts adding license file "LICENSE" (matched pattern "LICEN[CS]E*") creating build/bdist.linux-riscv64/wheel/tpm2_pytss-1.2.0.dist-info/WHEEL creating '/build/python-tpm2-pytss/src/tpm2-pytss/dist/tmpgq3fyey6/tpm2_pytss-1.2.0-cp310-cp310-linux_riscv64.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'tpm2_pytss/ESAPI.py' adding 'tpm2_pytss/FAPI.py' adding 'tpm2_pytss/TCTI.py' adding 'tpm2_pytss/TCTILdr.py' adding 'tpm2_pytss/TSS2_Exception.py' adding 'tpm2_pytss/__init__.py' adding 'tpm2_pytss/_libtpm2_pytss.abi3.so' adding 'tpm2_pytss/callbacks.py' adding 'tpm2_pytss/constants.py' adding 'tpm2_pytss/encoding.py' adding 'tpm2_pytss/fapi_info.py' adding 'tpm2_pytss/tsskey.py' adding 'tpm2_pytss/types.py' adding 'tpm2_pytss/utils.py' adding 'tpm2_pytss/internal/__init__.py' adding 'tpm2_pytss/internal/constants.py' adding 'tpm2_pytss/internal/crypto.py' adding 'tpm2_pytss/internal/templates.py' adding 'tpm2_pytss/internal/type_mapping.py' adding 'tpm2_pytss/internal/utils.py' adding 'tpm2_pytss/internal/versions.py' adding 'tpm2_pytss-1.2.0.dist-info/LICENSE' adding 'tpm2_pytss-1.2.0.dist-info/METADATA' adding 'tpm2_pytss-1.2.0.dist-info/WHEEL' adding 'tpm2_pytss-1.2.0.dist-info/top_level.txt' adding 'tpm2_pytss-1.2.0.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel * Getting dependencies for wheel... * Building wheel... Successfully built tpm2_pytss-1.2.0-cp310-cp310-linux_riscv64.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0 rootdir: /build/python-tpm2-pytss/src/tpm2-pytss collected 521 items test/test_crypto.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 9%] test/test_encoding.py .....................................FsEsEsEFFEFEFE [ 17%] FEFEFEFEFEFEFEFEFEFEFFFFFFFFFFFFFFFFF [ 23%] test/test_esapi.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 33%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 46%] test/test_exception.py ...... [ 47%] test/test_fapi.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 57%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 69%] test/test_internal.py . [ 69%] test/test_tcti.py FFFFFFFF [ 71%] test/test_tsskey.py FFFFFFFFFFFFF [ 73%] test/test_types.py ..................................................... [ 84%] ............................................................... [ 96%] test/test_utils.py FFFFFFFFFFFFFFFFFFFF [100%] ==================================== ERRORS ==================================== ______________ ERROR at teardown of ToolsTest.test_decode_int_nt _______________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________ ERROR at teardown of ToolsTest.test_decode_nt_extend _____________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ______________ ERROR at teardown of ToolsTest.test_decode_nt_pin _______________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________ ERROR at teardown of ToolsTest.test_tools_decode_pcr_tuples __________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____ ERROR at teardown of ToolsTest.test_tools_decode_tmpl_pcr_selection ______ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________ ERROR at teardown of ToolsTest.test_tools_decode_tpm2b_name __________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________ ERROR at teardown of ToolsTest.test_tools_decode_tpma_session _________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __________ ERROR at teardown of ToolsTest.test_tools_decode_tpml_alg ___________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ______ ERROR at teardown of ToolsTest.test_tools_decode_tpml_alg_property ______ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __________ ERROR at teardown of ToolsTest.test_tools_decode_tpml_cca ___________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____ ERROR at teardown of ToolsTest.test_tools_decode_tpml_digest_values ______ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______ ERROR at teardown of ToolsTest.test_tools_decode_tpml_ecc_curve ________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________ ERROR at teardown of ToolsTest.test_tools_decode_tpml_handle _________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __ ERROR at teardown of ToolsTest.test_tools_decode_tpml_tagged_tpm_property ___ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______ ERROR at teardown of ToolsTest.test_tools_decode_tpms_nv_public ________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________ ERROR at teardown of ToolsTest.test_tools_decode_tpmt_public _________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________ ERROR at setup of TestFapiECC.test_provision_ok ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ---------------------------- Captured stderr setup ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:fapi:src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/tmp9gph7zpr/policy does not exist, creating WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50945: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ERROR:fapi:src/tss2-fapi/api/Fapi_Initialize.c:227:Fapi_Initialize_Finish() Initializing TCTI. ErrorCode (0x000a000a) ______________ ERROR at setup of TestFapiECC.test_provision_fail _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_get_random _________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiECC.test_get_random_zero ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_get_random_large ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_get_random_negative ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________________ ERROR at setup of TestFapiECC.test_get_info __________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________________ ERROR at setup of TestFapiECC.test_list ____________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_list_search_path ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_list_bad_search_path ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_create_key _________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_create_key_double_ok ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_create_key_double_fail ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiECC.test_get_esys_blob_contextload _________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_get_esys_blob_bad _____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiECC.test_get_esys_blob_deserialize _________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiECC.test_verify ___________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_verify_fail ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_import_key_double_ok ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_import_key_double_fail ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_import_policy_double_ok __________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiECC.test_import_policy_double_fail _________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_import_exported_key ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_export_imported_policy ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_create_seal ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_create_seal_double_ok ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_create_seal_double_fail __________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_create_seal_random _____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____ ERROR at setup of TestFapiECC.test_create_seal_both_data_and_size_fail ____ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __ ERROR at setup of TestFapiECC.test_create_seal_neither_data_nor_size_fail ___ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiECC.test_unseal ___________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_quote_verify ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_export_key _________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_delete_key _________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_set_get_description ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_get_empty_description ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_set_get_app_data ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiECC.test_get_no_app_data ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_set_get_certificate ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_get_empty_certificate ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____ ERROR at setup of TestFapiECC.test_get_empty_platform_certificates_ok _____ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___ ERROR at setup of TestFapiECC.test_get_empty_platform_certificates_fail ____ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________________ ERROR at setup of TestFapiECC.test_pcr_read __________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiECC.test_pcr_extend_read ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_nv_write_read _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_nv_increment ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiECC.test_nv_pcr ___________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_nv_set_bits ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_set_auth_callback _____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_unset_auth_callback ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_write_authorize_nv _____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_authorize_policy ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_policy_signed _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiECC.test_policy_branched ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_policy_action _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________________ ERROR at setup of TestFapiECC.test_sign ____________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_get_tpm_blobs _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_provision_ok ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ---------------------------- Captured stderr setup ----------------------------- WARNING:fapi:src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/tmps1484sve/policy does not exist, creating WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50945: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ERROR:fapi:src/tss2-fapi/api/Fapi_Initialize.c:227:Fapi_Initialize_Finish() Initializing TCTI. ErrorCode (0x000a000a) ______________ ERROR at setup of TestFapiRSA.test_provision_fail _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_get_random _________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_get_random_zero ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_get_random_large ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_get_random_negative ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________________ ERROR at setup of TestFapiRSA.test_get_info __________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________________ ERROR at setup of TestFapiRSA.test_list ____________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_list_search_path ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_list_bad_search_path ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_create_key _________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_create_key_double_ok ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_create_key_double_fail ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiRSA.test_get_esys_blob_contextload _________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_get_esys_blob_bad _____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiRSA.test_get_esys_blob_deserialize _________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiRSA.test_verify ___________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_verify_fail ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_import_key_double_ok ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_import_key_double_fail ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_import_policy_double_ok __________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiRSA.test_import_policy_double_fail _________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_import_exported_key ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_export_imported_policy ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_create_seal ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_create_seal_double_ok ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_create_seal_double_fail __________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_create_seal_random _____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____ ERROR at setup of TestFapiRSA.test_create_seal_both_data_and_size_fail ____ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __ ERROR at setup of TestFapiRSA.test_create_seal_neither_data_nor_size_fail ___ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiRSA.test_unseal ___________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_quote_verify ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_export_key _________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_delete_key _________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_set_get_description ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_get_empty_description ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_set_get_app_data ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_get_no_app_data ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_set_get_certificate ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_get_empty_certificate ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____ ERROR at setup of TestFapiRSA.test_get_empty_platform_certificates_ok _____ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___ ERROR at setup of TestFapiRSA.test_get_empty_platform_certificates_fail ____ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________________ ERROR at setup of TestFapiRSA.test_pcr_read __________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_pcr_extend_read ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_nv_write_read _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_nv_increment ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiRSA.test_nv_pcr ___________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_nv_set_bits ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_set_auth_callback _____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_unset_auth_callback ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_write_authorize_nv _____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_authorize_policy ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_policy_signed _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_policy_branched ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_policy_action _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________________ ERROR at setup of TestFapiRSA.test_sign ____________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_get_tpm_blobs _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_encrypt_decrypt ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at teardown of TestFapiRSA.test_encrypt_decrypt _____________ @pytest.fixture(scope="module") def simulator(): tpm = TpmSimulator.getSimulator() tpm.start() yield tpm > tpm.close() test/test_fapi.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError =================================== FAILURES =================================== ________________________ CryptoTest.test_ecc_bad_curves ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=40599' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40599' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40599' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40599: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ CryptoTest.test_encrypted_key _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=6883' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=6883' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=6883' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 6883: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_from_pem_with_scheme _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=44445' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44445' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44445' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44445: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_from_pem_with_symmetric ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=2976' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=2976' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=2976' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 2976: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ CryptoTest.test_get_alg ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=55319' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=55319' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=55319' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55319: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ CryptoTest.test_kdfa _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=55094' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=55094' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=55094' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55094: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ CryptoTest.test_kdfe _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=28715' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28715' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28715' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28715: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ CryptoTest.test_keyedhash_from_secret _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52248' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52248' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52248' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52248: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________ CryptoTest.test_keyedhash_from_secret_bad ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=64535' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64535' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64535' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64535: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_keyedhash_from_secret_unseal _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=59633' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=59633' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=59633' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 59633: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_loadexternal_ecc _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=8340' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8340' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8340' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8340: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_loadexternal_public_rsa ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=44242' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44242' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44242' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44242: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_loadexternal_rsa _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=46676' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=46676' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=46676' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 46676: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ CryptoTest.test_nv_getname __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=41345' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41345' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41345' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41345: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_private_from_pem_bad_der ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=61625' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61625' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61625' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61625: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_private_from_pem_ecc _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=12805' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12805' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12805' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12805: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_private_from_pem_ecc_der ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=31371' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31371' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31371' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31371: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_private_from_pem_rsa _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=33991' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=33991' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=33991' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 33991: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_private_from_pem_rsa_der ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=58742' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=58742' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=58742' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 58742: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_public_from_pem_bad_der ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=63747' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63747' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63747' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63747: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_public_from_pem_ecc ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17580' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17580' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17580' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17580: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_public_from_pem_ecc_der ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=16769' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=16769' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=16769' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 16769: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_public_from_pem_ecc_der_cert _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=7186' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7186' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7186' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7186: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_public_from_pem_ecc_pem_cert _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=36159' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=36159' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=36159' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 36159: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_public_from_pem_rsa ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5701' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5701' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5701' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5701: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_public_from_pem_rsa_der ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=40706' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40706' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40706' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40706: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_public_from_pem_rsa_der_cert _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=55471' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=55471' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=55471' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55471: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_public_from_pem_rsa_pem_cert _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=58653' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=58653' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=58653' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 58653: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_public_from_private ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=12260' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12260' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12260' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12260: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_public_from_private_der ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=37239' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37239' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37239' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37239: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ CryptoTest.test_public_getname ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=27201' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27201' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27201' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27201: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ CryptoTest.test_public_to_pem_bad_key _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=49983' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49983' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49983' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49983: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ CryptoTest.test_public_to_pem_ecc _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35000' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35000' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35000' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35000: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ CryptoTest.test_public_to_pem_rsa _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=22254' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=22254' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=22254' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22254: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ CryptoTest.test_rsa_exponent _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=3157' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=3157' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=3157' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 3157: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ CryptoTest.test_ssh_key_ecc __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=28906' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28906' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28906' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28906: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ CryptoTest.test_symcipher_from_secret _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=63359' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63359' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63359' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63359: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________ CryptoTest.test_symcipher_from_secret_bad ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=47829' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=47829' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=47829' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 47829: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_symdef_to_crypt ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=37947' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37947' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37947' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37947: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ CryptoTest.test_topem_ecc ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=39414' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=39414' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=39414' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 39414: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_topem_encodings ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=10696' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=10696' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=10696' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 10696: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ CryptoTest.test_topem_rsa ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=53979' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53979' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53979' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53979: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_unsupported_key ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=37365' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37365' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37365' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37365: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_verify_signature_bad _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=26649' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=26649' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=26649' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 26649: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_verify_signature_ecc _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35016' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35016' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35016' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35016: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ CryptoTest.test_verify_signature_hmac _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=53248' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53248' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53248' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53248: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_verify_singature_rsapss ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52289' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52289' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52289' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52289: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_verify_singature_rsassa ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=62602' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=62602' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=62602' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 62602: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ ToolsTest.test_decode_int ___________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ____________________________ ToolsTest.test_to_yaml ____________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ____________________ ToolsTest.test_tools_decode_pcr_tuples ____________________ self = def test_tools_decode_pcr_tuples(self): self.maxDiff = None if not self.has_tools: self.skipTest("tools not in path") > yml = self.run_tool("pcrread", "sha1:0,1,2,3,4,5,6,7,8+sha256:0") test/test_encoding.py:1291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('pcrread', 'sha1:0,1,2,3,4,5,6,7,8+sha256:0') args = ('tpm2', 'pcrread', 'sha1:0,1,2,3,4,5,6,7,8+sha256:0', '--tcti', 'swtpm:port=40257') tcti = 'swtpm:port=40257' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40257: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=40257" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________ ToolsTest.test_tools_decode_tmpl_pcr_selection ________________ self = def test_tools_decode_tmpl_pcr_selection(self): if not self.has_tools: self.skipTest("tools not in path") > yml = self.run_tool("getcap", "pcrs") test/test_encoding.py:1135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'pcrs') args = ('tpm2', 'getcap', 'pcrs', '--tcti', 'swtpm:port=23900') tcti = 'swtpm:port=23900' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23900: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=23900" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ____________________ ToolsTest.test_tools_decode_tpm2b_name ____________________ self = def test_tools_decode_tpm2b_name(self): if not self.has_tools: self.skipTest("tools not in path") key = ec.generate_private_key(ec.SECP256R1).public_key() kb = key.public_bytes( serialization.Encoding.PEM, serialization.PublicFormat.SubjectPublicKeyInfo ) key_path = os.path.join(self.tpm.working_dir.name, "external.key") ctx_path = os.path.join(self.tpm.working_dir.name, "external.ctx") with open(key_path, "wb") as f: f.write(kb) > yml = self.run_tool("loadexternal", "-G", "ecc", "-u", key_path, "-c", ctx_path) test/test_encoding.py:1422: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False tool_args = ('loadexternal', '-G', 'ecc', '-u', '/tmp/tmpyf5cw_gk/external.key', '-c', ...) args = ('tpm2', 'loadexternal', '-G', 'ecc', '-u', '/tmp/tmpyf5cw_gk/external.key', ...) tcti = 'swtpm:port=42953' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42953: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=42953" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_decode_tpma_session ___________________ self = def test_tools_decode_tpma_session(self): if not self.has_tools: self.skipTest("tools not in path") session_path = os.path.join( self.tpm.working_dir.name, "test_decode_tpma_session.ctx" ) > self.run_tool("startauthsession", "-S", session_path) test/test_encoding.py:1326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False tool_args = ('startauthsession', '-S', '/tmp/tmpidiorebg/test_decode_tpma_session.ctx') args = ('tpm2', 'startauthsession', '-S', '/tmp/tmpidiorebg/test_decode_tpma_session.ctx', '--tcti', 'swtpm:port=57313') tcti = 'swtpm:port=57313' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57313: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=57313" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ ToolsTest.test_tools_decode_tpml_alg _____________________ self = def test_tools_decode_tpml_alg(self): if not self.has_tools: self.skipTest("tools not in path") elif not self.tpm.tcti_name_conf.startswith("swtpm"): self.skipTest("swtpm required") > self.run_tool("incrementalselftest", "rsa", "ecc") test/test_encoding.py:1397: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('incrementalselftest', 'rsa', 'ecc') args = ('tpm2', 'incrementalselftest', 'rsa', 'ecc', '--tcti', 'swtpm:port=56752') tcti = 'swtpm:port=56752' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 56752: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=56752" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________ ToolsTest.test_tools_decode_tpml_alg_property _________________ self = def test_tools_decode_tpml_alg_property(self): if not self.has_tools: self.skipTest("tools not in path") elif not self.tpm.tcti_name_conf.startswith("swtpm"): self.skipTest("swtpm required") > yml = self.run_tool("getcap", "algorithms") test/test_encoding.py:1123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'algorithms') args = ('tpm2', 'getcap', 'algorithms', '--tcti', 'swtpm:port=42857') tcti = 'swtpm:port=42857' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42857: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=42857" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ ToolsTest.test_tools_decode_tpml_cca _____________________ self = def test_tools_decode_tpml_cca(self): if not self.has_tools: self.skipTest("tools not in path") > yml = self.run_tool("getcap", "commands") test/test_encoding.py:1147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'commands') args = ('tpm2', 'getcap', 'commands', '--tcti', 'swtpm:port=28279') tcti = 'swtpm:port=28279' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28279: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=28279" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________ ToolsTest.test_tools_decode_tpml_digest_values ________________ self = def test_tools_decode_tpml_digest_values(self): if not self.has_tools: self.skipTest("tools not in path") data_path = os.path.join(self.tpm.working_dir.name, "eventdata") with open(data_path, "w") as f: f.write("falafel") > yml = self.run_tool("pcrevent", "8", data_path) test/test_encoding.py:1357: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('pcrevent', '8', '/tmp/tmppra7yrlw/eventdata') args = ('tpm2', 'pcrevent', '8', '/tmp/tmppra7yrlw/eventdata', '--tcti', 'swtpm:port=32554') tcti = 'swtpm:port=32554' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32554: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=32554" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __________________ ToolsTest.test_tools_decode_tpml_ecc_curve __________________ self = def test_tools_decode_tpml_ecc_curve(self): if not self.has_tools: self.skipTest("tools not in path") elif not self.tpm.tcti_name_conf.startswith("swtpm"): self.skipTest("swtpm required") > yml = self.run_tool("getcap", "ecc-curves") test/test_encoding.py:1102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'ecc-curves') args = ('tpm2', 'getcap', 'ecc-curves', '--tcti', 'swtpm:port=59744') tcti = 'swtpm:port=59744' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 59744: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=59744" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_decode_tpml_handle ____________________ self = def test_tools_decode_tpml_handle(self): if not self.has_tools: self.skipTest("tools not in path") > yml = self.run_tool("getcap", "handles-pcr") test/test_encoding.py:1093: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'handles-pcr') args = ('tpm2', 'getcap', 'handles-pcr', '--tcti', 'swtpm:port=36867') tcti = 'swtpm:port=36867' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 36867: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=36867" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________ ToolsTest.test_tools_decode_tpml_tagged_tpm_property _____________ self = def test_tools_decode_tpml_tagged_tpm_property(self): if not self.has_tools: self.skipTest("tools not in path") elif not self.tpm.tcti_name_conf.startswith("swtpm"): self.skipTest("swtpm required") > fixedyml = self.run_tool("getcap", "properties-fixed") test/test_encoding.py:1158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'properties-fixed') args = ('tpm2', 'getcap', 'properties-fixed', '--tcti', 'swtpm:port=20591') tcti = 'swtpm:port=20591' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 20591: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=20591" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __________________ ToolsTest.test_tools_decode_tpms_nv_public __________________ self = def test_tools_decode_tpms_nv_public(self): if not self.has_tools: self.skipTest("tools not in path") > self.run_tool("nvdefine", "-s", "8", "-g", "sha256", "0x1800004") test/test_encoding.py:1186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False tool_args = ('nvdefine', '-s', '8', '-g', 'sha256', '0x1800004') args = ('tpm2', 'nvdefine', '-s', '8', '-g', 'sha256', ...) tcti = 'swtpm:port=51592' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 51592: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=51592" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_decode_tpmt_public ____________________ self = def test_tools_decode_tpmt_public(self): if not self.has_tools: self.skipTest("tools not in path") > rsayml = self.run_tool( "createprimary", "-G", "rsa2048:rsapss-sha256:null", "-a", "fixedtpm|fixedparent|sensitivedataorigin|userwithauth|sign", ) test/test_encoding.py:1198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False tool_args = ('createprimary', '-G', 'rsa2048:rsapss-sha256:null', '-a', 'fixedtpm|fixedparent|sensitivedataorigin|userwithauth|sign') args = ('tpm2', 'createprimary', '-G', 'rsa2048:rsapss-sha256:null', '-a', 'fixedtpm|fixedparent|sensitivedataorigin|userwithauth|sign', ...) tcti = 'swtpm:port=22136' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22136: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=22136" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________________________ ToolsTest.test_tools_nt_pin __________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________________ ToolsTest.test_tools_pcr_tuple ________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_pcr_tuples ________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_tpm2b_name ________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ______________________ ToolsTest.test_tools_tpma_session _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________________ ToolsTest.test_tools_tpml_alg _________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ____________________ ToolsTest.test_tools_tpml_alg_property ____________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________________ ToolsTest.test_tools_tpml_cca _________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_tpml_digest_values ____________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ ToolsTest.test_tools_tpml_ecc_curve ______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_tpml_handle _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_tpml_pcr_selection ____________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________ ToolsTest.test_tools_tpml_tagged_tpm_property _________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ______________________ ToolsTest.test_tools_tpms_context _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ ToolsTest.test_tools_tpms_nv_public ______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_tpmt_public _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_unsupported _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ TestEsys.test_TPMS_CONTEXT_to_tools ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=12603' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12603' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12603' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12603: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_activate_credential _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5691' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5691' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5691' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5691: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestEsys.test_certify _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=38443' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=38443' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=38443' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 38443: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_certify_creation ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=13896' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13896' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13896' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13896: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_change_eps ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=13091' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13091' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13091' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13091: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_change_pps ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=63616' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63616' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63616' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63616: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_clear ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=34734' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34734' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34734' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34734: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_clearcontrol __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=20786' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=20786' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=20786' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 20786: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_clock_rate_adjust ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30186' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30186' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30186' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30186: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_clock_set ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35940' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35940' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35940' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35940: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_commit _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=62177' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=62177' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=62177' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 62177: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ TestEsys.test_context_save_context_load ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30557' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30557' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30557' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30557: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_create _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=64584' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64584' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64584' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64584: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_create_none ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=24898' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=24898' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=24898' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 24898: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_create_primary _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=23367' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23367' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23367' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23367: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_create_primary_none _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=41232' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41232' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41232' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41232: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_createloaded __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=34865' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34865' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34865' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34865: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_createloaded_none ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=11301' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11301' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11301' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11301: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________ TestEsys.test_dictionary_attack_lock_reset __________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=60869' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=60869' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=60869' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 60869: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________ TestEsys.test_dictionary_attack_parameters __________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=6494' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=6494' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=6494' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 6494: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_double_close __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=65072' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=65072' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=65072' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 65072: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_duplicate ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=21746' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21746' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21746' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21746: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_ecc_parameters _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=8847' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8847' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8847' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8847: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_ecdh_key_gen __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=59416' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=59416' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=59416' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 59416: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_ecdh_z_gen ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=4551' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4551' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4551' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4551: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_encrypt_decrypt _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5520' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5520' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5520' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5520: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_encrypt_decrypt2 ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=49438' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49438' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49438' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49438: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_esys_tr_functions ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=28533' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28533' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28533' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28533: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_event_sequence_complete _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=34010' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34010' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34010' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34010: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_evict_control __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=8861' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8861' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8861' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8861: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_field_upgrade_data _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=49432' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49432' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49432' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49432: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_field_upgrade_start _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=4681' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4681' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4681' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4681: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_firmware_read __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=41682' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41682' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41682' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41682: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_flush_context __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=39266' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=39266' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=39266' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 39266: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_fulltest_no ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35152' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35152' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35152' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35152: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_fulltest_yes __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=18786' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18786' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18786' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18786: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_get_capability _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=54944' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54944' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54944' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54944: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_get_command_audit_digest ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17555' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17555' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17555' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17555: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_get_random ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=19216' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=19216' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=19216' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 19216: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_get_session_audit_digest ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=12193' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12193' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12193' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12193: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestEsys.test_get_time ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=57455' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=57455' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=57455' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57455: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestEsys.test_gettcti _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=34356' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34356' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34356' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34356: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________________ TestEsys.test_hash ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35055' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35055' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35055' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35055: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_hash_sequence __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=42767' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=42767' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=42767' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42767: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_hierarchy_control ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=60408' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=60408' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=60408' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 60408: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_hierarchychangeauth _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=43017' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=43017' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=43017' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 43017: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________________ TestEsys.test_hmac ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=43481' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=43481' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=43481' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 43481: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_hmac_sequence __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=9228' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9228' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9228' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9228: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_hmac_session __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=48683' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=48683' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=48683' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 48683: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_import _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=3149' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=3149' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=3149' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 3149: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_incremental_resume_test _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=38897' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=38897' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=38897' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 38897: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ TestEsys.test_incremental_self_test ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=51332' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=51332' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=51332' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 51332: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________________ TestEsys.test_load ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=25701' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25701' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25701' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25701: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_make_credential _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30818' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30818' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30818' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30818: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_nv_certify ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=26251' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=26251' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=26251' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 26251: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_nv_change_auth _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=56666' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=56666' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=56666' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 56666: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_nv_extend ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=61668' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61668' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61668' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61668: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_nv_global_write_lock ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=61312' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61312' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61312' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61312: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_nv_increment __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=23342' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23342' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23342' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23342: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_nv_read_lock __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=23015' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23015' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23015' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23015: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_nv_read_public _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=42038' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=42038' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=42038' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42038: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_nv_set_bits ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=18551' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18551' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18551' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18551: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ TestEsys.test_nv_undefine_space_special ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=20276' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=20276' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=20276' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 20276: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_nv_write_lock __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=13960' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13960' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13960' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13960: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_object_change_auth _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=34729' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34729' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34729' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34729: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_pcr_allocate __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=40469' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40469' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40469' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40469: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_pcr_event ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=58887' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=58887' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=58887' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 58887: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_pcr_extend ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=54092' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54092' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54092' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54092: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestEsys.test_pcr_read ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=27435' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27435' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27435' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27435: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_pcr_reset ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=7456' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7456' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7456' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7456: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_pcr_set_auth_policy _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=22058' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=22058' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=22058' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22058: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_pcr_set_auth_value _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=42649' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=42649' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=42649' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42649: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________ TestEsys.test_plain_nv_define_write_read_undefine _______________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=25524' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25524' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25524' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25524: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_policy_auth_value ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=51402' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=51402' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=51402' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 51402: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_authorize ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=33474' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=33474' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=33474' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 33474: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_policy_authorize_nv _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=6303' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=6303' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=6303' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 6303: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_policy_command_code _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=49089' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49089' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49089' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49089: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_policy_counter_timer ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=21687' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21687' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21687' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21687: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policy_cp_hash _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=57183' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=57183' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=57183' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57183: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ TestEsys.test_policy_duplication_select ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=64238' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64238' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64238' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64238: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_policy_get_digest ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=16527' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=16527' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=16527' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 16527: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_locality _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=16242' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=16242' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=16242' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 16242: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_name_hash ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=7567' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7567' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7567' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7567: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_policy_nv ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=9223' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9223' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9223' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9223: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_policy_nv_written ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=61012' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61012' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61012' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61012: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_policy_or ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5552' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5552' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5552' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5552: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_password _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=13581' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13581' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13581' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13581: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_policy_pcr ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30687' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30687' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30687' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30687: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_policy_physical_presence ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=27833' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27833' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27833' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27833: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policy_secret __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=43395' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=43395' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=43395' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 43395: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policy_signed __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30431' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30431' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30431' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30431: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_template _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=44164' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44164' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44164' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44164: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policy_ticket __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17252' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17252' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17252' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17252: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policyrestart __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=46429' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=46429' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=46429' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 46429: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_pp_commands ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52444' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52444' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52444' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52444: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_quote ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=21844' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21844' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21844' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21844: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_read_clock ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30444' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30444' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30444' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30444: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_readpublic ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=16836' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=16836' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=16836' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 16836: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_ref_parent ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=10061' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=10061' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=10061' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 10061: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_rewrap _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=12086' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12086' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12086' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12086: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_rsa_enc_dec ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=22025' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=22025' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=22025' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22025: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ TestEsys.test_rsa_enc_dec_with_label _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=34955' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34955' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34955' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34955: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_set_algorithm_set ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=33308' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=33308' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=33308' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 33308: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ TestEsys.test_set_command_code_audit_status __________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=60663' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=60663' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=60663' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 60663: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_set_primary_policy _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=32008' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=32008' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=32008' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32008: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_shutdown_bad __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=19271' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=19271' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=19271' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 19271: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_shutdown_clear _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=32449' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=32449' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=32449' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32449: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_shutdown_no_arg _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=6868' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=6868' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=6868' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 6868: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_shutdown_state _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17934' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17934' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17934' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17934: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________________ TestEsys.test_sign ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=36196' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=36196' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=36196' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 36196: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ TestEsys.test_start_auth_session_enckey ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=62716' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=62716' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=62716' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 62716: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________ TestEsys.test_start_auth_session_enckey_bindkey ________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=13329' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13329' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13329' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13329: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ TestEsys.test_start_auth_session_noncecaller _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=15763' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=15763' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=15763' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 15763: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________ TestEsys.test_start_auth_session_noncecaller_bad _______________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=29271' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29271' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29271' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29271: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_stir_random ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=61018' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61018' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61018' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61018: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_test_parms ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=13933' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13933' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13933' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13933: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_tr_get_tpm_handle ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=38142' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=38142' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=38142' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 38142: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ TestEsys.test_tr_sess_set_attributes _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=29234' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29234' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29234' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29234: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_unseal _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=44269' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44269' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44269' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44269: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_vendor_tcg_test _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17453' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17453' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17453' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125