Skip to content

Commit

Permalink
Changed an exception message to prevent possible disclosures of keyin…
Browse files Browse the repository at this point in the history
…g material.
  • Loading branch information
mike-arnica committed Jun 22, 2022
1 parent 69fe5b7 commit 26e0a47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openssh_key/pascal_style_byte_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def read_fixed_bytes(self, num_bytes: int) -> bytes:
"""
read_bytes = self.read(num_bytes)
if len(read_bytes) < num_bytes:
raise EOFError(read_bytes)
raise EOFError("Fewer than 'num_bytes' bytes remaining in the "
"underlying bytestream")
return read_bytes

def read_pascal_bytes(self, string_length_size: int) -> bytes:
Expand Down

0 comments on commit 26e0a47

Please sign in to comment.