Searched refs:gf_mulx (Results 1 - 2 of 2) sorted by relevance
/macosx-10.5.8/xnu-1228.15.4/bsd/crypto/aes/i386/ |
H A D | aesopt.h | 567 #define gf_mulx(x) ((((x) & m2) << 1) ^ ((((x) & m1) >> 7) * BPOLY))
macro 569 /* The following defines provide alternative definitions of gf_mulx that might
571 that a temporary variable u needs to be defined where gf_mulx is used.
573 #define gf_mulx(x) (u = (x) & m1, u |= (u >> 1), ((x) & m2) << 1) ^ ((u >> 3) | (u >> 6))
575 #define gf_mulx(x) (u = (x) & m1, ((x) & m2) << 1) ^ ((u - (u >> 7)) & m4)
690 #define fwd_mcol(x) (g2 = gf_mulx(x), g2 ^ upr((x) ^ g2, 3) ^ upr((x), 2) ^ upr((x), 1))
699 #define inv_mcol(x) (g2 = gf_mulx(x), g4 = gf_mulx(g2), g9 = (x) ^ gf_mulx(g4), g4 ^= g9, \
|
/macosx-10.5.8/xnu-1228.15.4/bsd/crypto/aes/ppc/ |
H A D | aesopt.h | 607 #define gf_mulx(x) ((((x) & m2) << 1) ^ ((((x) & m1) >> 7) * BPOLY)) macro 609 /* The following defines provide alternative definitions of gf_mulx that might 611 that a temporary variable u needs to be defined where gf_mulx is used. 613 #define gf_mulx(x) (u = (x) & m1, u |= (u >> 1), ((x) & m2) << 1) ^ ((u >> 3) | (u >> 6)) 615 #define gf_mulx(x) (u = (x) & m1, ((x) & m2) << 1) ^ ((u - (u >> 7)) & m4) 728 #define fwd_mcol(x) (g2 = gf_mulx(x), g2 ^ upr((x) ^ g2, 3) ^ upr((x), 2) ^ upr((x), 1)) 737 #define inv_mcol(x) (g2 = gf_mulx(x), g4 = gf_mulx(g2), g9 = (x) ^ gf_mulx(g4), g4 ^= g9, \
|
Completed in 76 milliseconds