From 79ac1b21557ec2160907a9199a64919d8fdbfc3f Mon Sep 17 00:00:00 2001 From: El Mostafa IDRASSI Date: Mon, 17 Oct 2022 17:37:59 +0200 Subject: [PATCH] Re-included support for local machine keys, and added some notes about them. --- README.md | 23 +++++--------- ecdsa.go | 14 ++++++--- ecdsa_test.go | 10 +++--- examples/csr/main.go | 2 +- pcpcrypto.go | 53 +++++++++++++++++++++---------- pcpcrypto_test.go | 75 +++++++++++++++++++++++++++++++++++++------- rsa.go | 14 ++++++--- rsa_test.go | 16 +++++----- 8 files changed, 141 insertions(+), 66 deletions(-) diff --git a/README.md b/README.md index d6187ed..89fe910 100644 --- a/README.md +++ b/README.md @@ -20,21 +20,14 @@ The pcpCrypto package is installable using go get: `go get github.com/ElMostafaI Each PCP-generated TPM key is persistent in regards to the PCP KSP : it has a name and persists through reboots. -In order to achieve this persistence, the PCP KSP creates, for each -PCP-generated TPM key, a corresponding file which contains all the information -about the public and private parts of the key. For a key that applies to the current user ``, this file resides in -`C:\Users\\AppData\Local\Microsoft\Crypto\PCPKSP\`, this file resides in `C:\Users\\AppData\Local\Microsoft\Crypto\PCPKSP\