Searched refs:CborUtils (Results 1 – 6 of 6) sorted by relevance
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | CborUtilsTest.java | 30 import com.android.rkpdapp.utils.CborUtils; 97 mDeviceConfig.put(new UnicodeString(CborUtils.EXTRA_KEYS), in setUp() 99 .put(new UnicodeString(CborUtils.TIME_TO_REFRESH), in setUp() 101 .put(new UnicodeString(CborUtils.PROVISIONING_URL), in setUp() 105 mDeviceConfigWithBadCertInfo.put(new UnicodeString(CborUtils.EXTRA_KEYS), in setUp() 107 .put(new UnicodeString(CborUtils.TIME_TO_REFRESH), in setUp() 109 .put(new UnicodeString(CborUtils.PROVISIONING_URL), in setUp() 111 .put(new UnicodeString(CborUtils.LAST_BAD_CERT_TIME_START_MILLIS), in setUp() 113 .put(new UnicodeString(CborUtils.LAST_BAD_CERT_TIME_END_MILLIS), in setUp() 131 new ArrayList<>(CborUtils.parseSignedCertificates(encodedBytes)); in testParseSignedCertificatesFakeData() [all …]
|
D | SystemInterfaceTest.java | 55 import com.android.rkpdapp.utils.CborUtils; 153 SystemInterface systemInterface = mockSystemInterface(CborUtils.EC_CURVE_25519, in testGenerateKey() 194 SystemInterface systemInterface = mockSystemInterface(CborUtils.EC_CURVE_P256, in testGenerateCSRPreV3P256() 205 geekResponse.addGeek(CborUtils.EC_CURVE_P256, eekChain); in testGenerateCSRPreV3P256() 220 SystemInterface systemInterface = mockSystemInterface(CborUtils.EC_CURVE_25519, in testGenerateCSRPreV3Ed25519() 230 geekResponse.addGeek(CborUtils.EC_CURVE_25519, eekChain); in testGenerateCSRPreV3Ed25519() 245 SystemInterface systemInterface = mockSystemInterface(CborUtils.EC_CURVE_25519, in testGenerateCSRv3() 265 SystemInterface systemInterface = mockSystemInterface(CborUtils.EC_CURVE_25519, in testGetVersion() 371 mockedHardwareInfo.supportedEekCurve = CborUtils.EC_CURVE_25519; in mockSystemInterfaceFailure()
|
D | ServerInterfaceTest.java | 34 import com.android.rkpdapp.utils.CborUtils; 145 assertThat(response.getGeekChain(CborUtils.EC_CURVE_25519)).isEqualTo(ed25519GeekChain); in testFetchGeekRkpEnabled() 146 assertThat(response.getGeekChain(CborUtils.EC_CURVE_P256)).isEqualTo(p256GeekChain); in testFetchGeekRkpEnabled()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/ |
D | SystemInterface.java | 32 import com.android.rkpdapp.utils.CborUtils; 87 return CborUtils.extractRkpKeyFromMacedKey(privKey, mServiceName, macedPublicKey); in generateKey() 132 .add(new ByteString(CborUtils.encodeCbor( in generateCsr() 133 CborUtils.makeProtectedHeaders()))) in generateCsr() 135 .add(new ByteString(CborUtils.encodeCbor(macedKeys))) in generateCsr() 137 return CborUtils.buildCertificateRequest(deviceInfo.deviceInfo, in generateCsr() 140 CborUtils.encodeCbor(mac0Message), in generateCsr() 141 CborUtils.buildUnverifiedDeviceInfo()); in generateCsr() 149 Array array = (Array) CborUtils.decodeCbor(csrBytes, "CSR request", in generateCsr() 151 array.add(CborUtils.buildUnverifiedDeviceInfo()); in generateCsr() [all …]
|
D | ServerInterface.java | 34 import com.android.rkpdapp.utils.CborUtils; 182 List<byte[]> certChains = CborUtils.parseSignedCertificates(cborBytes); in requestSignedCertificates() 251 byte[] input = CborUtils.buildProvisioningInfo(mContext); in fetchGeek() 254 GeekResponse resp = CborUtils.parseGeekResponse(cborBytes); in fetchGeek()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/ |
D | CborUtils.java | 49 public class CborUtils { class
|