Searched refs:SecureBox (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DSecureBoxTest.java46 // The following fixtures were produced by the C implementation of SecureBox v2. We use these to
130 SecureBox.decodePublicKey(
164 KeyPair keyPair1 = SecureBox.genKeyPair();
165 KeyPair keyPair2 = SecureBox.genKeyPair();
172 SecureBox.decrypt(
175 SecureBox.concat(getBytes("V1 KF_claim"), VAULT_PARAMS, VAULT_CHALLENGE),
177 assertThat(claimContent).isEqualTo(SecureBox.concat(THM_KF_HASH, KEY_CLAIMANT));
182 SecureBox.decrypt(
185 SecureBox.concat(getBytes("V1 THM_encrypted_recovery_key"), VAULT_PARAMS),
194 state = SecureBox
[all...]
H A DKeySyncUtilsTest.java191 byte[] encryptedPayload = SecureBox.encrypt(
207 byte[] encryptedPayload = SecureBox.encrypt(
224 KeyPair keyPair = SecureBox.genKeyPair();
236 byte[] decrypted = SecureBox.decrypt(
246 KeyPair keyPair = SecureBox.genKeyPair();
258 SecureBox.decrypt(
277 SecureBox.genKeyPair().getPublic(),
284 SecureBox.decrypt(
285 SecureBox.genKeyPair().getPrivate(),
298 KeyPair keyPair = SecureBox
[all...]
H A DKeySyncTaskTest.java809 byte[] locallyEncryptedKey = SecureBox.decrypt(
H A DRecoverableKeyStoreManagerTest.java1186 return SecureBox.encrypt(
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DKeySyncUtils.java74 * @throws NoSuchAlgorithmException if any SecureBox algorithm is unavailable.
89 return SecureBox.encrypt(
119 * @throws NoSuchAlgorithmException if any SecureBox algorithm is unavailable.
125 return SecureBox.encrypt(
144 * Encrypts all of the given keys with the recovery key, using SecureBox.
149 * @throws NoSuchAlgorithmException if any of the SecureBox algorithms are unavailable.
160 byte[] encryptedKey = SecureBox.encrypt(
191 * @throws NoSuchAlgorithmException if any SecureBox algorithm is not present.
202 return SecureBox.encrypt(
216 * @throws NoSuchAlgorithmException if any SecureBox algorith
[all...]
H A DSecureBox.java55 * Implementation of the SecureBox v2 crypto functions.
68 public class SecureBox { class
128 private SecureBox() {} method in class:SecureBox
233 * cannot be validated, or if the payload is not a valid SecureBox V2 payload.
254 throw new AEADBadTagException("The payload was not encrypted by SecureBox v2");
H A DRecoverableKeyStoreManager.java518 Log.wtf(TAG, "SecureBox algorithm missing. AOSP must support this.", e);
828 Log.wtf(TAG, "Missing SecureBox algorithm. AOSP required to support this.", e);
920 byte[] encodedPublicKey = SecureBox.encodePublicKey(publicKey);

Completed in 101 milliseconds