From 784f3803f93adb65718afe4f55702ccc84483e79 Mon Sep 17 00:00:00 2001 From: Michael Kuc Date: Tue, 10 Sep 2019 10:51:32 +0100 Subject: [PATCH] Fixed typo in Certificates.hpp. Updated GenCErtificates.sh script to accomodate change. --- Certificates.hpp.template | 2 +- GenCertificates.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Certificates.hpp.template b/Certificates.hpp.template index d7f034d..76161e2 100644 --- a/Certificates.hpp.template +++ b/Certificates.hpp.template @@ -21,4 +21,4 @@ along with this program. If not, see . extern uint8_t attestCert[/* attestation certificate size */]; extern uint8_t attestPrivKey[/* attestation private key size */]; -extern uint8_t attestPubKey[/* attestion public key size */]; +extern uint8_t attestPubKey[/* attestation public key size */]; diff --git a/GenCertificates.sh b/GenCertificates.sh index 5e51e97..43f6f52 100755 --- a/GenCertificates.sh +++ b/GenCertificates.sh @@ -28,4 +28,4 @@ pubSize="$(printf "%s" "${pubkey}" | wc -w)" printf "%s\n" "${pubkey}" | sed -e '/\/\/ Generate public key here/{r/dev/stdin d }' Keys/Certificates.cpp.template.2 > Certificates.cpp -sed -e "s/\\/\\* attestation certificate size \\*\\//${certificateSize}/; s/\\/\\* attestation private key size \\*\\//${privSize}/; s/\\/\\* attestion public key size \\*\\//${pubSize}/" Certificates.hpp.template > Certificates.hpp +sed -e "s/\\/\\* attestation certificate size \\*\\//${certificateSize}/; s/\\/\\* attestation private key size \\*\\//${privSize}/; s/\\/\\* attestation public key size \\*\\//${pubSize}/" Certificates.hpp.template > Certificates.hpp