OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:WrappedKey
(Results
1 - 10
of
10
) sorted by null
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
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
...]
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
...]
KeySyncTaskTest.java
254
WrappedKey
.fromSecretKey(mEncryptKey, applicationKey));
270
WrappedKey
.fromSecretKey(mEncryptKey, applicationKey));
[
all
...]
RecoverableKeyStoreManagerTest.java
[
all
...]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
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
...]
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
);
KeySyncTask.java
413
Map<String,
WrappedKey
> wrappedKeys = mRecoverableKeyStoreDb.getAllKeys(
415
return
WrappedKey
.unwrapKeys(decryptKey, wrappedKeys);
/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
...]
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
ProvidesIntoTest.java
104
@
WrappedKey
(number = 1)
108
@
WrappedKey
(number = 2)
148
Map<
WrappedKey
, Number> wrappedMap =
149
injector.getInstance(new Key<Map<
WrappedKey
, Number>>() {});
177
@interface
WrappedKey
{
181
@SuppressWarnings("unused") @
WrappedKey
(number=1) private static Object wrappedKey1Holder;
182
@SuppressWarnings("unused") @
WrappedKey
(number=2) private static Object wrappedKey2Holder;
183
WrappedKey
wrappedKeyFor(int number) throws Exception {
195
return field.getAnnotation(
WrappedKey
.class);
/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
...]
Completed in 333 milliseconds