예제 #1
0
 def create_symmetric_decryption_ctx(self, cipher, mode):
     if isinstance(mode, GCM):
         return _GCMCipherContext(
             self, cipher, mode, self._lib.kCCDecrypt
         )
     else:
         return _CipherContext(self, cipher, mode, self._lib.kCCDecrypt)
예제 #2
0
 def create_symmetric_decryption_ctx(self, cipher, mode):
     if isinstance(mode, GCM):
         return _GCMCipherContext(
             self, cipher, mode, self._lib.kCCDecrypt
         )
     else:
         return _CipherContext(self, cipher, mode, self._lib.kCCDecrypt)