Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -218,6 +218,12 @@ public KMAndroidSEProvider() {
//Allocate buffer for certificate chain.
if (!isUpgrading()) {
certificateChain = new byte[CERT_CHAIN_MAX_SIZE];
// Initialize attestationKey and preShared key with zeros.
Util.arrayFillNonAtomic(tmpArray, (short) 0, TMP_ARRAY_SIZE, (byte) 0);
// Create attestation key of P-256 curve.
createAttestationKey(tmpArray, (short)0, (short) 32);
// Pre-shared secret key length is 32 bytes.
createPresharedKey(tmpArray, (short)0, (short) KMRepository.SHARED_SECRET_KEY_SIZE);
}
androidSEProvider = this;
}
Expand Down