Home
last modified time | relevance | path

Searched refs:associated_data (Results 1 – 11 of 11) sorted by relevance

/external/python/cryptography/src/cryptography/hazmat/primitives/ciphers/
Daead.py34 def encrypt(self, nonce, data, associated_data): argument
35 if associated_data is None:
36 associated_data = b""
38 if len(data) > self._MAX_SIZE or len(associated_data) > self._MAX_SIZE:
44 self._check_params(nonce, data, associated_data)
46 backend, self, nonce, data, associated_data, 16
49 def decrypt(self, nonce, data, associated_data): argument
50 if associated_data is None:
51 associated_data = b""
53 self._check_params(nonce, data, associated_data)
[all …]
/external/python/cryptography/docs/hazmat/primitives/
Daead.rst46 .. method:: encrypt(nonce, data, associated_data)
54 ``associated_data``. The output of this can be passed directly
60 :param bytes associated_data: Additional data that should be
64 :raises OverflowError: If ``data`` or ``associated_data`` is larger
67 .. method:: decrypt(nonce, data, associated_data)
69 Decrypts the ``data`` and authenticates the ``associated_data``. If you
70 called encrypt with ``associated_data`` you must pass the same
71 ``associated_data`` in decrypt or the integrity check will fail.
77 :param bytes associated_data: Additional data to authenticate. Can be
118 .. method:: encrypt(nonce, data, associated_data)
[all …]
Dsymmetric-encryption.rst436 def encrypt(key, plaintext, associated_data):
448 # associated_data will be authenticated but not encrypted,
450 encryptor.authenticate_additional_data(associated_data)
458 def decrypt(key, associated_data, iv, ciphertext, tag):
467 # We put associated_data back in or the tag will fail to verify
469 decryptor.authenticate_additional_data(associated_data)
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Daead.py83 def _process_aad(backend, ctx, associated_data): argument
86 ctx, backend._ffi.NULL, outlen, associated_data, len(associated_data)
99 def _encrypt(backend, cipher, nonce, data, associated_data, tag_length): argument
110 _process_aad(backend, ctx, associated_data)
126 def _decrypt(backend, cipher, nonce, data, associated_data, tag_length): argument
141 _process_aad(backend, ctx, associated_data)
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_video_buffer.c142 void *associated_data, in vl_video_buffer_set_associated_data() argument
147 if (vbuf->associated_data == associated_data) in vl_video_buffer_set_associated_data()
150 if (vbuf->associated_data) in vl_video_buffer_set_associated_data()
151 vbuf->destroy_associated_data(vbuf->associated_data); in vl_video_buffer_set_associated_data()
153 vbuf->associated_data = associated_data; in vl_video_buffer_set_associated_data()
162 return vbuf->associated_data; in vl_video_buffer_get_associated_data()
Dvl_stubs.c69 void *associated_data, in vl_video_buffer_set_associated_data() argument
Dvl_video_buffer.h104 void *associated_data,
/external/python/cryptography/tests/hazmat/primitives/
Dtest_aead.py84 def test_params_not_bytes_encrypt(self, nonce, data, associated_data, argument
89 chacha.encrypt(nonce, data, associated_data)
92 chacha.decrypt(nonce, data, associated_data)
298 def test_params_not_bytes(self, nonce, data, associated_data, backend): argument
302 aesccm.encrypt(nonce, data, associated_data)
407 def test_params_not_bytes(self, nonce, data, associated_data, backend): argument
411 aesgcm.encrypt(nonce, data, associated_data)
414 aesgcm.decrypt(nonce, data, associated_data)
/external/mesa3d/src/gallium/include/pipe/
Dp_video_codec.h153 void *associated_data; member
163 void (*destroy_associated_data)(void *associated_data);
/external/openscreen/cast/common/channel/
Dvirtual_connection_router.cc26 VirtualConnection::AssociatedData associated_data) { in AddConnection() argument
37 std::move(associated_data)}); in AddConnection()
Dvirtual_connection_router.h62 VirtualConnection::AssociatedData associated_data);