| 
														
															@@ -1,8 +1,10 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+# Note: these tests are part of the self test, do not use or import pytest functionality here. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#       See borg.selftest for details. If you add/remove test methods, update SELFTEST_COUNT 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 from binascii import hexlify 
														 | 
														
														 | 
														
															 from binascii import hexlify 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 from unittest.mock import MagicMock 
														 | 
														
														 | 
														
															 from unittest.mock import MagicMock 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import unittest 
														 | 
														
														 | 
														
															 import unittest 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 from ..crypto.low_level import AES256_CTR_HMAC_SHA256, AES256_OCB, CHACHA20_POLY1305, UNENCRYPTED, IntegrityError 
														 | 
														
														 | 
														
															 from ..crypto.low_level import AES256_CTR_HMAC_SHA256, AES256_OCB, CHACHA20_POLY1305, UNENCRYPTED, IntegrityError 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 from ..crypto.low_level import bytes_to_long, bytes_to_int, long_to_bytes 
														 | 
														
														 | 
														
															 from ..crypto.low_level import bytes_to_long, bytes_to_int, long_to_bytes 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 from ..crypto.low_level import hkdf_hmac_sha512 
														 | 
														
														 | 
														
															 from ..crypto.low_level import hkdf_hmac_sha512 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -12,9 +14,6 @@ from ..helpers import msgpack 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 from . import BaseTestCase 
														 | 
														
														 | 
														
															 from . import BaseTestCase 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-# Note: these tests are part of the self test, do not use or import py.test functionality here. 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-#       See borg.selftest for details. If you add/remove test methods, update SELFTEST_COUNT 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 class CryptoTestCase(BaseTestCase): 
														 | 
														
														 | 
														
															 class CryptoTestCase(BaseTestCase): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |