(encrypted_hex, apply_padding=False)
| 74 | |
| 75 | def test_decrypt_rsa_short_ciphertext(self): |
| 76 | def decrypt_message(encrypted_hex, apply_padding=False): |
| 77 | data = bytes.fromhex(encrypted_hex) |
| 78 | result = None |
| 79 | try: |
| 80 | plaintext_bytes = crypto.decrypt_rsa(data, rsa_key, apply_padding=apply_padding) |
| 81 | result = plaintext_bytes.decode() |
| 82 | finally: |
| 83 | return result |
| 84 | |
| 85 | key_hex = ('308204a2020100028201007b3101c3c3d9e5c3e221c9bf2b12007f7c18a8b9732dd304760d0900221d0391a1c318410' |
| 86 | '74a52a9f5c73cda7114f042834990d7218d31601d838115b7dd5b6685502652f1453c940f499918781b335395658316' |
nothing calls this directly
no outgoing calls
no test coverage detected