A computer program product comprising computer program code tangibly embodied in a computer readable medium, said computer program code comprising instructions to, when provided to a computer system and executed, cause said computer to perform a method for reconstructing a data block of size N, wherein the data block was encoded using an erasure code to generate a set of Ns systematic symbol vectors and a set of Np parity projection vectors from a mapping of the data block onto a two-dimensional convex support, wherein the systematic symbol vectors correspond to symbols of the data block mapped onto the support, and the parity projection vectors respectively correspond to Np projections of symbols of the data block mapped onto the support using respective encoding projection directions, the data block being reconstructed from a set of Ns input vectors using the set of Np parity projection vectors, the method comprising:
- for each input vector that contains at least an erasure, updating the value of each erased symbol to a predetermined value;
- mapping the Ns input vectors with updated values onto the two-dimensional convex support,
- generating a reconstruction projection vector from the mapping of the Ns input vectors with updated values onto the two-dimensional convex support using an encoding projection direction;
- a generating an updated parity projection vector from the reconstruction projection vector and the parity projection vector generated using said encoding projection direction.