Described are circuits that detect and correct for decryption key errors.
In one example, a programmable logic device includes a decryption key
memory with a number of decryption-key fields and, for each key field, an
associated error-correction-code (ECC) field. The PLD additionally
includes error-correction circuitry that receives each key and associated
ECC and performs an error correction before conveying the resulting
error-corrected key to a decryptor.