Escolar Documentos
Profissional Documentos
Cultura Documentos
N/2
A Xi
BLOQUE B
Xi
B Xi
A Xi
ki
FUNCIN f
ki
FUNCIN f
Xi
N/2
B Xi
Puesto que Y Xi Xi = Y
==
==
==
MM ==
STAR
STAR
TUBS
TUBS
BUST
BUST
STAR WARS,
WARS, LA
LA MISIN
MISIN CONTINA
CONTINA
STAR
WARS LAMI
LAMI SION
SION CONT
CONT INUA
INUA
WARS
WARS MBNJ
MBNJ SION
SION DPU
DPU INUA
INUA
WARS
WARS NBJM
NBJM SION
SION PUD
PUD INUA
INUA
WARS
MM22
SS22
PP22
==
==
==
WARS BUST
BUST SION
SION NBJM
NBJM INUA
INUA PUD
PUD
WARS
XBST BUST
BUST TJP
TJP NBJM
NBJM JVB
JVB PUD
PUD
XBST
SBTX BUST
BUST PJT
PJT NBJM
NBJM VBJ
VBJ PUD
PUD
SBTX
Si: +1 mod 27
Pi: 3241
Primera
vuelta
Segunda
vuelta
Bloque (bits)
Clave (bits)
Vueltas
Lucifer
DES
Loki
RC2
CAST
Blowfish
IDEA
128
64
64
64
64
64
64
128
56
64
variable
64
variable
128
16
16
16
-8
16
8
Skipjack
RIJNDAEL
64
128
80
128 o ms
32
flexible
Bloque (bits)
Clave (bits)
Khufu
Khafre
Gost
RC5
SAFER 64
Akelarre
FEAL
64
64
64
variable
64
variable
64
512
128
256
variable
64
variable
64
Vueltas
16, 24, 32
ms vueltas
32
variable
8
variable
32
Kbytes/seg
Algoritmo
Kbytes/seg
DES
35
Triple DES
12
IDEA
53
FEAL (32 v)
91
Khufu (16 v)
221
Khufu (32 v)
115
RC5 (8 v)
127
RC5 (16 v)
65
81
SAFER (12 v)
41
182
Blowfish (20 v)
SAFER (6 v)
Blowfish (12 v)
110
Aunque la velocidad es
muy baja, los valores
pueden extrapolarse.
10
Standards llama a
11
12
13
14
15
16
50
42
34
26
18
10
60
52
44
36
28
20
12
62
54
46
38
30
22
14
64
56
48
40
32
24
16
57
49
41
33
25
17
59
51
43
35
27
19
11
61
53
45
37
29
21
13
63
55
47
39
31
23
15
Elbit
bit11se
selleva
llevaaalalaposicin
posicin40
40
El
17
50
42
34
26
18
10
60
52
44
36
28
20
12
62
54
46
38
30
22
14
64
56
48
40
32
24
16
57
49
41
33
25
17
59
51
43
35
27
19
11
61
53
45
37
29
21
13
63
55
47
39
31
23
15
L0 = 58 50 42 34 26 18 10 02 60 52 44 36
28 20 12 04 62 54 46 38 30 22 14 06
64 56 48 40 32 24 16 08
R0 = 57 49 41 33 25 17 09 01 59 51 43 35
27 19 11 03 61 53 45 37 29 21 13 05
63 55 47 39 31 23 15 07
18
48
16
56
24
64
32
39
47
15
55
23
63
31
38
46
14
54
22
62
30
37
45
13
53
21
61
29
36
44
12
52
20
60
28
35
43
11
51
19
59
27
34
42
10
50
18
58
26
33
41
49
17
57
25
Elbit
bit40
40vuelve
vuelveaalalaposicin
posicin11
El
todoslos
losdems
demsbits
bitsaasu
su
yytodos
posicininicial
inicialantes
antesde
deIP.
IP.
posicin
19
En la prxima
vuelta, la mitad
derecha anterior
pasa ntegra como
mitad izquierda. La
mitad derecha de la
nueva vuelta ser el
ltimo resultado or
exclusivo del ciclo.
20
Esquema de la
funcin de cifra
f en cada ciclo
Columnas 1 y
2 repetidas
Enlas
lascajas
cajasSS
En
selogra
logralala
se
fortalezadel
del
fortaleza
algoritmo.Es
Es
algoritmo.
unafuncin
funcin
una
unidireccional
unidireccional
nolineal.
lineal.
yyno
21
S1
S2
12
13
18
S3
19
12 13
24
S4
25
16 17
30
S5
31
20 21
36
S6
37
24 25
42 43
S7
28 29
48
S8
32
22
S1
14
7
0
8
4
13
15
11
10
14
13
10
14
13
11
1
2
3
15
13
15
1
12
10
15 12
5
11
11 12 13 14
12
12 11
10
14
10
15
C O LU M N AS
F
I
L
A
S
S2
15
14
11
13
15
14
11 10
13
10
15
10 11 12 13 14 1 5
7
13
12
5 10
14 12
10
11
13
12
15
11
12
5 14
23
S3
10
9 14
15
10
14
12
15
11
12
10 14
10 13
15 14
11
1
2
3
13
1
13
7
1
10
13 12
11 12 13 14
7 11
15
8
11 15
12
C O LU M N AS
F
I
L
A
S
S4
7
15
13
9
10
13 14
10
11
15
12
10 14
12 11
13 15
14
3
14
15
10
13
11
12
1
2
3
10 11 12 13 14 1 5
11
12
24
S5
10
11 12 13 14
12
10
11
15
13
14
11
12
13
0 15
10
14
6
4
11
10 13
15
9 12
14
11
12
14
13
10
6 15
15
9
C O LU M N AS
F
I
L
A
S
S6
12
10 15
13
10
15
12
14 15
12
12
15
10
10 11 12 13 14 1 5
3
14
11
13 14
11
10
13
11
11 14
13
25
S7
10
11
14
15
13
12
10
1
13
11
10 14
12
15
11 13
12
14 10 15
11 13
10
15 14
12
11 12 13 14
15
C O LU M N AS
F
I
L
A
S
S8
13
15 11
10
14
12
15 13
10
12
11
14
11
12 14
10 13
15
14
10
6 11
1
7
10 11 12 13 14 1 5
13 15 12
26
Seanlos
losbits
bits77alal12
12los
lossiguientes:
siguientes:101100
101100
Sean
Losbits
bitscorrespondern
correspondernentonces
entoncesaalalaentrada
entradade
delalacaja
cajaSS2
Los
2
Paraseleccionar
seleccionarlalafila
filatomamos
tomamoslos
losbits
bitsextremos:
extremos:10
102==2210==22
Para
2
10
Paraseleccionar
seleccionarlalacolumna
columnatomamos
tomamoslos
losbits
bitscentrales:
centrales:0110
01102==6610==66
Para
2
10
La
caja
S
indica
una
salida
igual
a
13
=
1101
La caja S22indica una salida igual a 131010= 110122
explicacin
Entrada: 101100
Salida: 1101
Curso de Seguridad Informtica.
Jorge Rami Aguirre
27
28 bits
57
49
41
33
25
17
58
50
42
34
26
18
10
59
51
43
35
27
19
11
60
52
44
36
63
55
47
39
31
23
15
62
54
46
38
30
22
14
61
53
45
37
29
21
13
28
20
12
28
28 bits
48 bits
48 bits
48 bits
17
11
24
28
15
21
10
23
19
12
26
16
27
20
13
41
52
31
37
47
55
30
40
51
45
33
48
44
49
39
56
34
53
46
42
50
36
29
32
29
28 bits
Vuelta i
10
11
12
13
14
15
16
30
31
32
33
34
Vector IV = I0
35
Descifrado
Se descifra el primer bloque con
vector IV:
P1 = D(C1) I0
P1 = D[E(P1 I0)] I0
Guarda bloque Ci-1. en un
registro. Descifra el bloque Ci y
se hace el XOR entre los datos:
Mi = D(Ci) Ci-1
CARACTERSTICAS:
Evita el ataque por repeticin de bloque; enmascara el mensaje lo
mismo que la cifra en flujo; el espacio de claves es igual a 64 bits;
la propagacin de un error afecta a dos bloques contiguos.
36
Se pueden cifrar
unidades de datos ms
pequeas que bloques,
por lo general un byte.
CIFRAR
Se usa un registro de
desplazamiento RD de
64 bits como vector
inicial IV.
Curso de Seguridad Informtica.
Jorge Rami Aguirre
37
Descifrado
CARACTERSTICAS:
Evita el ataque por repeticin de bloque; enmascara el mensaje como
en cifra en flujo, el espacio de claves es igual a 64 bits; la propagacin
de un error se limita a un bloque.
38
Output Feedback
K
Bits menos
significativos
Byte
Mensaje
Bi
DES
Ci-1
Ci
39
40
41
42
DES
k2
C
DES
k1 y k2 son
claves n bits
43
DES
k1 y k2 son
claves n bits
k2
Y
DES
44
E (DES)
k2
D (DES)
k1
E (DES)
k1 y k2 son
claves n bits
45
Usos de T-DES
k1
M
E (DES)
k2
D (DES)
k1 y k2
claves de
64 bits
k1
E (DES)
46
47
48
Es primo y se
asegura el inverso
multiplicativo
49
Y
00
00
00
00
01
01
01
01
10
10
10
10
11
11
11
11
0
1
2
3
0
1
2
3
0
1
2
3
0
1
2
3
X+Y
00
01
10
11
00
01
10
11
00
01
10
11
00
01
10
11
0
1
2
3
1
2
3
0
2
3
0
1
3
0
1
2
00
01
10
11
01
10
11
00
10
11
00
01
11
00
01
10
X Y
1
01
0
00
3
11
2
10
0
00
1
01
2
10
3
11
3
11
2
10
0
00
1
01
2
10
3
11
1
01
0
00
XY
0
00
1
01
2
10
3
11
1
01
0
00
3
11
2
10
2
10
3
11
0
00
1
01
3
11
2
10
1
01
0
00
n=2
dos bits
Veamos cmo
se opera con la
multiplicacin.
La suma y el or
exclusivo son
operaciones
similares.
Operaciones: + mod 2n (mod 4), mod 2n+1 (mod 5), XOR (mod 2)
50
0
00
0
00
0
00
1
01
0
00
2
10
0
00
3
11
1
01
0
00
1
01 2 1
01
01
=
2
2x 1 = 4
1 01 01
= 2 x 21 = 4 10
1
01
3 5 11
==44mod
mod
5 00
2
10
0
=10
2
01
=44==010
2(por definicin)
10
2
10
definicin)
2 (por 10
3
11
3
11
0
00
3
11
1
01
3
11
2
10
3
11
3
11
X Y
0
00
1
01
1
01
0
00
2
10
3
11
3
11
2
10
1
01
0
00
2
10
1
01
3
11
2
10
0
00
3
11
2
10
3
11
3
11
2
10
0
02
=00
22 x 201==88 00
102 =
0122 x 2
01
3
2 5 10
==1188mod
mod
5 11
0
00
3
==0133 1
1
01
2
10
0
00
X+Y
XY
0
00
1
01
2
10
3
11
1
01
0
00
3
11
2
10
2
10
3
11
0
00
1
01
3
11
2
10
1
01
0
00
Recuerdeque
que00
Recuerde
igualaa22n n==44
esesigual
porloloque:
que:
por
00==222 2xx222 2
00
16mod
mod 55
==16
==11
03==222 2xx33==12
12
03
12mod
mod 55
==12
==22
Operaciones: + mod 2n (mod 4), mod 2n+1 (mod 5), XOR (mod 2)
Los dems clculos con los diferentes valores de X e Y son todos similares
51
MA
Operaciones inversas
al comienzo y al final
del algoritmo. Esto
permite usar el mismo
algoritmo para cifrar
que para descifrar.
Bloque principal
52
53
Se produce un desplazamiento de 25
bits a la izquierda en cada una de las
7 fases de generacin de claves.
26
Con los
primeros
128 bits se
generan 8
subclaves
de 16 bits
cada una.
Los 64
ltimos
bits de
la fase 7
no se
usan.
23
86
54
001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016
026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041
051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066
076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
126 127 128 001 002 003 004 005 006 007 008 009 010 011 012 103
023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038
.
.
.
.
.
.
.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025
035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050
060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075
085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022
55
k1k2k3k4k5k6
k7k8k9k10k11k12
k13k14k15k16k17k18
k19k20k21k22k23k24
k25k26k27k28k29k30
k31k32k33k34k35k36
k37k38k39k40k41k42
k43k44k45k46k47k48
k49k50k51k52
B[196]
B[97128; 2689]
B[90128; 125; 5182]
B[83128; 150]
B[76128; 143]
B[4475; 101128; 136]
B[37100; 126128; 129]
B[30125]
B[2386]
Las primeras claves de cada vuelta k1, k7, k13, k19, k25, k31, k37 y
k43 usan un conjunto diferente de bits. Excepto en las vueltas
primera y octava, los 96 bits de subclave usados en cada vuelta,
no son contiguos. Debido al desplazamiento en cada fase de 25
bits a la izquierda, hace muy difcil el ataque a la clave.
56
57
d2 = -k50
d8 = -k45
d14 = -k39
d20 = -k33
d26 = -k27
d32 = -k21
d38 = -k15
d44 = -k9
d50 = -k2
d3 = -k51
d9 = -k44
d15 = -k38
d21 = -k32
d27 = -k26
d33 = -k20
d39 = -k14
d45 = -k8
d51 = -k3
Inversos de la suma
d4 = k52-1
d10 = k46-1
d16 = k40-1
d22 = k34-1
d28 = k28-1
d34 = k22-1
d40 = k16-1
d46 = k10-1
d52 = k4-1
d5 = k47
d11 = k41
d17 = k35
d23 = k29
d29 = k23
d35 = k17
d41 = k11
d47 = k5
d6 = k48
d12 = k42
d18 = k36
d24 = k30
d30 = k24
d36 = k18
d42 = k12
d48 = k6
58
59
d1 = k49-1
d7 = k43-1
d13 = k37-1
d19 = k31-1
d25 = k25-1
d31 = k19-1
d37 = k13-1
d43 = k7-1
d49 = k1-1
d2 = -k50
d8 = -k45
d14 = -k39
d20 = -k33
d26 = -k27
d32 = -k21
d38 = -k15
d44 = -k9
d50 = -k2
d3 = -k51
d9 = -k44
d15 = -k38
d21 = -k32
d27 = -k26
d33 = -k20
d39 = -k14
d45 = -k8
d51 = -k3
d4 = k52-1
d10 = k46-1
d16 = k40-1
d22 = k34-1
d28 = k28-1
d34 = k22-1
d40 = k16-1
d46 = k10-1
d52 = k4-1
d5 = k47
d11 = k41
d17 = k35
d23 = k29
d29 = k23
d35 = k17
d41 = k11
d47 = k5
d6 = k48
d12 = k42
d18 = k36
d24 = k30
d30 = k24
d36 = k18
d42 = k12
d48 = k6
60
61
62
63
64
65
66
67
p(x): x8 = x4 + x3 + x + 1
AB = x13 + x11 + x9 + x8 + x6 + x5 + x4 + x3 + 1
x13 = x5x8 = x5(x4 + x3 + x + 1) = x9 + x8 + x6 + x5
x13 = x (x4 + x3 + x + 1) + (x4 + x3 + x + 1) + x6 + x5
x13 = (x5 + x4 + x2 + x) + (x4 + x3 + x + 1) + x6 + x5
x13 = x6 + x3 + x2 + 1
x13 = x6 + x3 + x2 + 1
68
p(x): x8 = x4 + x3 + x + 1
AB = x13 + x11 + x9 + x8 + x6 + x5 + x4 + x3 + 1
x11 = x3x8 = x3(x4 + x3 + x + 1)
x11 = x7 + x6 + x4 + x3
x11 = x7 + x6 + x4 + x3
x9 = xx8 = x(x4 + x3 + x + 1)
x9 = x5 + x4 + x2 + x
x9 = x5 + x4 + x2 + x
x8 = x4 + x3 + x + 1
69
x11 = x7 + x6 + x4 + x3
x9 = x5 + x4 + x2 + x
x8 = x4 + x3 + x + 1
AB = x13 + x11 + x9 + x8 + x6 + x5 + x4 + x3 + 1
Reemplazando los clculo anteriores en la expresin:
AB = (x6 + x3 + x2 + 1) + (x7 + x6 + x4 + x3) + (x5 + x4 + x2 + x) +
+ (x4 + x3 + x + 1) + x6 + x5 + x4 + x3 + 1 mod 2
AB = x7 + x6 + 1 = 1100 0001 = C116
70
71