File tree Expand file tree Collapse file tree 2 files changed +322
-397
lines changed Expand file tree Collapse file tree 2 files changed +322
-397
lines changed Original file line number Diff line number Diff line change 77from typing import Optional , TYPE_CHECKING
88from urllib import parse
99
10- # TODO: Remove bandit ignore once we have a new Crypto implementation
11- # Check repo wiki for more details on Security consideration
1210from Crypto .Cipher import PKCS1_v1_5 as PKCS1_v1_5_Cipher # nosec
1311from Crypto .Hash import SHA256 , HMAC , SHA1 # nosec
1412from Crypto .PublicKey import RSA # nosec
2018if TYPE_CHECKING : # pragma: no cover
2119 from ibind import IbkrClient
2220
23-
2421_STRING_ENCODING = 'utf-8'
2522_INT_BASE = 16
2623_KEY_VALUE_SEPARATOR = '='
@@ -229,7 +226,7 @@ def generate_request_timestamp() -> str:
229226 return str (int (time .time ()))
230227
231228
232- def read_private_key (private_key_fp : str ) -> RSA .RsaKey :
229+ def read_private_key (private_key_fp : str ) -> RSA .RsaKey : # pragma: no cover
233230 """
234231 Reads the private key from the file path provided. The key is used to sign the request and decrypt the access token secret.
235232 """
You can’t perform that action at this time.
0 commit comments