sancus-tee / sancus-core

Minimal OpenMSP430 hardware extensions for isolation and attestation
BSD 3-Clause "New" or "Revised" License
20 stars 13 forks source link

Crypto instructions assume pointers are 2-byte aligned #1

Open jovanbulck opened 7 years ago

jovanbulck commented 7 years ago

From @JobNoorman

This causes the output (cipher and tag) to be shifted by one byte if they are not aligned. This should either be fixed or just fail right away.

The length of the input should also be a multiple of two. If not, one byte is silently appended.