Để khắc phục vấn đề hiệu quả, chúng ta hãy làm cho việc sử dụng một chìa khóa phiên (được thảo luận trong phần 8.2.2). Đặc biệt, Alice (1) chọn ngẫu nhiên một chìa khóa đối xứng phiên, KS, (2) mã hóa thông điệp của mình, m, với khóa đối xứng, (3) mã hóakhóa đối xứng với Bob chìa khóa công cộng, KB, (4) concatenates các mã hóatin nhắn và mã hóa khóa đối xứng để tạo thành một "gói", và (5) gửi cácgói đến địa chỉ e-mail của Bob. Các bước được minh hoạ trong hình 8.19. (Điều này và con số tiếp theo, các vòng "+" đại diện cho nối và các vòng "-" đại diện cho deconcatenation.) Khi Bob nhận được các gói, Anh (1) sử dụng chìa khóa riêng của mình, K-, để có được chìa khóa đối xứng, K, và (2) sử dụng khóa đối xứng KS để giải mã tin nhắn m.Có thiết kế một hệ thống an toàn thư điện tử cung cấp bảo mật, hãydesign another system that provides both sender authentication and message integrity. We’ll suppose, for the moment, that Alice and Bob are no longer concerned with confidentiality (they want to share their feelings with everyone!), and are concerned only about sender authentication and message integrity. To accomplish this task, we use digital signatures and message digests, as described in Section 8.3. Specifically, Alice (1) applies a hash function, H (for example, MD5), to her message, m, to obtain a message digest, (2) signs the result of the hash function with her private key, K –, to create a digital signature, (3) concatenates the original (unencrypted) message with the signature to create a package, and (4) sends the package to Bob’s e-mail address. When Bob receives the package, he (1) applies Alice’s public key, K +, to the signed message digest and (2) compares the result of this operation with his own hash, H, of the message. The steps are illustrated in
đang được dịch, vui lòng đợi..
![](//viimg.ilovetranslation.com/pic/loading_3.gif?v=b9814dd30c1d7c59_8619)