MCPcopy Create free account

hub / github.com/Foxboron/ssh-tpm-ca-authority / functions

Functions50 in github.com/Foxboron/ssh-tpm-ca-authority

↓ 5 callersMethodVerify
()
attest/attest.go:462
↓ 4 callersFunctionReadEKCert
(rwc transport.TPMCloser)
attest/attest.go:345
↓ 2 callersMethodClose
Close implements the TPM interface.
cmd/ssh-tpm-ca-authority/main_test.go:32
↓ 2 callersMethodCreateChallenge
(secret []byte)
attest/attest.go:496
↓ 2 callersMethodGetCASignedKey
(rwc transport.TPMCloser, clientkey *keyfile.TPMKey, rsp *tpm2.CreateResponse, user, host string)
client/client.go:57
↓ 2 callersMethodGetUser
(user string, ek string)
server/config.go:48
↓ 2 callersMethodHandlers
()
server/server.go:39
↓ 2 callersMethodHasHost
(host string)
server/config.go:62
↓ 2 callersFunctionNewClient
(url string)
client/client.go:33
↓ 2 callersFunctionNewTPMAttestServer
(rwc transport.TPMCloser, config *Config)
server/server.go:211
↓ 2 callersMethodVerifyCreation
(restricted bool)
attest/attest.go:394
↓ 2 callersFunctioneccIntToBytes
ECC coordinates need to maintain a specific size based on the curve, so we pad the front with zeros. This is particularly an issue for NIST-P521 coord
attest/attest.go:339
↓ 2 callersFunctiongetAK
(rwc transport.TPMCloser)
attest/attest.go:224
↓ 1 callersMethodClose
Close implements the TPM interface.
cmd/getkey/main.go:37
↓ 1 callersMethodGetAttestURL
()
client/client.go:40
↓ 1 callersFunctionGetECDSAFromTPMTPublic
(pub *tpm2.TPMTPublic)
attest/attest.go:680
↓ 1 callersMethodGetKey
(rwc transport.TPMCloser, user, host string)
client/client.go:48
↓ 1 callersMethodGetSecret
(rwc transport.TPMCloser, ch *EncryptedCredential)
attest/attest.go:195
↓ 1 callersMethodGetSubmitURL
()
client/client.go:44
↓ 1 callersFunctionNewAttestationParameters
(rwc transport.TPMCloser, tpmkey *keyfile.TPMKey, rsp *tpm2.CreateResponse)
attest/attest.go:238
↓ 1 callersFunctionNewConfig
(b []byte)
server/config.go:72
↓ 1 callersFunctionOpenSimulator
OpenSimulator starts and opens a TPM simulator.
cmd/getkey/main.go:26
↓ 1 callersFunctionOpenSimulator
OpenSimulator starts and opens a TPM simulator.
cmd/ssh-tpm-ca-authority/main_test.go:37
↓ 1 callersFunctionVerifySignature
(pub *tpm2.TPMTPublic, b []byte, sig *tpm2.TPMTSignature)
attest/attest.go:693
↓ 1 callersFunctionVerifyUserAndJWT
(connector string, email string, nonce string, jwt string)
oidc/oidc.go:189
↓ 1 callersFunctioncreateECCSeed
(pub *tpm2.TPMTPublic, label string)
attest/attest.go:529
↓ 1 callersFunctioncredentialWrapping
(aik tpm2.TPM2BName, pub *tpm2.TPMTPublic, secret []byte)
attest/attest.go:588
↓ 1 callersFunctiongetCode
(codeCh chan string, errCh chan error)
oidc/oidc.go:96
↓ 1 callersFunctionrun
(ctx context.Context, rwc transport.TPMCloser, config *server.Config)
cmd/ssh-tpm-ca-authority/main.go:25
↓ 1 callersFunctionstartRedirectListener
(state, htmlPage, redirectURL string, codeCh chan string, errCh chan error)
oidc/oidc.go:35
FunctionCreateChallenge
(ap *AttestationParameters)
attest/attest.go:639
FunctionCreateSRK
(rwc transport.TPMCloser, hier tpm2.TPMHandle, ownerAuth []byte)
attest/attest.go:645
FunctionDecode
(b io.ReadCloser)
internal/json/json.go:19
FunctionEkPolicy
(t transport.TPM, handle tpm2.TPMISHPolicy, nonceTPM tpm2.TPM2BNonce)
attest/attest.go:384
FunctionEncode
(w http.ResponseWriter, status int, v T)
internal/json/json.go:10
MethodFlush
(rwc transport.TPMCloser)
attest/attest.go:191
MethodIsValidUser
(user string, ek string)
server/config.go:42
MethodMarshalJSON
()
attest/attest.go:126
FunctionRunOIDCFlow
(connector, nonce string)
oidc/oidc.go:107
MethodSend
Send implements the TPM interface.
cmd/getkey/main.go:21
MethodSend
Send implements the TPM interface.
cmd/ssh-tpm-ca-authority/main_test.go:27
FunctionTestMain
(t *testing.T)
cmd/ssh-tpm-ca-authority/main_test.go:47
FunctionTestYaml
(t *testing.T)
server/config_test.go:27
MethodUnmarshalJSON
(b []byte)
attest/attest.go:145
MethodUnmarshalYAML
(b []byte)
server/config.go:15
MethodattestHandler
(w http.ResponseWriter, r *http.Request)
server/server.go:46
Functionmain
()
cmd/getek/main.go:13
Functionmain
()
cmd/getkey/main.go:50
Functionmain
()
cmd/ssh-tpm-ca-authority/main.go:55
MethodsubmitHandler
(w http.ResponseWriter, r *http.Request)
server/server.go:113