This invention discloses a GCM optimization method and
system based on
block cipher algorithms and bit
slicing, belonging to the field of cryptographic
algorithm technology. The input sequence is converted from standard block form to bit slice form using a data form conversion
algorithm. The bit slice form data is used as input to the
block cipher algorithm, and after multiple rounds of iterative computation, the output sequence, still in bit slice form, is obtained. The proposed friendly variant omits the data form conversion (i.e., backward conversion) at the output of the parallel
block cipher algorithm, directly XORing the
plaintext blocks in
standard form with the bit slice form output sequence to obtain the
ciphertext output. While ensuring security, the optimized GCM yields a friendly variant GCM mode based on bit slice implementation. + This reduces the overhead of
data format conversion throughout the
authentication and
encryption process.