A 64-bit word.

interface Word {
    add(word: cryptojs.x64.Word): cryptojs.x64.Word;
    and(word: cryptojs.x64.Word): cryptojs.x64.Word;
    not(): cryptojs.x64.Word;
    or(word: cryptojs.x64.Word): cryptojs.x64.Word;
    rotL(n: number): cryptojs.x64.Word;
    rotR(n: number): cryptojs.x64.Word;
    shiftL(n: number): cryptojs.x64.Word;
    shiftR(n: number): cryptojs.x64.Word;
    xor(word: cryptojs.x64.Word): cryptojs.x64.Word;
}

Methods

  • Adds this word with the passed word.

    Parameters

    Returns cryptojs.x64.Word

    A new x64-Word object after adding.

    var added = x64Word.add(anotherX64Word);
    
  • Bitwise ANDs this word with the passed word.

    Parameters

    Returns cryptojs.x64.Word

    A new x64-Word object after ANDing.

    var anded = x64Word.and(anotherX64Word);
    
  • Bitwise NOTs this word.

    Returns cryptojs.x64.Word

    A new x64-Word object after negating.

    var negated = x64Word.not();
    
  • Bitwise ORs this word with the passed word.

    Parameters

    Returns cryptojs.x64.Word

    A new x64-Word object after ORing.

    var ored = x64Word.or(anotherX64Word);
    
  • Rotates this word n bits to the left.

    Parameters

    • n: number

      The number of bits to rotate.

    Returns cryptojs.x64.Word

    A new x64-Word object after rotating.

    var rotated = x64Word.rotL(25);
    
  • Rotates this word n bits to the right.

    Parameters

    • n: number

      The number of bits to rotate.

    Returns cryptojs.x64.Word

    A new x64-Word object after rotating.

    var rotated = x64Word.rotR(7);
    
  • Shifts this word n bits to the left.

    Parameters

    • n: number

      The number of bits to shift.

    Returns cryptojs.x64.Word

    A new x64-Word object after shifting.

    var shifted = x64Word.shiftL(25);
    
  • Shifts this word n bits to the right.

    Parameters

    • n: number

      The number of bits to shift.

    Returns cryptojs.x64.Word

    A new x64-Word object after shifting.

    var shifted = x64Word.shiftR(7);
    
  • Bitwise XORs this word with the passed word.

    Parameters

    Returns cryptojs.x64.Word

    A new x64-Word object after XORing.

    var xored = x64Word.xor(anotherX64Word);