Function F
| 18 | |
| 19 | //Function F |
| 20 | inline unsigned int blowfish::F(unsigned int ui) |
| 21 | { |
| 22 | return ((m_auiS[0][Byte(ui>>24)] + m_auiS[1][Byte(ui>>16)]) ^ m_auiS[2][Byte(ui>>8)]) + m_auiS[3][Byte(ui)]; |
| 23 | } |
| 24 | |
| 25 | //Initialization with a fixed string which consists of the hexadecimal digits of PI (less the initial 3) |
| 26 | //P-array, 18 32-bit subkeys |