give me some explanation about the code.
Mostrar comentarios más antiguos
function ab=poly_mult(a,b,mod_pol)
ab=0;
for i_bit=1:8
if bitget(a,i_bit)
b_shift=bitshift(b,i_bit-1);
ab=bitxor(ab,b_shift);
end
end
for i_bit=16:-1:9
if bitget(ab,i_bit)
mod_pol_shift=bitshift(mod_pol,i_bit-9);
ab=bitxor(ab,mod_pol_shift);
end
end
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 4 de Abr. de 2013
0 votos
Usually when I've been seeing bitshift() and similar bit operations, it has to do with watermarking or steganography. Further low level details can be learned by reading the help for those functions, as Jan said, and then trying it with a known number to see what happens to its value as you do the operations. Do you know nothing about this code? Why are you concerned with it then?
Categorías
Más información sobre Electrophysiology en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!