Class LogicalXorer

  • All Implemented Interfaces:
    Xorer

    public class LogicalXorer
    extends Object
    implements Xorer
    Utils class with a single util method that applies the XOR operation on all binary pixel values of a secret image and a provided one time pad.
    • Constructor Detail

      • LogicalXorer

        public LogicalXorer()
    • Method Detail

      • combine

        public boolean[][] combine​(boolean[][] original,
                                   boolean[][] oneTimePad)
        Creates a new 2D bool array of identical dimensions as provided image and one time pad, which serves as second share. The second share is the XOR combination of original image and first share (one time pad).
        Specified by:
        combine in interface Xorer
        Parameters:
        original - bool 2D array encoding the original image, full depth black and white mode.
        oneTimePad - bool 2D array encoding a one time pad of equal dimensions as original image.
        Returns:
        new 2d bool array representing second visual share.