Documentation ¶
Overview ¶
(C) Copyright 2021 Hewlett Packard Enterprise Development LP
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
(C) Copyright 2021 Hewlett Packard Enterprise Development LP
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
(C) Copyright 2021 Hewlett Packard Enterprise Development LP
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
(C) Copyright 2021 Hewlett Packard Enterprise Development LP
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( FlagAttestationKeyDefault = tpm2.FlagSign | tpm2.FlagRestricted | tpm2.FlagFixedTPM | tpm2.FlagFixedParent | tpm2.FlagSensitiveDataOrigin | tpm2.FlagUserWithAuth FlagDevIDKeyDefault = tpm2.FlagSign | tpm2.FlagFixedTPM | tpm2.FlagFixedParent | tpm2.FlagSensitiveDataOrigin | tpm2.FlagUserWithAuth )
Variables ¶
This section is empty.
Functions ¶
func DefaultAKTemplateRSA ¶
func DefaultDevIDTemplateRSA ¶
Types ¶
type Keygen ¶
type Keygen struct {
// contains filtered or unexported fields
}
func DefaultRSA ¶
func DefaultRSA() *Keygen
func (*Keygen) CreateAttestationKey ¶
func (gen *Keygen) CreateAttestationKey(rw io.ReadWriter) (*KeyInfo, error)
func (*Keygen) CreateDevIDKey ¶
func (gen *Keygen) CreateDevIDKey(rw io.ReadWriter) (*KeyInfo, error)
func (*Keygen) CreateEndorsementKey ¶
func (gen *Keygen) CreateEndorsementKey(rw io.ReadWriter) (*KeyInfo, error)
type Option ¶
type Option func(*config)