First-Exam-Solution

# First-Exam-Solution - First Examination CIS 4363 1(i T...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: First Examination CIS 4363 1. (i) T: E3AE3AE3AE3AE3AE (ii) Iteration 1: i=0, j=0, j=j+S[0]+T[0]=E, swap S[0] and S[E] S: E123456789ABCD0F Iteration 2: i=1, j=14, j=j+S[1]+T[1] = 2, swap S[1] and S[2] S: E213456789ABCD0F (iii) Iteration 1: i=0, j=0, i=i+1=1, j=j+S[1]=2, swap S[1] and S[2] S: E123456789ABCD0F T=S[i]+S[j]=3, k=S[t]=3, C=D XOR 3=1110=E Iteration 2: i=1, j=2, i=i+1=2, j=j+S[2]=4, swap S[2] and S[4] S: E143256789ABCD0F T=S[i]+S[j]=6, k=S[6]=6, C=5 XOR 6=0011=3 Iteration 3: i=2, j=4, i=i+1=3, j=j+S[3]=7, swap S[3] and S[7] S: E147256389ABCD0F T=S[i]+S[j]=10, k=S[10]=A, C=A XOR A=0000=0 Cipher Text is: E30 2. (a) = = = × + × × + × × + × × + × = × X T D Z 23 19 3 25 361 487 133 207 3 19 19 4 3 25 19 8 19 7 4 8 25 7 4 19 25 3 19 8 7 (b) 25 XOR 19 = 011001 XOR 010011 = 001010 = 10 19 XOR 0 = 010011 = 19 001101 , 001110 13 14 247 222 19 3 10 19 19 8 10 7 19 10 3 19 8 7 = ⇒ =...
View Full Document

{[ snackBarMessage ]}

### Page1 / 5

First-Exam-Solution - First Examination CIS 4363 1(i T...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online