/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
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())) [all...] |
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 [all...] |
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
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);
|
WrappedKey.java | 41 public class WrappedKey { 42 private static final String TAG = "WrappedKey"; 61 public static WrappedKey fromSecretKey(PlatformEncryptionKey wrappingKey, SecretKey key) 96 return new WrappedKey( 113 public WrappedKey(byte[] nonce, byte[] keyMaterial, int platformKeyGenerationId) { 130 public WrappedKey(byte[] nonce, byte[] keyMaterial, int platformKeyGenerationId, 186 Map<String, WrappedKey> wrappedKeys) 194 WrappedKey wrappedKey = wrappedKeys.get(alias); 195 if (wrappedKey.getPlatformKeyGenerationId() != platformKeyGenerationId) [all...] |
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/ |
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);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
BaseCipherSpi.java | 136 byte[] wrappedKey, 146 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); 150 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseWrapCipher.java | 323 byte[] wrappedKey, 333 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); 337 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
RecoverableKeyStoreDbTest.java | 37 import com.android.server.locksettings.recoverablekeystore.WrappedKey; 82 WrappedKey oldWrappedKey = new WrappedKey( 90 WrappedKey newWrappedKey = new WrappedKey( 96 WrappedKey retrievedKey = mRecoverableKeyStoreDb.getKey(uid, alias); 106 WrappedKey key1 = new WrappedKey( 110 WrappedKey key2 = new WrappedKey( [all...] |
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
DrmPlugin.h | 101 Vector<uint8_t>& wrappedKey) { 103 UNUSED(wrappedKey); 251 const Vector<uint8_t>& wrappedKey, 254 message.size() == 0 || wrappedKey.size() == 0) {
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
MockDrmCryptoPlugin.h | 88 Vector<uint8_t> &wrappedKey); 136 Vector<uint8_t> const &wrappedKey,
|
/frameworks/av/media/libmedia/include/media/ |
Drm.h | 78 Vector<uint8_t> &wrappedKey); 125 Vector<uint8_t> const &wrappedKey,
|
DrmHal.h | 99 Vector<uint8_t> &wrappedKey); 156 Vector<uint8_t> const &wrappedKey,
|
IDrm.h | 76 Vector<uint8_t> &wrappedKey) = 0; 136 Vector<uint8_t> const &wrappedKey,
|
/hardware/interfaces/drm/1.0/default/ |
DrmPlugin.cpp | 166 Vector<uint8_t> wrappedKey; 169 toVector(response), certificate, wrappedKey); 172 toHidlVec(wrappedKey)); 313 const hidl_vec<uint8_t>& wrappedKey, signRSA_cb _hidl_cb) { 317 String8(algorithm.c_str()), toVector(message), toVector(wrappedKey),
|
/frameworks/av/drm/libmediadrm/ |
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; 869 status_t result = provideProvisionResponse(response, certificate, wrappedKey); 871 writeVector(reply, wrappedKey); [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
AndroidKeyStoreCipherSpiBase.java | 663 protected final Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, 674 if (wrappedKey == null) { 675 throw new NullPointerException("wrappedKey == null"); 680 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); [all...] |
/hardware/interfaces/drm/1.0/ |
IDrmPlugin.hal | 211 * @return wrappedKey an opaque object containing encrypted private key 216 vec<uint8_t> certificate, vec<uint8_t> wrappedKey); 481 * @param wrappedKey the private key returned during provisioning as 491 vec<uint8_t> wrappedkey)
|
/system/security/keystore/binder/android/security/ |
IKeystoreService.aidl | 80 int importWrappedKey(in String wrappedKeyAlias, in byte[] wrappedKey,
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
RecoverableKeyStoreDb.java | 30 import com.android.server.locksettings.recoverablekeystore.WrappedKey; 91 * @param wrappedKey The wrapped key. 96 public long insertKey(int userId, int uid, String alias, WrappedKey wrappedKey) { 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()); 115 @Nullable public WrappedKey getKey(int uid, String alias) { 145 "%d WrappedKey entries found for uid=%d alias='%s'. [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
OpenSSLCipherRSA.java | 356 protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, 359 byte[] encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length);
|
/frameworks/base/media/java/android/media/ |
MediaDrm.java | [all...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
ImportWrappedKeyTest.java | 224 public void importWrappedKey(byte[] wrappedKey) throws Exception { 232 Entry wrappedKeyEntry = new WrappedKeyEntry(wrappedKey, WRAPPING_KEY_ALIAS,
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/ |
DrmPlugin.h | 238 const hidl_vec<uint8_t>& wrappedKey, 241 message.size() == 0 || wrappedKey.size() == 0) {
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherSpiTest.java | 134 protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) 136 return super.engineUnwrap(wrappedKey, wrappedKeyAlgorithm, wrappedKeyType);
|
/libcore/ojluni/src/main/java/javax/crypto/ |
CipherSpi.java | [all...] |