×

Instructions to perform JH cryptographic hashing in a 256 bit data path

  • US 9,270,460 B2
  • Filed: 12/22/2011
  • Issued: 02/23/2016
  • Est. Priority Date: 12/22/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method of performing a JH algorithm in a computer processor, comprising:

  • storing JH state bits in a plurality of registers;

    decoding one or more instructions of a first and a second type;

    executing one or more decoded instructions of the first type to perform S-Box mappings and a linear (L) transformation on a JH state, byexecuting an instruction of the first type a first time to perform the S-Box mappings and the L transformation on a first component of the JH state stored in a first source register and store the results in a first destination register as first JH state results,executing an instruction of the first type a second time to perform the S-Box mappings and the L transformation on a second component of the JH state stored in a second source register and store the results in a second destination register as second JH state results,executing an instruction of the first type a third time to perform the S-Box mappings and the L transformation on a third component of the JH state stored in a third source register and store the results in a third destination register as third JH state results, andexecuting an instruction of the first type a fourth time to perform the S-Box mappings and the L transformation on a fourth component of the JH state stored in a fourth source register and store the results in a fourth destination register as fourth JH state results, wherein an execution of an instruction of the first type performs 64 S-box mappings and 32 L transformations on a quarter of the JH state and a format of the instruction of the first type includes a source vector register operand, a destination vector register operand, and an operand to store constraints for S-box selection; and

    executing one or more decoded instructions of the second type to perform a permutation function on the JH state once the S-Box mappings and the L transformation have been performed by one or more instructions of the first type by retrieving JH state results from two of the destination registers andperforming a permutation function on the JH state results from the two destination registers.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×