parameters: (factory, **kwargs)
return_statement: return SivMode(factory, key, nonce, kwargs)
docstring: Create a new block cipher, configured in
      Synthetic Initializaton Vector (SIV) mode.
  
      :Parameters:
  
        factory : object
          A symmetric cipher module from `Crypto.Cipher`
          (like `Crypto.Cipher.AES`).
  
      :Keywords:
  
        key : bytes/bytearray/memoryview
          The secret key to use in the symmetric cipher.
          It must be 32, 48 or 64 bytes long.
          If AES is the chosen cipher, the variants *AES-128*,
          *AES-192* and or *AES-256* will be used internally.
  
        nonce : bytes/bytearray/memoryview
          For deterministic encryption, it is not present.
  
          Otherwise, it is a value that must never be reused
          for encrypting message under this key.
  
          There are no restrictions on its length,
          but it is recommended to use at least 16 bytes.
docstring_summary: Create a new block cipher, configured in
      Synthetic Initializaton Vector (SIV) mode.
docstring_tokens: Create a new block cipher configured in Synthetic Initializaton Vector ( SIV ) mode .
function: def _create_siv_cipher(factory, **kwargs):
      """Create a new block cipher, configured in
      Synthetic Initializaton Vector (SIV) mode.
  
      :Parameters:
  
        factory : object
          A symmetric cipher module from `Crypto.Cipher`
          (like `Crypto.Cipher.AES`).
  
      :Keywords:
  
        key : bytes/bytearray/memoryview
          The secret key to use in the symmetric cipher.
          It must be 32, 48 or 64 bytes long.
          If AES is the chosen cipher, the variants *AES-128*,
          *AES-192* and or *AES-256* will be used internally.
  
        nonce : bytes/bytearray/memoryview
          For deterministic encryption, it is not present.
  
          Otherwise, it is a value that must never be reused
          for encrypting message under this key.
  
          There are no restrictions on its length,
          but it is recommended to use at least 16 bytes.
      """
  
      try:
          key = kwargs.pop("key")
      except KeyError as e:
          raise TypeError("Missing parameter: " + str(e))
  
      nonce = kwargs.pop("nonce", None)
  
      return SivMode(factory, key, nonce, kwargs)
function_tokens: def _create_siv_cipher ( factory , * * kwargs ) : try : key = kwargs . pop ( "key" ) except KeyError as e : raise TypeError ( "Missing parameter: " + str ( e ) ) nonce = kwargs . pop ( "nonce" , None ) return SivMode ( factory , key , nonce , kwargs )