You are given a stream cipher and a block cipher with a block size of 64 bits. The data input is 32 bits. How many bits do you need to pad before processing the data input using a block cipher?
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "32". Mã khối (block cipher) chỉ mã hoá được trọn từng khối có kích thước cố định, ở đây 64 bit; dữ liệu 32 bit chưa đủ một khối nên phải đệm (padding) thêm 64 − 32 = 32 bit, ví dụ theo PKCS#7 hay đệm bit 1 rồi các bit 0, để có đúng một khối 64 bit rồi mới đưa vào hàm mã hoá. "0" là đáp án cho mã dòng, vốn XOR từng bit với dòng khoá dài bằng dữ liệu nên không cần đệm, không phải trường hợp mã khối. "16" không ứng với phép tính nào, chỉ đưa dữ liệu lên 48 bit, vẫn thiếu một khối. "64" đệm thêm trọn một khối, khiến tổng thành 96 bit, không phải bội của 64.
Cùng phần 3
Which of the following describes the 2nd block encryption output of CBC mode (C2). The followings are given: E (an encryption cipher function), K (the key). C1 (the cipher output from the 1st block encryption), P2 (the plaintext for the 2nd block), and XOR (and exclusive-or function). For example, XOR(x,y) indicate the bit-by-bit XOR between the two bit vectors x and y, and E(K,P2) is the encryption output when using the key K and the plaintext P2Có lời giảiCâu hỏi_____ can apply to any block encryptions ciphers which are sequentially processed and does not depend on any particular property of the algorithms.Có lời giảiCâu hỏiAES is not based on Feistel cipher.Có lời giảiCâu hỏiCả 36 câu của chủ đề36 câu
Xuất hiện trong 1 bộ đề
Đi tiếp từ đây