Home
last modified time | relevance | path

Searched refs:BITS_PER_BYTE (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DRecoverableKeyStoreSecondaryKeyManager.java44 private static final int BITS_PER_BYTE = 8; field in RecoverableKeyStoreSecondaryKeyManager
110 byte[] id = new byte[BACKUP_KEY_SUFFIX_LENGTH_BITS / BITS_PER_BYTE]; in generateId()
DKeyWrapUtils.java36 private static final int BITS_PER_BYTE = 8; field in KeyWrapUtils
37 private static final int GCM_TAG_LENGTH_BITS = GCM_TAG_LENGTH_BYTES * BITS_PER_BYTE;
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DBackupFileDecryptorTask.java75 private static final int BITS_PER_BYTE = 8; field in BackupFileDecryptorTask
77 private static final int BYTES_PER_LONG = 64 / BITS_PER_BYTE;
232 GCM_TAG_LENGTH_BYTES * BITS_PER_BYTE, in decryptChunk()
291 GCM_TAG_LENGTH_BYTES * BITS_PER_BYTE, in decryptChunkOrdering()
DEncryptedBackupTask.java64 private static final int BITS_PER_BYTE = 8; field in EncryptedBackupTask
219 new GCMParameterSpec(GCM_TAG_LENGTH_BYTES * BITS_PER_BYTE, nonce)); in encryptChunkOrdering()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
DRecoverableKeyStoreSecondaryKeyManagerTest.java49 private static final int BITS_PER_BYTE = 8; field in RecoverableKeyStoreSecondaryKeyManagerTest
50 private static final int BACKUP_KEY_SUFFIX_LENGTH_BYTES = 128 / BITS_PER_BYTE;
DKeyWrapUtilsTest.java40 private static final int BITS_PER_BYTE = 8; field in KeyWrapUtilsTest
78 assertThat(wrappedKey.key).hasLength(KEY_SIZE_BITS / BITS_PER_BYTE + GCM_TAG_LENGTH_BYTES); in wrap_addsTagOfAppropriateLength()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java55 private static final int BITS_PER_BYTE = 8; field in WrappedKeyTest
56 private static final int GCM_TAG_LENGTH_BITS = GCM_TAG_LENGTH_BYTES * BITS_PER_BYTE;
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DBackupStreamEncrypterTest.java48 private static final int BITS_PER_BYTE = 8; field in BackupStreamEncrypterTest
58 private static final int MESSAGE_DIGEST_SIZE_IN_BYTES = 256 / BITS_PER_BYTE;
DBackupFileDecryptorTaskTest.java97 private static final int BITS_PER_BYTE = 8; field in BackupFileDecryptorTaskTest
98 private static final int CHECKSUM_LENGTH_BYTES = 256 / BITS_PER_BYTE;
554 new GCMParameterSpec(GCM_TAG_LENGTH_BYTES * BITS_PER_BYTE, nonce)); in encrypt()
DEncryptedBackupTaskTest.java83 private static final int BITS_PER_BYTE = 8; field in EncryptedBackupTaskTest
360 GCM_TAG_LENGTH_BYTES * BITS_PER_BYTE, in decryptChunkOrdering()