==> Building on Q ==> Attempt to run pkgver()... ==> Making package: python-tpm2-pytss 1.1.0-1 (Sun 22 May 2022 07:18:55 AM EEST) ==> Checking runtime dependencies... ==> Missing dependencies:  -> python-asn1crypto ==> Checking buildtime dependencies... ==> Missing dependencies:  -> python-build  -> python-installer ==> Ensuring required PGP keys are present...  -> Checking for 5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1... ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-tpm2-pytss ./ PKGBUILD 1,371 100% 0.00kB/s 0:00:00 1,371 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-tpm2-pytss-1.1.0-1.log 887 100% 866.21kB/s 0:00:00 887 100% 866.21kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,301 bytes received 106 bytes 938.00 bytes/sec total size is 2,201 speedup is 1.56 ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix28 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)... ==> Locking chroot copy [felix28]...done ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix28]...done ==> Making package: python-tpm2-pytss 1.1.0-1 (Sun May 22 07:37:03 2022) ==> Retrieving sources...  -> Cloning tpm2-pytss git repo... Cloning into bare repository '/home/felix/packages/python-tpm2-pytss/tpm2-pytss'... remote: Enumerating objects: 8558, done. remote: Counting objects: 0% (1/651) remote: Counting objects: 1% (7/651) remote: Counting objects: 2% (14/651) remote: Counting objects: 3% (20/651) remote: Counting objects: 4% (27/651) remote: Counting objects: 5% (33/651) remote: Counting objects: 6% (40/651) remote: Counting objects: 7% (46/651) remote: Counting objects: 8% (53/651) remote: Counting objects: 9% (59/651) remote: Counting objects: 10% (66/651) remote: Counting objects: 11% (72/651) remote: Counting objects: 12% (79/651) remote: Counting objects: 13% (85/651) remote: Counting objects: 14% (92/651) remote: Counting objects: 15% (98/651) remote: Counting objects: 16% (105/651) remote: Counting objects: 17% (111/651) remote: Counting objects: 18% (118/651) remote: Counting objects: 19% (124/651) remote: Counting objects: 20% (131/651) remote: Counting objects: 21% (137/651) remote: Counting objects: 22% (144/651) remote: Counting objects: 23% (150/651) remote: Counting objects: 24% (157/651) remote: Counting objects: 25% (163/651) remote: Counting objects: 26% (170/651) remote: Counting objects: 27% (176/651) remote: Counting objects: 28% (183/651) remote: Counting objects: 29% (189/651) remote: Counting objects: 30% (196/651) remote: Counting objects: 31% (202/651) remote: Counting objects: 32% (209/651) remote: Counting objects: 33% (215/651) remote: Counting objects: 34% (222/651) remote: Counting objects: 35% (228/651) remote: Counting objects: 36% (235/651) remote: Counting objects: 37% (241/651) remote: Counting objects: 38% (248/651) remote: Counting objects: 39% (254/651) remote: Counting objects: 40% (261/651) remote: Counting objects: 41% (267/651) remote: Counting objects: 42% (274/651) remote: Counting objects: 43% (280/651) remote: Counting objects: 44% (287/651) remote: Counting objects: 45% (293/651) remote: Counting objects: 46% (300/651) remote: Counting objects: 47% (306/651) remote: Counting objects: 48% (313/651) remote: Counting objects: 49% (319/651) remote: Counting objects: 50% (326/651) remote: Counting objects: 51% (333/651) remote: Counting objects: 52% (339/651) remote: Counting objects: 53% (346/651) remote: Counting objects: 54% (352/651) remote: Counting objects: 55% (359/651) remote: Counting objects: 56% (365/651) remote: Counting objects: 57% (372/651) remote: Counting objects: 58% (378/651) remote: Counting objects: 59% (385/651) remote: Counting objects: 60% (391/651) remote: Counting objects: 61% (398/651) remote: Counting objects: 62% (404/651) remote: Counting objects: 63% (411/651) remote: Counting objects: 64% (417/651) remote: Counting objects: 65% (424/651) remote: Counting objects: 66% (430/651) remote: Counting objects: 67% (437/651) remote: Counting objects: 68% (443/651) remote: Counting objects: 69% (450/651) remote: Counting objects: 70% (456/651) remote: Counting objects: 71% (463/651) remote: Counting objects: 72% (469/651) remote: Counting objects: 73% (476/651) remote: Counting objects: 74% (482/651) remote: Counting objects: 75% (489/651) remote: Counting objects: 76% (495/651) remote: Counting objects: 77% (502/651) remote: Counting objects: 78% (508/651) remote: Counting objects: 79% (515/651) remote: Counting objects: 80% (521/651) remote: Counting objects: 81% (528/651) remote: Counting objects: 82% (534/651) remote: Counting objects: 83% (541/651) remote: Counting objects: 84% (547/651) remote: Counting objects: 85% (554/651) remote: Counting objects: 86% (560/651) remote: Counting objects: 87% (567/651) remote: Counting objects: 88% (573/651) remote: Counting objects: 89% (580/651) remote: Counting objects: 90% (586/651) remote: Counting objects: 91% (593/651) remote: Counting objects: 92% (599/651) remote: Counting objects: 93% (606/651) remote: Counting objects: 94% (612/651) remote: Counting objects: 95% (619/651) remote: Counting objects: 96% (625/651) remote: Counting objects: 97% (632/651) remote: Counting objects: 98% (638/651) remote: Counting objects: 99% (645/651) remote: Counting objects: 100% (651/651) remote: Counting objects: 100% (651/651), done. remote: Compressing objects: 0% (1/268) remote: Compressing objects: 1% (3/268) remote: Compressing objects: 2% (6/268) remote: Compressing objects: 3% (9/268) remote: Compressing objects: 4% (11/268) remote: Compressing objects: 5% (14/268) remote: Compressing objects: 6% (17/268) remote: Compressing objects: 7% (19/268) remote: Compressing objects: 8% (22/268) remote: Compressing objects: 9% (25/268) remote: Compressing objects: 10% (27/268) remote: Compressing objects: 11% (30/268) remote: Compressing objects: 12% (33/268) remote: Compressing objects: 13% (35/268) remote: Compressing objects: 14% (38/268) remote: Compressing objects: 15% (41/268) remote: Compressing objects: 16% (43/268) remote: Compressing objects: 17% (46/268) remote: Compressing objects: 18% (49/268) remote: Compressing objects: 19% (51/268) remote: Compressing objects: 20% (54/268) remote: Compressing objects: 21% (57/268) remote: Compressing objects: 22% (59/268) remote: Compressing objects: 23% (62/268) remote: Compressing objects: 24% (65/268) remote: Compressing objects: 25% (67/268) remote: Compressing objects: 26% (70/268) remote: Compressing objects: 27% (73/268) remote: Compressing objects: 28% (76/268) remote: Compressing objects: 29% (78/268) remote: Compressing objects: 30% (81/268) remote: Compressing objects: 31% (84/268) remote: Compressing objects: 32% (86/268) remote: Compressing objects: 33% (89/268) remote: Compressing objects: 34% (92/268) remote: Compressing objects: 35% (94/268) remote: Compressing objects: 36% (97/268) remote: Compressing objects: 37% (100/268) remote: Compressing objects: 38% (102/268) remote: Compressing objects: 39% (105/268) remote: Compressing objects: 40% (108/268) remote: Compressing objects: 41% (110/268) remote: Compressing objects: 42% (113/268) remote: Compressing objects: 43% (116/268) remote: Compressing objects: 44% (118/268) remote: Compressing objects: 45% (121/268) remote: Compressing objects: 46% (124/268) remote: Compressing objects: 47% (126/268) remote: Compressing objects: 48% (129/268) remote: Compressing objects: 49% (132/268) remote: Compressing objects: 50% (134/268) remote: Compressing objects: 51% (137/268) remote: Compressing objects: 52% (140/268) remote: Compressing objects: 53% (143/268) remote: Compressing objects: 54% (145/268) remote: Compressing objects: 55% (148/268) remote: Compressing objects: 56% (151/268) remote: Compressing objects: 57% (153/268) remote: Compressing objects: 58% (156/268) remote: Compressing objects: 59% (159/268) remote: Compressing objects: 60% (161/268) remote: Compressing objects: 61% (164/268) remote: Compressing objects: 62% (167/268) remote: Compressing objects: 63% (169/268) remote: Compressing objects: 64% (172/268) remote: Compressing objects: 65% (175/268) remote: Compressing objects: 66% (177/268) remote: Compressing objects: 67% (180/268) remote: Compressing objects: 68% (183/268) remote: Compressing objects: 69% (185/268) remote: Compressing objects: 70% (188/268) remote: Compressing objects: 71% (191/268) remote: Compressing objects: 72% (193/268) remote: Compressing objects: 73% (196/268) remote: Compressing objects: 74% (199/268) remote: Compressing objects: 75% (201/268) remote: Compressing objects: 76% (204/268) remote: Compressing objects: 77% (207/268) remote: Compressing objects: 78% (210/268) remote: Compressing objects: 79% (212/268) remote: Compressing objects: 80% (215/268) remote: Compressing objects: 81% (218/268) remote: Compressing objects: 82% (220/268) remote: Compressing objects: 83% (223/268) remote: Compressing objects: 84% (226/268) remote: Compressing objects: 85% (228/268) remote: Compressing objects: 86% (231/268) remote: Compressing objects: 87% (234/268) remote: Compressing objects: 88% (236/268) remote: Compressing objects: 89% (239/268) remote: Compressing objects: 90% (242/268) remote: Compressing objects: 91% (244/268) remote: Compressing objects: 92% (247/268) remote: Compressing objects: 93% (250/268) remote: Compressing objects: 94% (252/268) remote: Compressing objects: 95% (255/268) remote: Compressing objects: 96% (258/268) remote: Compressing objects: 97% (260/268) remote: Compressing objects: 98% (263/268) remote: Compressing objects: 99% (266/268) remote: Compressing objects: 100% (268/268) remote: Compressing objects: 100% (268/268), done. Receiving objects: 0% (1/8558) Receiving objects: 1% (86/8558) Receiving objects: 2% (172/8558) Receiving objects: 3% (257/8558) Receiving objects: 4% (343/8558) Receiving objects: 5% (428/8558) Receiving objects: 6% (514/8558) Receiving objects: 7% (600/8558) Receiving objects: 8% (685/8558) Receiving objects: 9% (771/8558) Receiving objects: 10% (856/8558) Receiving objects: 11% (942/8558) Receiving objects: 12% (1027/8558) Receiving objects: 13% (1113/8558) Receiving objects: 14% (1199/8558) Receiving objects: 15% (1284/8558) Receiving objects: 16% (1370/8558) Receiving objects: 17% (1455/8558) Receiving objects: 18% (1541/8558) Receiving objects: 19% (1627/8558) Receiving objects: 20% (1712/8558) Receiving objects: 21% (1798/8558) Receiving objects: 22% (1883/8558) Receiving objects: 23% (1969/8558) Receiving objects: 24% (2054/8558) Receiving objects: 25% (2140/8558) Receiving objects: 26% (2226/8558) Receiving objects: 27% (2311/8558) Receiving objects: 28% (2397/8558) Receiving objects: 29% (2482/8558) Receiving objects: 30% (2568/8558) Receiving objects: 31% (2653/8558) Receiving objects: 32% (2739/8558) Receiving objects: 33% (2825/8558) Receiving objects: 34% (2910/8558) Receiving objects: 35% (2996/8558) Receiving objects: 36% (3081/8558) Receiving objects: 37% (3167/8558) Receiving objects: 38% (3253/8558) Receiving objects: 39% (3338/8558) Receiving objects: 40% (3424/8558) Receiving objects: 41% (3509/8558) Receiving objects: 42% (3595/8558) Receiving objects: 43% (3680/8558) Receiving objects: 44% (3766/8558) Receiving objects: 45% (3852/8558) Receiving objects: 46% (3937/8558) Receiving objects: 47% (4023/8558) Receiving objects: 48% (4108/8558) Receiving objects: 49% (4194/8558) Receiving objects: 50% (4279/8558) Receiving objects: 51% (4365/8558) Receiving objects: 52% (4451/8558) Receiving objects: 53% (4536/8558) Receiving objects: 54% (4622/8558) Receiving objects: 55% (4707/8558) Receiving objects: 56% (4793/8558), 12.97 MiB | 25.93 MiB/s Receiving objects: 57% (4879/8558), 12.97 MiB | 25.93 MiB/s Receiving objects: 58% (4964/8558), 12.97 MiB | 25.93 MiB/s Receiving objects: 58% (4976/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 59% (5050/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 60% (5135/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 61% (5221/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 62% (5306/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 63% (5392/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 64% (5478/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 65% (5563/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 66% (5649/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 67% (5734/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 68% (5820/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 69% (5906/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 70% (5991/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 71% (6077/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 72% (6162/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 73% (6248/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 74% (6333/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 75% (6419/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 76% (6505/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 77% (6590/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 78% (6676/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 79% (6761/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 80% (6847/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 81% (6932/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 82% (7018/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 83% (7104/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 84% (7189/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 85% (7275/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 86% (7360/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 87% (7446/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 88% (7532/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 89% (7617/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 90% (7703/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 91% (7788/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 92% (7874/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 93% (7959/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 94% (8045/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 95% (8131/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 96% (8216/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 97% (8302/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 98% (8387/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 99% (8473/8558), 25.05 MiB | 24.99 MiB/s remote: Total 8558 (delta 451), reused 539 (delta 377), pack-reused 7907 Receiving objects: 100% (8558/8558), 25.05 MiB | 24.99 MiB/s Receiving objects: 100% (8558/8558), 37.47 MiB | 25.25 MiB/s, done. Resolving deltas: 0% (0/6192) Resolving deltas: 1% (64/6192) Resolving deltas: 2% (124/6192) Resolving deltas: 3% (189/6192) Resolving deltas: 4% (249/6192) Resolving deltas: 5% (310/6192) Resolving deltas: 6% (372/6192) Resolving deltas: 7% (434/6192) Resolving deltas: 8% (499/6192) Resolving deltas: 9% (559/6192) Resolving deltas: 10% (620/6192) Resolving deltas: 11% (682/6192) Resolving deltas: 12% (744/6192) Resolving deltas: 13% (808/6192) Resolving deltas: 14% (867/6192) Resolving deltas: 15% (932/6192) Resolving deltas: 16% (995/6192) Resolving deltas: 17% (1054/6192) Resolving deltas: 18% (1115/6192) Resolving deltas: 19% (1177/6192) Resolving deltas: 20% (1240/6192) Resolving deltas: 21% (1301/6192) Resolving deltas: 22% (1363/6192) Resolving deltas: 23% (1425/6192) Resolving deltas: 24% (1487/6192) Resolving deltas: 25% (1548/6192) Resolving deltas: 26% (1610/6192) Resolving deltas: 27% (1672/6192) Resolving deltas: 28% (1734/6192) Resolving deltas: 29% (1797/6192) Resolving deltas: 30% (1858/6192) Resolving deltas: 31% (1921/6192) Resolving deltas: 32% (1982/6192) Resolving deltas: 33% (2044/6192) Resolving deltas: 34% (2106/6192) Resolving deltas: 35% (2168/6192) Resolving deltas: 36% (2230/6192) Resolving deltas: 37% (2292/6192) Resolving deltas: 38% (2353/6192) Resolving deltas: 39% (2415/6192) Resolving deltas: 40% (2477/6192) Resolving deltas: 41% (2540/6192) Resolving deltas: 42% (2601/6192) Resolving deltas: 43% (2663/6192) Resolving deltas: 44% (2725/6192) Resolving deltas: 45% (2787/6192) Resolving deltas: 46% (2849/6192) Resolving deltas: 47% (2911/6192) Resolving deltas: 48% (2973/6192) Resolving deltas: 49% (3035/6192) Resolving deltas: 50% (3099/6192) Resolving deltas: 51% (3158/6192) Resolving deltas: 52% (3220/6192) Resolving deltas: 53% (3283/6192) Resolving deltas: 54% (3344/6192) Resolving deltas: 55% (3406/6192) Resolving deltas: 56% (3470/6192) Resolving deltas: 57% (3531/6192) Resolving deltas: 58% (3593/6192) Resolving deltas: 59% (3654/6192) Resolving deltas: 60% (3717/6192) Resolving deltas: 61% (3780/6192) Resolving deltas: 62% (3840/6192) Resolving deltas: 63% (3901/6192) Resolving deltas: 64% (3963/6192) Resolving deltas: 65% (4026/6192) Resolving deltas: 66% (4087/6192) Resolving deltas: 67% (4149/6192) Resolving deltas: 68% (4211/6192) Resolving deltas: 69% (4273/6192) Resolving deltas: 70% (4342/6192) Resolving deltas: 71% (4398/6192) Resolving deltas: 72% (4460/6192) Resolving deltas: 73% (4522/6192) Resolving deltas: 74% (4584/6192) Resolving deltas: 75% (4649/6192) Resolving deltas: 76% (4707/6192) Resolving deltas: 77% (4769/6192) Resolving deltas: 78% (4831/6192) Resolving deltas: 79% (4892/6192) Resolving deltas: 80% (4954/6192) Resolving deltas: 81% (5016/6192) Resolving deltas: 82% (5078/6192) Resolving deltas: 83% (5140/6192) Resolving deltas: 84% (5202/6192) Resolving deltas: 85% (5265/6192) Resolving deltas: 86% (5326/6192) Resolving deltas: 87% (5389/6192) Resolving deltas: 88% (5449/6192) Resolving deltas: 89% (5511/6192) Resolving deltas: 90% (5574/6192) Resolving deltas: 91% (5635/6192) Resolving deltas: 92% (5697/6192) Resolving deltas: 93% (5759/6192) Resolving deltas: 94% (5821/6192) Resolving deltas: 95% (5883/6192) Resolving deltas: 96% (5945/6192) Resolving deltas: 97% (6007/6192) Resolving deltas: 98% (6074/6192) Resolving deltas: 99% (6131/6192) Resolving deltas: 100% (6192/6192) Resolving deltas: 100% (6192/6192), 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.1.0-1 (Sun 22 May 2022 07:37:14 AM CEST) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (9) New Version Net Change core/json-c 0.16-1 0.16 MiB core/libnsl 2.0.0-2 0.06 MiB extra/python-ply 3.11-10 0.31 MiB extra/python-pycparser 2.21-3 1.39 MiB core/python 3.10.1-2 79.11 MiB extra/python-asn1crypto 1.5.1-1 1.21 MiB extra/python-cffi 1.15.0-3 1.00 MiB extra/python-cryptography 37.0.0-1 3.54 MiB core/tpm2-tss 3.2.0-1 2.40 MiB Total Installed Size: 89.17 MiB :: Proceed with installation? [Y/n] 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 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 extra/json-glib 1.6.6-2 0.92 MiB community/libtpms 0.9.4-1 0.84 MiB extra/perl-error 0.17029-3 0.04 MiB extra/perl-mailtools 2.21-5 0.11 MiB extra/perl-timedate 2.33-3 0.08 MiB community/python-apipkg 2.1.1-1 0.03 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.12.0-2 0.48 MiB extra/python-ordered-set 4.0.2-6 0.06 MiB extra/python-packaging 21.3-1 0.26 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-pyparsing 3.0.9-1 0.96 MiB extra/python-tomli 2.0.1-1 0.08 MiB extra/git 2.36.1-1 29.94 MiB community/python-build 0.7.0-4 0.95 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 6.4.2-1 0.21 MiB community/python-wheel 0.37.1-1 0.16 MiB community/swtpm 0.7.3-1 0.41 MiB Total Download Size: 0.01 MiB Total Installed Size: 44.16 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... 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-pyparsing... Optional dependencies for python-pyparsing python-railroad-diagrams: for generating Railroad Diagrams python-jinja: for generating Railroad Diagrams installing python-packaging... 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-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... :: 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 tpm2_pytss/ESAPI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/FAPI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/TCTI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/TCTILdr.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/TSS2_Exception.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/__init__.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/callbacks.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/constants.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/encoding.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/fapi_info.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/tsskey.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/types.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying tpm2_pytss/utils.py -> build/lib.linux-riscv64-3.10/tpm2_pytss package init file 'tpm2_pytss/internal/__init__.py' not found (or not a regular file) creating build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying tpm2_pytss/internal/constants.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying tpm2_pytss/internal/crypto.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying tpm2_pytss/internal/templates.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying 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 -pthread -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 -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -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 -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -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 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/__init__.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/constants.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/types.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 creating 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 tpm2_pytss.egg-info writing tpm2_pytss.egg-info/PKG-INFO writing dependency_links to tpm2_pytss.egg-info/dependency_links.txt writing requirements to tpm2_pytss.egg-info/requires.txt writing top-level names to tpm2_pytss.egg-info/top_level.txt writing manifest file 'tpm2_pytss.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'tpm2_pytss/version' warning: no files found matching 'tpm2_pytss/config.json' warning: no files found matching '*' under directory '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 'tpm2_pytss/internal/type_mapping.py' adding license file 'LICENSE' writing manifest file 'tpm2_pytss.egg-info/SOURCES.txt' Copying tpm2_pytss.egg-info to build/bdist.linux-riscv64/wheel/tpm2_pytss-1.1.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.1.0.dist-info/WHEEL creating '/build/python-tpm2-pytss/src/tpm2-pytss/dist/tmpdogiuhkv/tpm2_pytss-1.1.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/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.1.0.dist-info/LICENSE' adding 'tpm2_pytss-1.1.0.dist-info/METADATA' adding 'tpm2_pytss-1.1.0.dist-info/WHEEL' adding 'tpm2_pytss-1.1.0.dist-info/top_level.txt' adding 'tpm2_pytss-1.1.0.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel * Getting dependencies for wheel... * Building wheel... Successfully built tpm2_pytss-1.1.0-cp310-cp310-linux_riscv64.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-7.1.2, pluggy-1.0.0 rootdir: /build/python-tpm2-pytss/src/tpm2-pytss collected 478 items test/test_crypto.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 10%] test/test_encoding.py ..................................... [ 17%] test/test_esapi.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 28%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 43%] test/test_exception.py ...... [ 44%] test/test_fapi.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 68%] test/test_tcti.py FFFFFFFF [ 70%] test/test_tsskey.py FFFFFFFFFFFFF [ 73%] test/test_types.py ..................................................... [ 84%] ........................................................... [ 96%] test/test_utils.py FFFFFFFFFFFFFFFFF [100%] ==================================== ERRORS ==================================== _______________ 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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/tmph1vgxw52/policy does not exist, creating WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22558: 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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/tmpba1wtows/policy does not exist, creating WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22558: 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 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=41271' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41271' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41271' 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)) 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 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 41271: 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=61256' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61256' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61256' 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)) 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 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 61256: 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=25248' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25248' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25248' 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)) 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 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 25248: 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=38060' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=38060' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=38060' 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)) 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 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 38060: 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=11162' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11162' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11162' 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)) 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 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 11162: 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=29357' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29357' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29357' 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)) 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 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 29357: 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=35996' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35996' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35996' 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)) 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 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 35996: 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=25726' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25726' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25726' 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)) 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 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 25726: 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=58547' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=58547' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=58547' 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)) 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 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 58547: 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=4090' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4090' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4090' 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)) 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 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 4090: 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=32012' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=32012' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=32012' 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)) 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 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 32012: 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=44932' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44932' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44932' 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)) 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 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 44932: 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=61497' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61497' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61497' 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)) 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 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 61497: 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=27457' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27457' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27457' 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)) 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 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 27457: 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=56667' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=56667' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=56667' 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)) 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 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 56667: 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=39666' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=39666' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=39666' 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)) 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 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 39666: 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=4865' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4865' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4865' 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)) 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 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 4865: 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=44880' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44880' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44880' 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)) 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 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 44880: 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=18825' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18825' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18825' 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)) 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 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 18825: 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=34606' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34606' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34606' 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)) 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 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 34606: 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=37764' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37764' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37764' 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)) 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 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 37764: 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=5378' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5378' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5378' 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)) 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 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 5378: 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=40764' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40764' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40764' 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)) 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 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 40764: 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=53449' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53449' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53449' 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)) 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 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 53449: 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=24614' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=24614' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=24614' 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)) 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 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 24614: 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=61620' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61620' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61620' 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)) 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 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 61620: 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=33968' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=33968' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=33968' 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)) 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 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 33968: 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=36083' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=36083' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=36083' 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)) 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 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 36083: 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=29490' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29490' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29490' 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)) 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 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 29490: 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=25329' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25329' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25329' 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)) 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 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 25329: 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=9600' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9600' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9600' 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)) 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 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 9600: 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=11350' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11350' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11350' 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)) 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 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 11350: 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=37491' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37491' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37491' 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)) 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 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 37491: 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=53240' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53240' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53240' 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)) 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 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 53240: 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=61766' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61766' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61766' 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)) 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 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 61766: 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=21938' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21938' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21938' 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)) 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 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 21938: 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=11136' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11136' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11136' 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)) 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 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 11136: 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=16188' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=16188' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=16188' 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)) 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 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 16188: 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=51428' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=51428' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=51428' 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)) 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 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 51428: 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=50548' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=50548' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=50548' 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)) 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 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 50548: 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=21529' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21529' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21529' 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)) 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 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 21529: 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=27197' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27197' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27197' 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)) 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 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 27197: 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=59776' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=59776' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=59776' 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)) 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 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 59776: 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=21008' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21008' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21008' 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)) 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 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 21008: 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=29788' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29788' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29788' 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)) 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 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 29788: 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=13967' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13967' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13967' 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)) 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 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 13967: 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=26153' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=26153' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=26153' 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)) 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 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 26153: 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=3441' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=3441' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=3441' 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)) 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 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 3441: 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_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=49550' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49550' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49550' 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)) 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 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 49550: 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=16176' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=16176' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=16176' 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)) 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 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 16176: 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=37919' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37919' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37919' 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)) 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 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 37919: 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=55198' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=55198' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=55198' 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)) 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 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 55198: 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=17567' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17567' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17567' 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)) 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 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 17567: 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=11788' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11788' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11788' 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)) 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 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 11788: 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=25059' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25059' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25059' 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)) 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 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 25059: 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=45298' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=45298' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=45298' 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)) 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 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 45298: 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=12216' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12216' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12216' 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)) 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 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 12216: 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=57324' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=57324' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=57324' 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)) 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 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 57324: 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=42174' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=42174' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=42174' 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)) 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 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 42174: 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=10995' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=10995' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=10995' 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)) 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 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 10995: 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=16871' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=16871' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=16871' 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)) 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 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 16871: 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=44533' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44533' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44533' 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)) 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 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 44533: 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=64143' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64143' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64143' 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)) 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 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 64143: 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=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) 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) 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)) 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 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 __________________________ 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=37570' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37570' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37570' 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)) 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 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 37570: 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=14947' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=14947' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=14947' 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)) 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 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 14947: 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=8753' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8753' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8753' 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)) 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 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 8753: 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=34152' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34152' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34152' 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)) 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 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 34152: 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=52427' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52427' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52427' 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)) 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 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 52427: 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=11481' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11481' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11481' 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)) 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 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 11481: 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=49448' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49448' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49448' 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)) 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 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 49448: 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=6431' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=6431' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=6431' 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)) 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 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 6431: 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=7936' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7936' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7936' 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)) 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 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 7936: 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=63304' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63304' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63304' 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)) 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 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 63304: 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=28287' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28287' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28287' 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)) 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 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 28287: 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=60471' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=60471' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=60471' 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)) 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 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 60471: 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=43323' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=43323' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=43323' 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)) 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 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 43323: 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=22814' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=22814' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=22814' 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)) 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 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 22814: 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=65419' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=65419' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=65419' 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)) 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 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 65419: 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=54033' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54033' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54033' 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)) 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 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 54033: 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=49707' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49707' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49707' 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)) 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 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 49707: 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=45222' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=45222' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=45222' 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)) 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 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 45222: 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=64385' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64385' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64385' 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)) 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 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 64385: 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=62883' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=62883' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=62883' 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)) 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 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 62883: 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=20285' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=20285' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=20285' 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)) 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 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 20285: 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=39887' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=39887' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=39887' 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)) 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 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 39887: 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=41476' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41476' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41476' 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)) 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 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 41476: 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=24872' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=24872' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=24872' 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)) 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 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 24872: 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=55683' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=55683' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=55683' 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)) 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 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 55683: 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=6880' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=6880' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=6880' 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)) 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 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 6880: 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=53438' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53438' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53438' 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)) 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 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 53438: 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=64572' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64572' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64572' 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)) 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 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 64572: 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=27413' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27413' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27413' 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)) 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 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 27413: 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=27581' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27581' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27581' 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)) 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 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 27581: 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=31500' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31500' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31500' 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)) 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 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 31500: 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=54852' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54852' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54852' 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)) 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 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 54852: 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=53555' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53555' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53555' 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)) 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 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 53555: 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=10568' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=10568' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=10568' 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)) 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 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 10568: 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=45927' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=45927' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=45927' 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)) 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 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 45927: 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=34402' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34402' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34402' 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)) 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 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 34402: 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=11911' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11911' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11911' 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)) 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 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 11911: 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=26095' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=26095' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=26095' 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)) 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 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 26095: 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=27912' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27912' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27912' 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)) 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 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 27912: 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=38699' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=38699' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=38699' 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)) 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 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 38699: 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=12737' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12737' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12737' 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)) 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 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 12737: 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=56050' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=56050' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=56050' 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)) 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 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 56050: 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=41303' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41303' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41303' 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)) 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 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 41303: 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=8592' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8592' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8592' 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)) 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 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 8592: 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=8151' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8151' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8151' 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)) 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 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 8151: 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=12267' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12267' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12267' 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)) 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 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 12267: 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=57963' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=57963' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=57963' 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)) 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 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 57963: 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=3937' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=3937' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=3937' 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)) 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 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 3937: 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=62483' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=62483' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=62483' 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)) 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 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 62483: 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=4191' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4191' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4191' 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)) 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 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 4191: 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=27530' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27530' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27530' 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)) 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 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 27530: 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=63830' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63830' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63830' 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)) 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 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 63830: 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=28260' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28260' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28260' 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)) 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 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 28260: 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=8924' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8924' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8924' 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)) 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 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 8924: 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=4796' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4796' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4796' 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)) 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 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 4796: 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=11827' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11827' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11827' 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)) 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 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 11827: 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=54654' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54654' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54654' 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)) 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 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 54654: 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=41854' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41854' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41854' 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)) 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 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 41854: 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=43005' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=43005' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=43005' 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)) 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 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 43005: 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=31382' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31382' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31382' 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)) 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 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 31382: 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=46995' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=46995' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=46995' 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)) 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 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 46995: 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=27324' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27324' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27324' 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)) 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 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 27324: 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=29371' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29371' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29371' 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)) 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 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 29371: 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=18714' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18714' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18714' 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)) 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 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 18714: 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=52876' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52876' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52876' 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)) 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 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 52876: 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=31431' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31431' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31431' 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)) 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 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 31431: 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=53815' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53815' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53815' 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)) 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 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 53815: 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=13504' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13504' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13504' 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)) 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 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 13504: 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=29946' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29946' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29946' 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)) 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 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 29946: 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=11468' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11468' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11468' 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)) 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 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 11468: 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=33581' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=33581' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=33581' 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)) 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 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 33581: 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=34466' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34466' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34466' 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)) 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 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 34466: 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=63147' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63147' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63147' 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)) 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 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 63147: 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=9551' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9551' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9551' 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)) 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 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 9551: 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=13154' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13154' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13154' 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)) 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 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 13154: 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=7696' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7696' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7696' 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)) 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 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 7696: 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=6766' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=6766' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=6766' 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)) 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 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 6766: 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=58935' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=58935' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=58935' 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)) 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 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 58935: 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=27266' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27266' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27266' 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)) 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 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 27266: 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=34601' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34601' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34601' 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)) 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 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 34601: 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=30990' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30990' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30990' 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)) 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 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 30990: 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=34506' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34506' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34506' 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)) 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 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 34506: 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=53557' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53557' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53557' 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)) 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 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 53557: 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=30725' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30725' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30725' 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)) 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 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 30725: 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=41204' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41204' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41204' 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)) 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 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 41204: 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=58889' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=58889' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=58889' 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)) 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 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 58889: 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=35206' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35206' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35206' 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)) 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 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 35206: 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=31232' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31232' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31232' 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)) 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 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 31232: 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=18999' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18999' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18999' 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)) 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 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 18999: 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=21705' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21705' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21705' 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)) 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 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 21705: 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=10723' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=10723' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=10723' 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)) 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 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 10723: 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=62670' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=62670' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=62670' 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)) 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 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 62670: 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=40613' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40613' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40613' 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)) 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 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 40613: 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=17188' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17188' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17188' 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)) 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 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 17188: 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=14481' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=14481' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=14481' 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)) 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 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 14481: 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=47999' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=47999' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=47999' 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)) 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 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 47999: 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=19424' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=19424' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=19424' 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)) 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 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 19424: 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=49453' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49453' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49453' 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)) 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 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 49453: 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=5546' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5546' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5546' 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)) 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 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 5546: 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=15079' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=15079' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=15079' 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)) 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 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 15079: 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=32296' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=32296' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=32296' 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)) 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 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 32296: 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=63605' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63605' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63605' 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)) 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 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 63605: 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=26203' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=26203' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=26203' 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)) 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 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 26203: 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=16606' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=16606' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=16606' 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)) 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 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 16606: 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_verify_signature ________________________ 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=33470' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=33470' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=33470' 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)) 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 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 33470: 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_z_gen_2_phase __________________________ 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=19093' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=19093' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=19093' 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)) 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 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 19093: 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 _____________________________ TestTCTI.test_cancel _____________________________ 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=5061' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5061' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5061' 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)) 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 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 5061: 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 ____________________________ TestTCTI.test_finalize ____________________________ 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=3755' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=3755' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=3755' 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)) 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 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 3755: 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 ________________________ TestTCTI.test_get_poll_handles ________________________ 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=59025' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=59025' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=59025' 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)) 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 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 59025: 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 ______________________________ TestTCTI.test_init ______________________________ 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=7025' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7025' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7025' 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)) 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 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 7025: 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 __________________________ TestTCTI.test_make_sticky ___________________________ 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=59983' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=59983' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=59983' 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)) 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 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 59983: 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 __________________________ TestTCTI.test_set_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=4020' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4020' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4020' 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)) 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 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 4020: 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 ____________________________ TestTCTI.test_tctildr _____________________________ 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=50733' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=50733' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=50733' 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)) 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 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 50733: 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 ________________________ TestTCTI.test_transmit_receive ________________________ 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=27783' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27783' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27783' 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)) 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 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 27783: 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 ___________________________ TSSKeyTest.test_bad_oid ____________________________ 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=65480' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=65480' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=65480' 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)) 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 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 65480: 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 _________________________ TSSKeyTest.test_bad_pem_type _________________________ 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=45755' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=45755' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=45755' 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)) 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 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 45755: 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 _______________________ TSSKeyTest.test_create_load_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=48634' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=48634' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=48634' 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)) 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 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 48634: 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 ___________________ TSSKeyTest.test_create_load_ecc_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=44598' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44598' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44598' 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)) 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 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 44598: 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 _______________________ TSSKeyTest.test_create_load_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=52663' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52663' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52663' 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)) 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 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 52663: 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 _______________ TSSKeyTest.test_create_no_password_load_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=43606' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=43606' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=43606' 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)) 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 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 43606: 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 _______________ TSSKeyTest.test_create_password_load_no_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=42567' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=42567' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=42567' 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)) 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 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 42567: 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 ____________________________ TSSKeyTest.test_no_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=31107' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31107' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31107' 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)) 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 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 31107: 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 ________________________ TSSKeyTest.test_no_ecc_no_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=34541' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34541' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34541' 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)) 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 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 34541: 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 ____________________ TSSKeyTest.test_persistent_parent_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=60020' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=60020' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=60020' 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)) 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 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 60020: 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 ____________________ TSSKeyTest.test_persistent_parent_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=11718' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11718' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11718' 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)) 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 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 11718: 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 _________________________ TSSKeyTest.test_rsa_frompem __________________________ 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=20142' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=20142' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=20142' 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)) 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 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 20142: 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 __________________________ TSSKeyTest.test_rsa_topem ___________________________ 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=31752' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31752' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31752' 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)) 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 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 31752: 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 ______________________ TestUtils.test_MakeCredential_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=9260' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9260' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9260' 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)) 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 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 9260: 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 ______________________ TestUtils.test_MakeCredential_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=60753' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=60753' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=60753' 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)) 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 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 60753: 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 ___________________________ TestUtils.test_Wrap_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=10153' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=10153' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=10153' 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)) 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 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 10153: 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 ___________________________ TestUtils.test_Wrap_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=46005' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=46005' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=46005' 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)) 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 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 46005: 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 _________________________ TestUtils.test_create_ek_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=58300' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=58300' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=58300' 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)) 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 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 58300: 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 _________________________ TestUtils.test_create_ek_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=12009' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12009' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12009' 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)) 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 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 12009: 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 _____________________ TestUtils.test_create_ek_high_ecc256 _____________________ 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=23549' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23549' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23549' 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)) 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 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 23549: 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 ____________________ TestUtils.test_create_ek_high_rsa2048 _____________________ 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=11718' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11718' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11718' 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)) 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 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 11718: 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 _________________________ TestUtils.test_create_ek_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=23536' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23536' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23536' 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)) 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 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 23536: 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 ______________________ TestUtils.test_create_ek_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=40005' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40005' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40005' 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)) 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 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 40005: 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 _______________________ TestUtils.test_generate_seed_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=63232' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63232' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63232' 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)) 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 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 63232: 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 _______________________ TestUtils.test_generate_seed_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=13979' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13979' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13979' 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)) 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 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 13979: 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 ________ TestUtils.test_tpm_export_rsa_child_rsa_parent_with_inner_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=8474' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8474' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8474' 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)) 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 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 8474: 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 __________________ TestUtils.test_unwrap_ec_parent_rsa_child ___________________ 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=14242' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=14242' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=14242' 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)) 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 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 14242: 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 _____________ TestUtils.test_unwrap_ec_parent_rsa_child_outerwrap ______________ 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=49224' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49224' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49224' 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)) 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 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 49224: 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 __________________ TestUtils.test_unwrap_rsa_parent_rsa_child __________________ 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=28753' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28753' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28753' 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)) 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 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 28753: 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 _____________ TestUtils.test_unwrap_rsa_parent_rsa_child_outerwrap _____________ 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=54359' 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) tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54359' @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) tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54359' 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)) 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 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 54359: 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 =============================== warnings summary =============================== tpm2_pytss/internal/utils.py:5 /build/python-tpm2-pytss/src/tpm2-pytss/tpm2_pytss/internal/utils.py:5: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.version import LooseVersion -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/test_crypto.py::CryptoTest::test_ecc_bad_curves - AttributeError:... FAILED test/test_crypto.py::CryptoTest::test_encrypted_key - AttributeError: ... FAILED test/test_crypto.py::CryptoTest::test_from_pem_with_scheme - Attribute... FAILED test/test_crypto.py::CryptoTest::test_from_pem_with_symmetric - Attrib... FAILED test/test_crypto.py::CryptoTest::test_get_alg - AttributeError: 'NoneT... FAILED test/test_crypto.py::CryptoTest::test_kdfa - AttributeError: 'NoneType... FAILED test/test_crypto.py::CryptoTest::test_kdfe - AttributeError: 'NoneType... FAILED test/test_crypto.py::CryptoTest::test_keyedhash_from_secret - Attribut... FAILED test/test_crypto.py::CryptoTest::test_keyedhash_from_secret_bad - Attr... FAILED test/test_crypto.py::CryptoTest::test_keyedhash_from_secret_unseal - A... FAILED test/test_crypto.py::CryptoTest::test_loadexternal_ecc - AttributeErro... FAILED test/test_crypto.py::CryptoTest::test_loadexternal_public_rsa - Attrib... FAILED test/test_crypto.py::CryptoTest::test_loadexternal_rsa - AttributeErro... FAILED test/test_crypto.py::CryptoTest::test_nv_getname - AttributeError: 'No... FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_bad_der - Attri... FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_ecc - Attribute... FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_ecc_der - Attri... FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_rsa - Attribute... FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_rsa_der - Attri... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_bad_der - Attrib... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_ecc - AttributeE... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_ecc_der - Attrib... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_ecc_der_cert - A... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_ecc_pem_cert - A... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_rsa - AttributeE... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_rsa_der - Attrib... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_rsa_der_cert - A... FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_rsa_pem_cert - A... FAILED test/test_crypto.py::CryptoTest::test_public_from_private - AttributeE... FAILED test/test_crypto.py::CryptoTest::test_public_from_private_der - Attrib... FAILED test/test_crypto.py::CryptoTest::test_public_getname - AttributeError:... FAILED test/test_crypto.py::CryptoTest::test_public_to_pem_bad_key - Attribut... FAILED test/test_crypto.py::CryptoTest::test_public_to_pem_ecc - AttributeErr... FAILED test/test_crypto.py::CryptoTest::test_public_to_pem_rsa - AttributeErr... FAILED test/test_crypto.py::CryptoTest::test_rsa_exponent - AttributeError: '... FAILED test/test_crypto.py::CryptoTest::test_ssh_key_ecc - AttributeError: 'N... FAILED test/test_crypto.py::CryptoTest::test_symcipher_from_secret - Attribut... FAILED test/test_crypto.py::CryptoTest::test_symcipher_from_secret_bad - Attr... FAILED test/test_crypto.py::CryptoTest::test_symdef_to_crypt - AttributeError... FAILED test/test_crypto.py::CryptoTest::test_topem_ecc - AttributeError: 'Non... FAILED test/test_crypto.py::CryptoTest::test_topem_encodings - AttributeError... FAILED test/test_crypto.py::CryptoTest::test_topem_rsa - AttributeError: 'Non... FAILED test/test_crypto.py::CryptoTest::test_unsupported_key - AttributeError... FAILED test/test_crypto.py::CryptoTest::test_verify_signature_bad - Attribute... FAILED test/test_crypto.py::CryptoTest::test_verify_signature_ecc - Attribute... FAILED test/test_crypto.py::CryptoTest::test_verify_signature_hmac - Attribut... FAILED test/test_crypto.py::CryptoTest::test_verify_singature_rsapss - Attrib... FAILED test/test_crypto.py::CryptoTest::test_verify_singature_rsassa - Attrib... FAILED test/test_esapi.py::TestEsys::test_TPMS_CONTEXT_to_tools - AttributeEr... FAILED test/test_esapi.py::TestEsys::test_activate_credential - AttributeErro... FAILED test/test_esapi.py::TestEsys::test_certify - AttributeError: 'NoneType... FAILED test/test_esapi.py::TestEsys::test_certify_creation - AttributeError: ... FAILED test/test_esapi.py::TestEsys::test_change_eps - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_change_pps - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_clear - AttributeError: 'NoneType' ... FAILED test/test_esapi.py::TestEsys::test_clearcontrol - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_clock_rate_adjust - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_clock_set - AttributeError: 'NoneTy... FAILED test/test_esapi.py::TestEsys::test_commit - AttributeError: 'NoneType'... FAILED test/test_esapi.py::TestEsys::test_context_save_context_load - Attribu... FAILED test/test_esapi.py::TestEsys::test_create - AttributeError: 'NoneType'... FAILED test/test_esapi.py::TestEsys::test_create_none - AttributeError: 'None... FAILED test/test_esapi.py::TestEsys::test_create_primary - AttributeError: 'N... FAILED test/test_esapi.py::TestEsys::test_create_primary_none - AttributeErro... FAILED test/test_esapi.py::TestEsys::test_createloaded - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_createloaded_none - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_dictionary_attack_lock_reset - Attr... FAILED test/test_esapi.py::TestEsys::test_dictionary_attack_parameters - Attr... FAILED test/test_esapi.py::TestEsys::test_double_close - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_duplicate - AttributeError: 'NoneTy... FAILED test/test_esapi.py::TestEsys::test_ecc_parameters - AttributeError: 'N... FAILED test/test_esapi.py::TestEsys::test_ecdh_key_gen - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_ecdh_z_gen - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_encrypt_decrypt - AttributeError: '... FAILED test/test_esapi.py::TestEsys::test_encrypt_decrypt2 - AttributeError: ... FAILED test/test_esapi.py::TestEsys::test_esys_tr_functions - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_event_sequence_complete - Attribute... FAILED test/test_esapi.py::TestEsys::test_evict_control - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_field_upgrade_data - AttributeError... FAILED test/test_esapi.py::TestEsys::test_field_upgrade_start - AttributeErro... FAILED test/test_esapi.py::TestEsys::test_firmware_read - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_flush_context - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_fulltest_no - AttributeError: 'None... FAILED test/test_esapi.py::TestEsys::test_fulltest_yes - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_get_capability - AttributeError: 'N... FAILED test/test_esapi.py::TestEsys::test_get_command_audit_digest - Attribut... FAILED test/test_esapi.py::TestEsys::test_get_random - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_get_session_audit_digest - Attribut... FAILED test/test_esapi.py::TestEsys::test_get_time - AttributeError: 'NoneTyp... FAILED test/test_esapi.py::TestEsys::test_gettcti - AttributeError: 'NoneType... FAILED test/test_esapi.py::TestEsys::test_hash - AttributeError: 'NoneType' o... FAILED test/test_esapi.py::TestEsys::test_hash_sequence - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_hierarchy_control - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_hierarchychangeauth - AttributeErro... FAILED test/test_esapi.py::TestEsys::test_hmac - AttributeError: 'NoneType' o... FAILED test/test_esapi.py::TestEsys::test_hmac_sequence - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_hmac_session - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_import - AttributeError: 'NoneType'... FAILED test/test_esapi.py::TestEsys::test_incremental_resume_test - Attribute... FAILED test/test_esapi.py::TestEsys::test_incremental_self_test - AttributeEr... FAILED test/test_esapi.py::TestEsys::test_load - AttributeError: 'NoneType' o... FAILED test/test_esapi.py::TestEsys::test_make_credential - AttributeError: '... FAILED test/test_esapi.py::TestEsys::test_nv_certify - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_nv_change_auth - AttributeError: 'N... FAILED test/test_esapi.py::TestEsys::test_nv_extend - AttributeError: 'NoneTy... FAILED test/test_esapi.py::TestEsys::test_nv_global_write_lock - AttributeErr... FAILED test/test_esapi.py::TestEsys::test_nv_increment - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_nv_read_lock - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_nv_read_public - AttributeError: 'N... FAILED test/test_esapi.py::TestEsys::test_nv_set_bits - AttributeError: 'None... FAILED test/test_esapi.py::TestEsys::test_nv_undefine_space_special - Attribu... FAILED test/test_esapi.py::TestEsys::test_nv_write_lock - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_object_change_auth - AttributeError... FAILED test/test_esapi.py::TestEsys::test_pcr_allocate - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_pcr_event - AttributeError: 'NoneTy... FAILED test/test_esapi.py::TestEsys::test_pcr_extend - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_pcr_read - AttributeError: 'NoneTyp... FAILED test/test_esapi.py::TestEsys::test_pcr_reset - AttributeError: 'NoneTy... FAILED test/test_esapi.py::TestEsys::test_pcr_set_auth_policy - AttributeErro... FAILED test/test_esapi.py::TestEsys::test_pcr_set_auth_value - AttributeError... FAILED test/test_esapi.py::TestEsys::test_plain_nv_define_write_read_undefine FAILED test/test_esapi.py::TestEsys::test_policy_auth_value - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_policy_authorize - AttributeError: ... FAILED test/test_esapi.py::TestEsys::test_policy_authorize_nv - AttributeErro... FAILED test/test_esapi.py::TestEsys::test_policy_command_code - AttributeErro... FAILED test/test_esapi.py::TestEsys::test_policy_counter_timer - AttributeErr... FAILED test/test_esapi.py::TestEsys::test_policy_cp_hash - AttributeError: 'N... FAILED test/test_esapi.py::TestEsys::test_policy_duplication_select - Attribu... FAILED test/test_esapi.py::TestEsys::test_policy_get_digest - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_policy_locality - AttributeError: '... FAILED test/test_esapi.py::TestEsys::test_policy_name_hash - AttributeError: ... FAILED test/test_esapi.py::TestEsys::test_policy_nv - AttributeError: 'NoneTy... FAILED test/test_esapi.py::TestEsys::test_policy_nv_written - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_policy_or - AttributeError: 'NoneTy... FAILED test/test_esapi.py::TestEsys::test_policy_password - AttributeError: '... FAILED test/test_esapi.py::TestEsys::test_policy_pcr - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_policy_physical_presence - Attribut... FAILED test/test_esapi.py::TestEsys::test_policy_secret - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_policy_signed - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_policy_template - AttributeError: '... FAILED test/test_esapi.py::TestEsys::test_policy_ticket - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_policyrestart - AttributeError: 'No... FAILED test/test_esapi.py::TestEsys::test_pp_commands - AttributeError: 'None... FAILED test/test_esapi.py::TestEsys::test_quote - AttributeError: 'NoneType' ... FAILED test/test_esapi.py::TestEsys::test_read_clock - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_readpublic - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_ref_parent - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_rewrap - AttributeError: 'NoneType'... FAILED test/test_esapi.py::TestEsys::test_rsa_enc_dec - AttributeError: 'None... FAILED test/test_esapi.py::TestEsys::test_rsa_enc_dec_with_label - AttributeE... FAILED test/test_esapi.py::TestEsys::test_set_algorithm_set - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_set_command_code_audit_status - Att... FAILED test/test_esapi.py::TestEsys::test_set_primary_policy - AttributeError... FAILED test/test_esapi.py::TestEsys::test_shutdown_bad - AttributeError: 'Non... FAILED test/test_esapi.py::TestEsys::test_shutdown_clear - AttributeError: 'N... FAILED test/test_esapi.py::TestEsys::test_shutdown_no_arg - AttributeError: '... FAILED test/test_esapi.py::TestEsys::test_shutdown_state - AttributeError: 'N... FAILED test/test_esapi.py::TestEsys::test_sign - AttributeError: 'NoneType' o... FAILED test/test_esapi.py::TestEsys::test_start_auth_session_enckey - Attribu... FAILED test/test_esapi.py::TestEsys::test_start_auth_session_enckey_bindkey FAILED test/test_esapi.py::TestEsys::test_start_auth_session_noncecaller - At... FAILED test/test_esapi.py::TestEsys::test_start_auth_session_noncecaller_bad FAILED test/test_esapi.py::TestEsys::test_stir_random - AttributeError: 'None... FAILED test/test_esapi.py::TestEsys::test_test_parms - AttributeError: 'NoneT... FAILED test/test_esapi.py::TestEsys::test_tr_get_tpm_handle - AttributeError:... FAILED test/test_esapi.py::TestEsys::test_tr_sess_set_attributes - AttributeE... FAILED test/test_esapi.py::TestEsys::test_unseal - AttributeError: 'NoneType'... FAILED test/test_esapi.py::TestEsys::test_vendor_tcg_test - AttributeError: '... FAILED test/test_esapi.py::TestEsys::test_verify_signature - AttributeError: ... FAILED test/test_esapi.py::TestEsys::test_z_gen_2_phase - AttributeError: 'No... FAILED test/test_tcti.py::TestTCTI::test_cancel - AttributeError: 'NoneType' ... FAILED test/test_tcti.py::TestTCTI::test_finalize - AttributeError: 'NoneType... FAILED test/test_tcti.py::TestTCTI::test_get_poll_handles - AttributeError: '... FAILED test/test_tcti.py::TestTCTI::test_init - AttributeError: 'NoneType' ob... FAILED test/test_tcti.py::TestTCTI::test_make_sticky - AttributeError: 'NoneT... FAILED test/test_tcti.py::TestTCTI::test_set_locality - AttributeError: 'None... FAILED test/test_tcti.py::TestTCTI::test_tctildr - AttributeError: 'NoneType'... FAILED test/test_tcti.py::TestTCTI::test_transmit_receive - AttributeError: '... FAILED test/test_tsskey.py::TSSKeyTest::test_bad_oid - AttributeError: 'NoneT... FAILED test/test_tsskey.py::TSSKeyTest::test_bad_pem_type - AttributeError: '... FAILED test/test_tsskey.py::TSSKeyTest::test_create_load_ecc - AttributeError... FAILED test/test_tsskey.py::TSSKeyTest::test_create_load_ecc_password - Attri... FAILED test/test_tsskey.py::TSSKeyTest::test_create_load_rsa - AttributeError... FAILED test/test_tsskey.py::TSSKeyTest::test_create_no_password_load_password FAILED test/test_tsskey.py::TSSKeyTest::test_create_password_load_no_password FAILED test/test_tsskey.py::TSSKeyTest::test_no_ecc - AttributeError: 'NoneTy... FAILED test/test_tsskey.py::TSSKeyTest::test_no_ecc_no_rsa - AttributeError: ... FAILED test/test_tsskey.py::TSSKeyTest::test_persistent_parent_ecc - Attribut... FAILED test/test_tsskey.py::TSSKeyTest::test_persistent_parent_rsa - Attribut... FAILED test/test_tsskey.py::TSSKeyTest::test_rsa_frompem - AttributeError: 'N... FAILED test/test_tsskey.py::TSSKeyTest::test_rsa_topem - AttributeError: 'Non... FAILED test/test_utils.py::TestUtils::test_MakeCredential_ecc - AttributeErro... FAILED test/test_utils.py::TestUtils::test_MakeCredential_rsa - AttributeErro... FAILED test/test_utils.py::TestUtils::test_Wrap_ecc - AttributeError: 'NoneTy... FAILED test/test_utils.py::TestUtils::test_Wrap_rsa - AttributeError: 'NoneTy... FAILED test/test_utils.py::TestUtils::test_create_ek_bad - AttributeError: 'N... FAILED test/test_utils.py::TestUtils::test_create_ek_ecc - AttributeError: 'N... FAILED test/test_utils.py::TestUtils::test_create_ek_high_ecc256 - AttributeE... FAILED test/test_utils.py::TestUtils::test_create_ek_high_rsa2048 - Attribute... FAILED test/test_utils.py::TestUtils::test_create_ek_rsa - AttributeError: 'N... FAILED test/test_utils.py::TestUtils::test_create_ek_template - AttributeErro... FAILED test/test_utils.py::TestUtils::test_generate_seed_ecc - AttributeError... FAILED test/test_utils.py::TestUtils::test_generate_seed_rsa - AttributeError... FAILED test/test_utils.py::TestUtils::test_tpm_export_rsa_child_rsa_parent_with_inner_key FAILED test/test_utils.py::TestUtils::test_unwrap_ec_parent_rsa_child - Attri... FAILED test/test_utils.py::TestUtils::test_unwrap_ec_parent_rsa_child_outerwrap FAILED test/test_utils.py::TestUtils::test_unwrap_rsa_parent_rsa_child - Attr... FAILED test/test_utils.py::TestUtils::test_unwrap_rsa_parent_rsa_child_outerwrap ERROR test/test_fapi.py::TestFapiECC::test_provision_ok - tpm2_pytss.TSS2_Exc... ERROR test/test_fapi.py::TestFapiECC::test_provision_fail - tpm2_pytss.TSS2_E... ERROR test/test_fapi.py::TestFapiECC::test_get_random - tpm2_pytss.TSS2_Excep... ERROR test/test_fapi.py::TestFapiECC::test_get_random_zero - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiECC::test_get_random_large - tpm2_pytss.TSS2... ERROR test/test_fapi.py::TestFapiECC::test_get_random_negative - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiECC::test_get_info - tpm2_pytss.TSS2_Excepti... ERROR test/test_fapi.py::TestFapiECC::test_list - tpm2_pytss.TSS2_Exception.T... ERROR test/test_fapi.py::TestFapiECC::test_list_search_path - tpm2_pytss.TSS2... ERROR test/test_fapi.py::TestFapiECC::test_list_bad_search_path - tpm2_pytss.... ERROR test/test_fapi.py::TestFapiECC::test_create_key - tpm2_pytss.TSS2_Excep... ERROR test/test_fapi.py::TestFapiECC::test_create_key_double_ok - tpm2_pytss.... ERROR test/test_fapi.py::TestFapiECC::test_create_key_double_fail - tpm2_pyts... ERROR test/test_fapi.py::TestFapiECC::test_get_esys_blob_contextload - tpm2_p... ERROR test/test_fapi.py::TestFapiECC::test_get_esys_blob_bad - tpm2_pytss.TSS... ERROR test/test_fapi.py::TestFapiECC::test_get_esys_blob_deserialize - tpm2_p... ERROR test/test_fapi.py::TestFapiECC::test_verify - tpm2_pytss.TSS2_Exception... ERROR test/test_fapi.py::TestFapiECC::test_verify_fail - tpm2_pytss.TSS2_Exce... ERROR test/test_fapi.py::TestFapiECC::test_import_key_double_ok - tpm2_pytss.... ERROR test/test_fapi.py::TestFapiECC::test_import_key_double_fail - tpm2_pyts... ERROR test/test_fapi.py::TestFapiECC::test_import_policy_double_ok - tpm2_pyt... ERROR test/test_fapi.py::TestFapiECC::test_import_policy_double_fail - tpm2_p... ERROR test/test_fapi.py::TestFapiECC::test_import_exported_key - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiECC::test_export_imported_policy - tpm2_pyts... ERROR test/test_fapi.py::TestFapiECC::test_create_seal - tpm2_pytss.TSS2_Exce... ERROR test/test_fapi.py::TestFapiECC::test_create_seal_double_ok - tpm2_pytss... ERROR test/test_fapi.py::TestFapiECC::test_create_seal_double_fail - tpm2_pyt... ERROR test/test_fapi.py::TestFapiECC::test_create_seal_random - tpm2_pytss.TS... ERROR test/test_fapi.py::TestFapiECC::test_create_seal_both_data_and_size_fail ERROR test/test_fapi.py::TestFapiECC::test_create_seal_neither_data_nor_size_fail ERROR test/test_fapi.py::TestFapiECC::test_unseal - tpm2_pytss.TSS2_Exception... ERROR test/test_fapi.py::TestFapiECC::test_quote_verify - tpm2_pytss.TSS2_Exc... ERROR test/test_fapi.py::TestFapiECC::test_export_key - tpm2_pytss.TSS2_Excep... ERROR test/test_fapi.py::TestFapiECC::test_delete_key - tpm2_pytss.TSS2_Excep... ERROR test/test_fapi.py::TestFapiECC::test_set_get_description - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiECC::test_get_empty_description - tpm2_pytss... ERROR test/test_fapi.py::TestFapiECC::test_set_get_app_data - tpm2_pytss.TSS2... ERROR test/test_fapi.py::TestFapiECC::test_get_no_app_data - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiECC::test_set_get_certificate - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiECC::test_get_empty_certificate - tpm2_pytss... ERROR test/test_fapi.py::TestFapiECC::test_get_empty_platform_certificates_ok ERROR test/test_fapi.py::TestFapiECC::test_get_empty_platform_certificates_fail ERROR test/test_fapi.py::TestFapiECC::test_pcr_read - tpm2_pytss.TSS2_Excepti... ERROR test/test_fapi.py::TestFapiECC::test_pcr_extend_read - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiECC::test_nv_write_read - tpm2_pytss.TSS2_Ex... ERROR test/test_fapi.py::TestFapiECC::test_nv_increment - tpm2_pytss.TSS2_Exc... ERROR test/test_fapi.py::TestFapiECC::test_nv_pcr - tpm2_pytss.TSS2_Exception... ERROR test/test_fapi.py::TestFapiECC::test_nv_set_bits - tpm2_pytss.TSS2_Exce... ERROR test/test_fapi.py::TestFapiECC::test_set_auth_callback - tpm2_pytss.TSS... ERROR test/test_fapi.py::TestFapiECC::test_unset_auth_callback - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiECC::test_write_authorize_nv - tpm2_pytss.TS... ERROR test/test_fapi.py::TestFapiECC::test_authorize_policy - tpm2_pytss.TSS2... ERROR test/test_fapi.py::TestFapiECC::test_policy_signed - tpm2_pytss.TSS2_Ex... ERROR test/test_fapi.py::TestFapiECC::test_policy_branched - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiECC::test_policy_action - tpm2_pytss.TSS2_Ex... ERROR test/test_fapi.py::TestFapiECC::test_sign - tpm2_pytss.TSS2_Exception.T... ERROR test/test_fapi.py::TestFapiECC::test_get_tpm_blobs - tpm2_pytss.TSS2_Ex... ERROR test/test_fapi.py::TestFapiRSA::test_provision_ok - tpm2_pytss.TSS2_Exc... ERROR test/test_fapi.py::TestFapiRSA::test_provision_fail - tpm2_pytss.TSS2_E... ERROR test/test_fapi.py::TestFapiRSA::test_get_random - tpm2_pytss.TSS2_Excep... ERROR test/test_fapi.py::TestFapiRSA::test_get_random_zero - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiRSA::test_get_random_large - tpm2_pytss.TSS2... ERROR test/test_fapi.py::TestFapiRSA::test_get_random_negative - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiRSA::test_get_info - tpm2_pytss.TSS2_Excepti... ERROR test/test_fapi.py::TestFapiRSA::test_list - tpm2_pytss.TSS2_Exception.T... ERROR test/test_fapi.py::TestFapiRSA::test_list_search_path - tpm2_pytss.TSS2... ERROR test/test_fapi.py::TestFapiRSA::test_list_bad_search_path - tpm2_pytss.... ERROR test/test_fapi.py::TestFapiRSA::test_create_key - tpm2_pytss.TSS2_Excep... ERROR test/test_fapi.py::TestFapiRSA::test_create_key_double_ok - tpm2_pytss.... ERROR test/test_fapi.py::TestFapiRSA::test_create_key_double_fail - tpm2_pyts... ERROR test/test_fapi.py::TestFapiRSA::test_get_esys_blob_contextload - tpm2_p... ERROR test/test_fapi.py::TestFapiRSA::test_get_esys_blob_bad - tpm2_pytss.TSS... ERROR test/test_fapi.py::TestFapiRSA::test_get_esys_blob_deserialize - tpm2_p... ERROR test/test_fapi.py::TestFapiRSA::test_verify - tpm2_pytss.TSS2_Exception... ERROR test/test_fapi.py::TestFapiRSA::test_verify_fail - tpm2_pytss.TSS2_Exce... ERROR test/test_fapi.py::TestFapiRSA::test_import_key_double_ok - tpm2_pytss.... ERROR test/test_fapi.py::TestFapiRSA::test_import_key_double_fail - tpm2_pyts... ERROR test/test_fapi.py::TestFapiRSA::test_import_policy_double_ok - tpm2_pyt... ERROR test/test_fapi.py::TestFapiRSA::test_import_policy_double_fail - tpm2_p... ERROR test/test_fapi.py::TestFapiRSA::test_import_exported_key - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiRSA::test_export_imported_policy - tpm2_pyts... ERROR test/test_fapi.py::TestFapiRSA::test_create_seal - tpm2_pytss.TSS2_Exce... ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_double_ok - tpm2_pytss... ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_double_fail - tpm2_pyt... ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_random - tpm2_pytss.TS... ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_both_data_and_size_fail ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_neither_data_nor_size_fail ERROR test/test_fapi.py::TestFapiRSA::test_unseal - tpm2_pytss.TSS2_Exception... ERROR test/test_fapi.py::TestFapiRSA::test_quote_verify - tpm2_pytss.TSS2_Exc... ERROR test/test_fapi.py::TestFapiRSA::test_export_key - tpm2_pytss.TSS2_Excep... ERROR test/test_fapi.py::TestFapiRSA::test_delete_key - tpm2_pytss.TSS2_Excep... ERROR test/test_fapi.py::TestFapiRSA::test_set_get_description - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiRSA::test_get_empty_description - tpm2_pytss... ERROR test/test_fapi.py::TestFapiRSA::test_set_get_app_data - tpm2_pytss.TSS2... ERROR test/test_fapi.py::TestFapiRSA::test_get_no_app_data - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiRSA::test_set_get_certificate - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiRSA::test_get_empty_certificate - tpm2_pytss... ERROR test/test_fapi.py::TestFapiRSA::test_get_empty_platform_certificates_ok ERROR test/test_fapi.py::TestFapiRSA::test_get_empty_platform_certificates_fail ERROR test/test_fapi.py::TestFapiRSA::test_pcr_read - tpm2_pytss.TSS2_Excepti... ERROR test/test_fapi.py::TestFapiRSA::test_pcr_extend_read - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiRSA::test_nv_write_read - tpm2_pytss.TSS2_Ex... ERROR test/test_fapi.py::TestFapiRSA::test_nv_increment - tpm2_pytss.TSS2_Exc... ERROR test/test_fapi.py::TestFapiRSA::test_nv_pcr - tpm2_pytss.TSS2_Exception... ERROR test/test_fapi.py::TestFapiRSA::test_nv_set_bits - tpm2_pytss.TSS2_Exce... ERROR test/test_fapi.py::TestFapiRSA::test_set_auth_callback - tpm2_pytss.TSS... ERROR test/test_fapi.py::TestFapiRSA::test_unset_auth_callback - tpm2_pytss.T... ERROR test/test_fapi.py::TestFapiRSA::test_write_authorize_nv - tpm2_pytss.TS... ERROR test/test_fapi.py::TestFapiRSA::test_authorize_policy - tpm2_pytss.TSS2... ERROR test/test_fapi.py::TestFapiRSA::test_policy_signed - tpm2_pytss.TSS2_Ex... ERROR test/test_fapi.py::TestFapiRSA::test_policy_branched - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiRSA::test_policy_action - tpm2_pytss.TSS2_Ex... ERROR test/test_fapi.py::TestFapiRSA::test_sign - tpm2_pytss.TSS2_Exception.T... ERROR test/test_fapi.py::TestFapiRSA::test_get_tpm_blobs - tpm2_pytss.TSS2_Ex... ERROR test/test_fapi.py::TestFapiRSA::test_encrypt_decrypt - tpm2_pytss.TSS2_... ERROR test/test_fapi.py::TestFapiRSA::test_encrypt_decrypt - AttributeError: ... ===== 208 failed, 155 passed, 1 warning, 116 errors in 6494.80s (1:48:14) ====== ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix28/build receiving incremental file list python-tpm2-pytss-1.1.0-1-riscv64-build.log python-tpm2-pytss-1.1.0-1-riscv64-check.log python-tpm2-pytss-1.1.0-1-riscv64-pkgver.log sent 81 bytes received 30,888 bytes 20,646.00 bytes/sec total size is 1,102,638 speedup is 35.60