def testX509Cert(self):
"""Test creating an X509 certificate"""
- keyfile = self.TestFile('key.key')
+ keyfile = self.TestFile('security/key.key')
entry_args = {
'keyfile': keyfile,
}
def testX509CertMissing(self):
"""Test that binman still produces an image if openssl is missing"""
- keyfile = self.TestFile('key.key')
+ keyfile = self.TestFile('security/key.key')
entry_args = {
'keyfile': 'keyfile',
}
def testPackTiSecure(self):
"""Test that an image with a TI secured binary can be created"""
- keyfile = self.TestFile('key.key')
+ keyfile = self.TestFile('security/key.key')
entry_args = {
'keyfile': keyfile,
}
def testPackTiSecureFirewall(self):
"""Test that an image with a TI secured binary can be created"""
- keyfile = self.TestFile('key.key')
+ keyfile = self.TestFile('security/key.key')
entry_args = {
'keyfile': keyfile,
}
def testPackTiSecureFirewallMissingProperty(self):
"""Test that an image with a TI secured binary can be created"""
- keyfile = self.TestFile('key.key')
+ keyfile = self.TestFile('security/key.key')
entry_args = {
'keyfile': keyfile,
}
def testPackTiSecureMissingTool(self):
"""Test that an image with a TI secured binary (non-functional) can be created
when openssl is missing"""
- keyfile = self.TestFile('key.key')
+ keyfile = self.TestFile('security/key.key')
entry_args = {
'keyfile': keyfile,
}
def testPackTiSecureROM(self):
"""Test that a ROM image with a TI secured binary can be created"""
- keyfile = self.TestFile('key.key')
+ keyfile = self.TestFile('security/key.key')
entry_args = {
'keyfile': keyfile,
}
def testPackTiSecureROMCombined(self):
"""Test that a ROM image with a TI secured binary can be created"""
- keyfile = self.TestFile('key.key')
+ keyfile = self.TestFile('security/key.key')
entry_args = {
'keyfile': keyfile,
}
def testSplPubkeyDtb(self):
"""Test u_boot_spl_pubkey_dtb etype"""
- data = tools.read_file(self.TestFile("key.pem"))
+ data = tools.read_file(self.TestFile("security/key.pem"))
self._MakeInputFile("key.crt", data)
self._DoReadFileRealDtb('security/spl_pubkey_dtb.dts')
image = control.images['image']
"""Test xilinx-bootgen etype"""
bootgen = bintool.Bintool.create('bootgen')
self._CheckBintool(bootgen)
- data = tools.read_file(self.TestFile("key.key"))
+ data = tools.read_file(self.TestFile("security/key.key"))
self._MakeInputFile("psk.pem", data)
self._MakeInputFile("ssk.pem", data)
self._SetupPmuFwlElf()
"""Test xilinx-bootgen etype"""
bootgen = bintool.Bintool.create('bootgen')
self._CheckBintool(bootgen)
- data = tools.read_file(self.TestFile("key.key"))
+ data = tools.read_file(self.TestFile("security/key.key"))
self._MakeInputFile("psk.pem", data)
self._MakeInputFile("ssk.pem", data)
self._SetupPmuFwlElf()
def testXilinxBootgenMissing(self):
"""Test that binman still produces an image if bootgen is missing"""
- data = tools.read_file(self.TestFile("key.key"))
+ data = tools.read_file(self.TestFile("security/key.key"))
self._MakeInputFile("psk.pem", data)
self._MakeInputFile("ssk.pem", data)
self._SetupPmuFwlElf()
def testSignedCapsuleGen(self):
"""Test generation of EFI capsule"""
- data = tools.read_file(self.TestFile("key.key"))
+ data = tools.read_file(self.TestFile("security/key.key"))
self._MakeInputFile("key.key", data)
- data = tools.read_file(self.TestFile("key.pem"))
+ data = tools.read_file(self.TestFile("security/key.pem"))
self._MakeInputFile("key.crt", data)
data = self._DoReadFile('capsule/signed.dts')
def testCapsuleGenSignedVer(self):
"""Test generation of signed EFI capsule with version information"""
- data = tools.read_file(self.TestFile("key.key"))
+ data = tools.read_file(self.TestFile("security/key.key"))
self._MakeInputFile("key.key", data)
- data = tools.read_file(self.TestFile("key.pem"))
+ data = tools.read_file(self.TestFile("security/key.pem"))
self._MakeInputFile("key.crt", data)
data = self._DoReadFile('capsule/signed_ver.dts')