| 1 |
// Copyright 2019 Google Inc. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 |
// use this file except in compliance with the License. You may obtain a copy of |
| 5 |
// the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
// License for the specific language governing permissions and limitations under |
| 13 |
// the License. |
| 14 |
|
| 15 |
package attest |
| 16 |
|
| 17 |
// TCGVendorID represents a unique TCG manufacturer code. |
| 18 |
// The canonical reference used is located at: |
| 19 |
// https://trustedcomputinggroup.org/wp-content/uploads/TCG-TPM-Vendor-ID-Registry-Version-1.01-Revision-1.00.pdf |
| 20 |
type TCGVendorID uint32 |
| 21 |
|
| 22 |
var vendors = map[TCGVendorID]string{ |
| 23 |
1095582720: "AMD", |
| 24 |
1096043852: "Atmel", |
| 25 |
1112687437: "Broadcom", |
| 26 |
1229081856: "IBM", |
| 27 |
1213220096: "HPE", |
| 28 |
1297303124: "Microsoft", |
| 29 |
1229346816: "Infineon", |
| 30 |
1229870147: "Intel", |
| 31 |
1279610368: "Lenovo", |
| 32 |
1314082080: "National Semiconductor", |
| 33 |
1314150912: "Nationz", |
| 34 |
1314145024: "Nuvoton Technology", |
| 35 |
1363365709: "Qualcomm", |
| 36 |
1397576515: "SMSC", |
| 37 |
1398033696: "ST Microelectronics", |
| 38 |
1397576526: "Samsung", |
| 39 |
1397641984: "Sinosun", |
| 40 |
1415073280: "Texas Instruments", |
| 41 |
1464156928: "Winbond", |
| 42 |
1380926275: "Fuzhou Rockchip", |
| 43 |
1196379975: "Google", |
| 44 |
} |
| 45 |
|
| 46 |
func (id TCGVendorID) String() string { |
| 47 |
return vendors[id] |
| 48 |
} |