File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -212,13 +212,24 @@ func (t *wrappedTPM20) eks() ([]EK, error) {
212
212
if pub .RSAParameters == nil {
213
213
return nil , errors .New ("ECC EK not yet supported" )
214
214
}
215
+
216
+ i , err := t .info ()
217
+ if err != nil {
218
+ return nil , fmt .Errorf ("Retrieving TPM info failed: %v" , err )
219
+ }
220
+ ekPub := & rsa.PublicKey {
221
+ E : int (pub .RSAParameters .Exponent ()),
222
+ N : pub .RSAParameters .Modulus (),
223
+ }
224
+ var certificateURL string
225
+ if i .Manufacturer .String () == manufacturerIntel {
226
+ certificateURL = intelEKURL (ekPub )
227
+ }
215
228
return []EK {
216
229
{
217
- Public : & rsa.PublicKey {
218
- E : int (pub .RSAParameters .Exponent ()),
219
- N : pub .RSAParameters .Modulus (),
220
- },
221
- handle : commonRSAEkEquivalentHandle ,
230
+ Public : ekPub ,
231
+ CertificateURL : certificateURL ,
232
+ handle : commonRSAEkEquivalentHandle ,
222
233
},
223
234
}, nil
224
235
}
You can’t perform that action at this time.
0 commit comments