Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
salrashid123 authored Aug 29, 2024
1 parent ae0eeea commit 22342f3
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ $ go run hmac/nopassword/verify/main.go \

### Signature: RSA-SSA-PKCS1


Internally, this generates an RSA inside the tpm and uses the tpm itself to create the signature.

The public key is also written to a tink keyset and it can be used without a TPM to verify
Expand Down Expand Up @@ -485,6 +484,43 @@ AEAD:
}
```

Signing

```json
{
"primaryKeyId": 623370012,
"key": [
{
"keyData": {
"typeUrl": "type.googleapis.com/github.salrashid123.tink-go-tpm.RsaSsaPkcs1PublicTpmKey",
"value": "EgIIAxqA...",
"keyMaterialType": "ASYMMETRIC_PUBLIC"
},
"status": "ENABLED",
"keyId": 623370012,
"outputPrefixType": "TINK"
}
]
}

{
"primaryKeyId": 623370012,
"key": [
{
"keyData": {
"typeUrl": "type.googleapis.com/github.salrashid123.tink-go-tpm.RsaSsaPkcs1PrivateTpmKey",
"value": "EAIy1ggSjA...",
"keyMaterialType": "ASYMMETRIC_PRIVATE"
},
"status": "ENABLED",
"keyId": 623370012,
"outputPrefixType": "TINK"
}
]
}
```


Where the "Value" field is the proto keys shown in `proto/tinktpm.proto`

#### Parent Key
Expand Down Expand Up @@ -545,4 +581,4 @@ go test -v ./aead -run ^TestAeadOwnerPasswordFail$

go test -v ./signature -run ^TestSignVerify$
go test -v ./signature -run ^TestSignVerifyFail$
```
```

0 comments on commit 22342f3

Please sign in to comment.