/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyGeneratorTest.java | 96 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); 97 assertNotNull(wrappedKey); 113 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); 116 new GCMParameterSpec(GCM_TAG_LENGTH_BITS, wrappedKey.getNonce())); 117 byte[] unwrappedMaterial = cipher.doFinal(wrappedKey.getKeyMaterial()); 127 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); 130 new GCMParameterSpec(GCM_TAG_LENGTH_BITS, wrappedKey.getNonce())); 131 byte[] unwrappedMaterial = cipher.doFinal(wrappedKey.getKeyMaterial());
|
H A D | WrappedKeyTest.java | 68 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey); 74 new GCMParameterSpec(GCM_TAG_LENGTH_BITS, wrappedKey.getNonce())); 76 wrappedKey.getKeyMaterial(), KEY_ALGORITHM, Cipher.SECRET_KEY); 86 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey); 88 assertEquals(GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); 96 WrappedKey wrappedKey = WrappedKey.fromSecretKey( 99 keysByAlias.put(alias, wrappedKey); 114 WrappedKey wrappedKey = WrappedKey.fromSecretKey( 117 keysByAlias.put(alias, wrappedKey); 129 WrappedKey wrappedKey [all...] |
H A D | RecoverableKeyStoreManagerTest.java | 1149 WrappedKey wrappedKey = new WrappedKey(NONCE, KEY_MATERIAL, GENERATION_ID, status); 1150 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey);
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyGenerator.java | 100 WrappedKey wrappedKey = WrappedKey.fromSecretKey(platformKey, key); 101 long result = mDatabase.insertKey(userId, uid, alias, wrappedKey); 142 WrappedKey wrappedKey = WrappedKey.fromSecretKey(platformKey, key); 143 long result = mDatabase.insertKey(userId, uid, alias, wrappedKey);
|
H A D | WrappedKey.java | 194 WrappedKey wrappedKey = wrappedKeys.get(alias); 195 if (wrappedKey.getPlatformKeyGenerationId() != platformKeyGenerationId) { 201 wrappedKey.getPlatformKeyGenerationId(), 208 new GCMParameterSpec(GCM_TAG_LENGTH_BITS, wrappedKey.getNonce())); 212 wrappedKey.getKeyMaterial(), APPLICATION_KEY_ALGORITHM, Cipher.SECRET_KEY);
|
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/ |
H A D | MediaDrmSigner.java | 129 * @param wrappedKey - the wrapped (encrypted) RSA private key obtained 134 String algorithm, byte[] wrappedKey, byte[] message) { 135 return drm.signRSA(sessionId, algorithm, wrappedKey, message); 133 signRSA(MediaDrm drm, byte[] sessionId, String algorithm, byte[] wrappedKey, byte[] message) argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
H A D | RecoverableKeyStoreDbTest.java | 159 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, generationId, 120); 160 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); 178 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, generationId); 179 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); 195 WrappedKey wrappedKey = new WrappedKey( 200 userId, uid, /*alias=*/ "test", wrappedKey); 212 WrappedKey wrappedKey = new WrappedKey( 215 /*userId=*/ 1, uid, /*alias=*/ "test", wrappedKey); 256 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, generationId, status); 257 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); [all...] |
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
H A D | DrmPlugin.h | 101 Vector<uint8_t>& wrappedKey) { 103 UNUSED(wrappedKey); 251 const Vector<uint8_t>& wrappedKey, 254 message.size() == 0 || wrappedKey.size() == 0) { 98 provideProvisionResponse( const Vector<uint8_t>& response, Vector<uint8_t>& certificate, Vector<uint8_t>& wrappedKey) argument 247 signRSA( const Vector<uint8_t>& sessionId, const String8& algorithm, const Vector<uint8_t>& message, const Vector<uint8_t>& wrappedKey, Vector<uint8_t>& signature) argument
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
H A D | MockDrmCryptoPlugin.h | 88 Vector<uint8_t> &wrappedKey); 136 Vector<uint8_t> const &wrappedKey,
|
H A D | MockDrmCryptoPlugin.cpp | 303 Vector<uint8_t> & /* wrappedKey */) 707 Vector<uint8_t> const &wrappedKey, 716 vectorToString(wrappedKey).string(), 720 // byte[] wrappedKey -> mock-wrappedkey 726 mByteArrayProperties.add(String8("mock-wrappedkey"), wrappedKey); 704 signRSA(Vector<uint8_t> const &sessionId, String8 const &algorithm, Vector<uint8_t> const &message, Vector<uint8_t> const &wrappedKey, Vector<uint8_t> &signature) argument
|
/frameworks/av/include/mediadrm/ |
H A D | Drm.h | 78 Vector<uint8_t> &wrappedKey); 125 Vector<uint8_t> const &wrappedKey,
|
H A D | IDrm.h | 76 Vector<uint8_t> &wrappedKey) = 0; 136 Vector<uint8_t> const &wrappedKey,
|
H A D | DrmHal.h | 99 Vector<uint8_t> &wrappedKey); 156 Vector<uint8_t> const &wrappedKey,
|
/frameworks/av/media/libmedia/include/media/ |
H A D | Drm.h | 78 Vector<uint8_t> &wrappedKey); 125 Vector<uint8_t> const &wrappedKey,
|
H A D | IDrm.h | 76 Vector<uint8_t> &wrappedKey) = 0; 136 Vector<uint8_t> const &wrappedKey,
|
H A D | DrmHal.h | 99 Vector<uint8_t> &wrappedKey); 156 Vector<uint8_t> const &wrappedKey,
|
/frameworks/av/drm/libmediadrm/ |
H A D | IDrm.cpp | 273 Vector<uint8_t> &wrappedKey) { 284 readVector(reply, wrappedKey); 641 Vector<uint8_t> const &wrappedKey, 649 writeVector(data, wrappedKey); 867 Vector<uint8_t> wrappedKey; local 869 status_t result = provideProvisionResponse(response, certificate, wrappedKey); 871 writeVector(reply, wrappedKey); 1121 Vector<uint8_t> sessionId, message, wrappedKey, signature; local 1125 readVector(data, wrappedKey); 1126 uint32_t result = signRSA(sessionId, algorithm, message, wrappedKey, signatur 271 provideProvisionResponse(Vector<uint8_t> const &response, Vector<uint8_t> &certificate, Vector<uint8_t> &wrappedKey) argument 638 signRSA(Vector<uint8_t> const &sessionId, String8 const &algorithm, Vector<uint8_t> const &message, Vector<uint8_t> const &wrappedKey, Vector<uint8_t> &signature) argument [all...] |
H A D | DrmHal.cpp | 853 Vector<uint8_t> &certificate, Vector<uint8_t> &wrappedKey) { 864 wrappedKey = toVector(hWrappedKey); 1304 Vector<uint8_t> const &wrappedKey, Vector<uint8_t> &signature) { 1317 toHidlString(algorithm), toHidlVec(message), toHidlVec(wrappedKey), 852 provideProvisionResponse(Vector<uint8_t> const &response, Vector<uint8_t> &certificate, Vector<uint8_t> &wrappedKey) argument 1302 signRSA(Vector<uint8_t> const &sessionId, String8 const &algorithm, Vector<uint8_t> const &message, Vector<uint8_t> const &wrappedKey, Vector<uint8_t> &signature) argument
|
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreCipherSpiBase.java | 663 protected final Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, argument 674 if (wrappedKey == null) { 675 throw new NullPointerException("wrappedKey == null"); 680 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length);
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
H A D | RecoverableKeyStoreDb.java | 91 * @param wrappedKey The wrapped key. 96 public long insertKey(int userId, int uid, String alias, WrappedKey wrappedKey) { argument 102 values.put(KeysEntry.COLUMN_NAME_NONCE, wrappedKey.getNonce()); 103 values.put(KeysEntry.COLUMN_NAME_WRAPPED_KEY, wrappedKey.getKeyMaterial()); 105 values.put(KeysEntry.COLUMN_NAME_GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); 106 values.put(KeysEntry.COLUMN_NAME_RECOVERY_STATUS, wrappedKey.getRecoveryStatus());
|
/frameworks/base/media/java/android/media/ |
H A D | MediaDrm.java | 1576 @NonNull String algorithm, @NonNull byte[] wrappedKey, @NonNull byte[] message); 1583 * @param wrappedKey - the wrapped (encrypted) RSA private key obtained 1592 @NonNull byte[] wrappedKey, @NonNull byte[] message) { 1593 return signRSANative(this, sessionId, algorithm, wrappedKey, message); 1574 signRSANative( @onNull MediaDrm drm, @NonNull byte[] sessionId, @NonNull String algorithm, @NonNull byte[] wrappedKey, @NonNull byte[] message) argument 1590 signRSA( @onNull byte[] sessionId, @NonNull String algorithm, @NonNull byte[] wrappedKey, @NonNull byte[] message) argument
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/ |
H A D | DrmPlugin.h | 238 const hidl_vec<uint8_t>& wrappedKey, 241 message.size() == 0 || wrappedKey.size() == 0) { 234 signRSA( const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm, const hidl_vec<uint8_t>& message, const hidl_vec<uint8_t>& wrappedKey, signRSA_cb _hidl_cb) argument
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaDrm.cpp | 1189 Vector<uint8_t> certificate, wrappedKey; local 1191 status_t err = drm->provideProvisionResponse(response, certificate, wrappedKey); 1198 if (clazz && certificate.size() && wrappedKey.size()) { 1203 jbyteArray jwrappedKey = VectorToJByteArray(env, wrappedKey); 1756 Vector<uint8_t> wrappedKey(JByteArrayToVector(env, jwrappedKey)); 1760 status_t err = drm->signRSA(sessionId, algorithm, message, wrappedKey, signature);
|
/frameworks/base/keystore/java/android/security/ |
H A D | KeyStore.java | 516 public int importWrappedKey(String wrappedKeyAlias, byte[] wrappedKey, argument 521 return mBinder.importWrappedKey(wrappedKeyAlias, wrappedKey, wrappingKeyAlias,
|