This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euxo pipefail | |
export TPM2TOOLS_TCTI="device:/dev/tpmrm0" | |
export TPM2_PKCS11_TCTI="device:/dev/tpmrm0" | |
#export TPM2_PKCS11_LOG_LEVEL=2 | |
tpm2_print_handles () { | |
for i in transient saved-session loaded-session; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU nano 4.3 disk-encryption.sh | |
#!/bin/bash | |
set -euxo pipefail | |
rpm -qa clevis* cryptsetup* luks* tpm2* e*fspr* | sort | |
# Creation | |
# dd if=/dev/zero of=/dev/sda1 bs=1M status=progress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dependencies | |
# tpm2-tools-4.0.1-1.fc31.x86_64 | |
# tpm2-tss-2.3.1-1.fc31.x86_64 | |
# tpm2-tss-engine-master | |
set -euxo pipefail | |
export TPM2TOOLS_TCTI="device:/dev/tpmrm0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include "config.h" | |
#include "test.h" | |
#if HAVE_OPENSSL_SHA_H |