Level 3 OEMCrypto library
This CL contains the level 3 oemcrypto library built for android. I used the toolchain from the mnc-emu-release branch because I'm having problems with the toolchain on master. This includes the security patch API, and several bug fixes to the library. Current versions: mips/libwvlevel3.a Level3 Library Dec 17 2015 21:26:57 arm/libwvlevel3.a Level3 Library Dec 17 2015 21:09:47 x86/libwvlevel3.a Level3 Library Dec 17 2015 21:19:15 http://go/wvgerrit/16371 Level 3 OEMCrypto library http://go/wvgerrit/16315 Security Patch Level - haystack version http://go/wvgerrit/16282 Correctly handle null pointer in GetKeyData http://go/wvgerrit/16294 Initialize data for generation number http://go/wvgerrit/16280 Correctly handle bad RSA key bug: 26089773 bug: 26092100 bug: 26086944 Change-Id: I3ea1b5d219dae0c88deafa742f61d67e97297902
This commit is contained in:
@@ -1604,6 +1604,15 @@ TEST_F(OEMCryptoKeyboxTest, NormalGetKeyData) {
|
||||
ASSERT_EQ(OEMCrypto_SUCCESS, sts);
|
||||
}
|
||||
|
||||
// TODO(fredgc): warn people that this will be turned on. It causes a
|
||||
// seg fault on some devices at the moment.
|
||||
TEST_F(OEMCryptoKeyboxTest, DISABLED_GetKeyDataNullPointer) {
|
||||
OEMCryptoResult sts;
|
||||
uint8_t key_data[256];
|
||||
sts = OEMCrypto_GetKeyData(key_data, NULL);
|
||||
ASSERT_NE(OEMCrypto_SUCCESS, sts);
|
||||
}
|
||||
|
||||
TEST_F(OEMCryptoKeyboxTest, ProductionKeyboxValid) {
|
||||
ASSERT_EQ(OEMCrypto_SUCCESS, OEMCrypto_IsKeyboxValid());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user