summaryrefslogtreecommitdiffstats
path: root/tboot/tpm_12.c
diff options
context:
space:
mode:
Diffstat (limited to 'tboot/tpm_12.c')
-rw-r--r--tboot/tpm_12.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tboot/tpm_12.c b/tboot/tpm_12.c
index 6e326d1..3d5da55 100644
--- a/tboot/tpm_12.c
+++ b/tboot/tpm_12.c
@@ -896,7 +896,8 @@ static uint32_t _tpm12_unseal(uint32_t locality, tpm_key_handle_t hkey,
}
#define XOR_BLOB_TYPE(data, pad) {\
- for ( uint32_t i = 0; i < sizeof(*(data)); i++ ) \
+ uint32_t i; \
+ for ( i = 0; i < sizeof(*(data)); i++ ) \
((uint8_t *)data)[i] ^= ((uint8_t *)pad)[i % sizeof(*(pad))];\
}