Home
last modified time | relevance | path

Searched defs:associatedData (Results 1 – 25 of 109) sorted by relevance

12345

/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/subtle/
H A DNonceBasedStreamingAead.java36 public abstract StreamSegmentEncrypter newStreamSegmentEncrypter(byte[] associatedData) in newStreamSegmentEncrypter()
54 WritableByteChannel ciphertextChannel, byte[] associatedData) in newEncryptingChannel()
61 ReadableByteChannel ciphertextChannel, byte[] associatedData) in newDecryptingChannel()
68 SeekableByteChannel ciphertextSource, byte[] associatedData) in newSeekableDecryptingChannel()
74 public OutputStream newEncryptingStream(OutputStream ciphertext, byte[] associatedData) in newEncryptingStream()
80 public InputStream newDecryptingStream(InputStream ciphertextStream, byte[] associatedData) in newDecryptingStream()
H A DAesGcmJce.java49 public byte[] encrypt(final byte[] plaintext, final byte[] associatedData) in encrypt()
60 public byte[] decrypt(final byte[] ciphertext, final byte[] associatedData) in decrypt()
H A DXChaCha20Poly1305.java38 public byte[] encrypt(final byte[] plaintext, final byte[] associatedData) in encrypt()
50 public byte[] decrypt(final byte[] ciphertext, final byte[] associatedData) in decrypt()
H A DChaCha20Poly1305.java40 public byte[] encrypt(final byte[] plaintext, final byte[] associatedData) in encrypt()
52 public byte[] decrypt(final byte[] ciphertext, final byte[] associatedData) in decrypt()
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/testing/
H A DStreamingTestUtil.java368 byte[] associatedData) in testEncryptionAndDecryption()
375 Channels.newChannel(ciphertext), associatedData)) { in testEncryptionAndDecryption() argument
480 encryptionStreamingAead.newEncryptingStream(bos, associatedData)) { in testEncryptionAndDecryption() argument
511 StreamingAead ags, byte[] plaintext, byte[] associatedData, int firstSegmentOffset) in encryptWithChannel()
516 try (WritableByteChannel encChannel = ags.newEncryptingChannel(ctChannel, associatedData)) { in encryptWithChannel() argument
540 byte[] associatedData, in encryptWithChannel()
542 try (WritableByteChannel encChannel = ags.newEncryptingChannel(ciphertext, associatedData)) { in encryptWithChannel() argument
560 StreamingAead ags, byte[] plaintext, byte[] associatedData, int firstSegmentOffset) in encryptWithStream()
564 try (OutputStream encChannel = ags.newEncryptingStream(bos, associatedData)) { in encryptWithStream() argument
819 Channels.newWriter(ags.newEncryptingChannel(ctChannel, associatedData), "UTF-8")) { in testEncryptDecryptString() argument
[all …]
H A DHpkeTestEncryption.java28 public final byte[] associatedData; // aad field in HpkeTestEncryption
33 String plaintext, String associatedData, String nonce, String ciphertext) { in HpkeTestEncryption()
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/
H A DStreamingAead.java123 WritableByteChannel ciphertextDestination, byte[] associatedData) in newEncryptingChannel()
165 SeekableByteChannel ciphertextSource, byte[] associatedData) in newSeekableDecryptingChannel()
169 ReadableByteChannel ciphertextSource, byte[] associatedData) in newDecryptingChannel()
178 OutputStream newEncryptingStream(OutputStream ciphertextDestination, byte[] associatedData) in newEncryptingStream()
193 InputStream newDecryptingStream(InputStream ciphertextSource, byte[] associatedData) in newDecryptingStream()
H A DTinkJsonProtoKeysetFormat.java80 String serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData) in parseEncryptedKeyset()
94 KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData) in serializeEncryptedKeyset()
99 JsonKeysetWriter.withOutputStream(outputStream), keysetEncryptionAead, associatedData); in serializeEncryptedKeyset() local
H A DTinkProtoKeysetFormat.java74 byte[] serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData) in parseEncryptedKeyset()
88 KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData) in serializeEncryptedKeyset()
93 BinaryKeysetWriter.withOutputStream(outputStream), keysetEncryptionAead, associatedData); in serializeEncryptedKeyset() local
H A DAead.java48 byte[] encrypt(final byte[] plaintext, final byte[] associatedData) in encrypt()
62 byte[] decrypt(final byte[] ciphertext, final byte[] associatedData) in decrypt()
H A DDeterministicAead.java60 byte[] encryptDeterministically(final byte[] plaintext, final byte[] associatedData) in encryptDeterministically()
72 byte[] decryptDeterministically(final byte[] ciphertext, final byte[] associatedData) in decryptDeterministically()
/aosp_15_r20/external/tink/java_src/src/test/java/com/google/crypto/tink/streamingaead/
H A DStreamingAeadTest.java102 Channels.newChannel(ciphertextOutputStream), associatedData)) { in createEncryptDecrypt() argument
112 streamingAead.newDecryptingChannel(ciphertextSource, associatedData)) { in createEncryptDecrypt() argument
161 Channels.newChannel(ciphertextOutputStream), associatedData)) { in readKeyset_encryptDecrypt_success() argument
170 streamingAead.newDecryptingChannel(ciphertextSource, associatedData)) { in readKeyset_encryptDecrypt_success() argument
233 Channels.newChannel(ciphertextOutputStream), associatedData)) { in multipleKeysReadKeyset_encryptDecrypt_success() argument
242 streamingAead.newDecryptingChannel(ciphertextSource, associatedData)) { in multipleKeysReadKeyset_encryptDecrypt_success() argument
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/streamingaead/
H A DStreamingAeadHelper.java50 WritableByteChannel ciphertextDestination, byte[] associatedData) in newEncryptingChannel()
57 ReadableByteChannel ciphertextChannel, byte[] associatedData) in newDecryptingChannel()
64 SeekableByteChannel ciphertextChannel, byte[] associatedData) in newSeekableDecryptingChannel()
72 byte[] associatedData) in newDecryptingStream()
79 OutputStream ciphertext, byte[] associatedData) in newEncryptingStream()
/aosp_15_r20/external/tink/testing/java_src/javatests/com/google/crypto/tink/testing/
H A DTestingServicesTest.java230 Optional<byte[]> associatedData) { in keysetReadEncrypted()
247 Optional<byte[]> associatedData) { in keysetWriteEncrypted()
445 AeadGrpc.AeadBlockingStub aeadStub, byte[] keyset, byte[] plaintext, byte[] associatedData) { in aeadEncrypt()
459 AeadGrpc.AeadBlockingStub aeadStub, byte[] keyset, byte[] ciphertext, byte[] associatedData) { in aeadDecrypt()
544 byte[] associatedData) { in daeadEncrypt()
559 byte[] associatedData) { in daeadDecrypt()
676 byte[] associatedData) { in streamingAeadEncrypt()
693 byte[] associatedData) { in streamingAeadDecrypt()
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/integration/android/
H A DAndroidKeystoreAesGcm.java66 public byte[] encrypt(final byte[] plaintext, final byte[] associatedData) in encrypt()
77 private byte[] encryptInternal(final byte[] plaintext, final byte[] associatedData) in encryptInternal()
95 public byte[] decrypt(final byte[] ciphertext, final byte[] associatedData) in decrypt()
111 private byte[] decryptInternal(final byte[] ciphertext, final byte[] associatedData) in decryptInternal()
/aosp_15_r20/external/rust/beto-rust/nearby/connections/ukey2/ukey2_jni/java/src/main/java/com/google/security/cryptauth/lib/securegcm/ukey2/
DD2DConnectionContextV1.java38 long contextPtr, byte[] payload, byte[] associatedData) throws BadHandleException; in encode_message_to_peer()
41 long contextPtr, byte[] message, byte[] associatedData) throws CryptoException; in decode_message_from_peer()
73 public byte[] encodeMessageToPeer(@Nonnull byte[] payload, @Nullable byte[] associatedData) in encodeMessageToPeer()
85 public byte[] decodeMessageFromPeer(@Nonnull byte[] message, @Nullable byte[] associatedData) in decodeMessageFromPeer()
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/aead/internal/
H A DInsecureNonceChaCha20Poly1305Base.java68 public byte[] encrypt(final byte[] nonce, final byte[] plaintext, final byte[] associatedData) in encrypt()
91 ByteBuffer output, final byte[] nonce, final byte[] plaintext, final byte[] associatedData) in encrypt()
120 public byte[] decrypt(final byte[] nonce, final byte[] ciphertext, final byte[] associatedData) in decrypt()
135 public byte[] decrypt(ByteBuffer ciphertext, final byte[] nonce, final byte[] associatedData) in decrypt()
/aosp_15_r20/external/tink/java_src/src/test/java/com/google/crypto/tink/subtle/
H A DStreamingAeadThreadSafetyTest.java83 private byte[] encrypt(StreamingAead stream, byte[] plaintext, byte[] associatedData) in encrypt()
142 public void testDecryption(StreamingAead stream, byte[] associatedData, int chunkSize) in testDecryption()
244 StreamingAead stream, byte[] associatedData, int chunkSize, int numberOfChunks) in testEncryption()
400 StreamingAead stream, byte[] associatedData, int plaintextSize) throws Exception { in testRandomAccessDecryption()
/aosp_15_r20/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/
DHpkeJni.java43 @NonNull byte[] publicKey, @NonNull byte[] plainText, @NonNull byte[] associatedData); in encrypt()
54 @NonNull byte[] privateKey, @NonNull byte[] ciphertext, @NonNull byte[] associatedData); in decrypt()
/aosp_15_r20/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/encryption/jni/
DHpkeJni.java43 @NonNull byte[] publicKey, @NonNull byte[] plainText, @NonNull byte[] associatedData); in encrypt()
54 @NonNull byte[] privateKey, @NonNull byte[] ciphertext, @NonNull byte[] associatedData); in decrypt()
/aosp_15_r20/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/spec/
H A DAEADParameterSpec.java15 private final byte[] associatedData; field in AEADParameterSpec
36 public AEADParameterSpec(byte[] nonce, int macSizeInBits, byte[] associatedData) in AEADParameterSpec()
/aosp_15_r20/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/spec/
H A DAEADParameterSpec.java17 private final byte[] associatedData; field in AEADParameterSpec
38 public AEADParameterSpec(byte[] nonce, int macSizeInBits, byte[] associatedData) in AEADParameterSpec()
/aosp_15_r20/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/spec/
H A DAEADParameterSpec.java17 private final byte[] associatedData; field in AEADParameterSpec
38 public AEADParameterSpec(byte[] nonce, int macSizeInBits, byte[] associatedData) in AEADParameterSpec()
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/hybrid/subtle/
H A DAeadOrDaead.java55 public byte[] encrypt(final byte[] plaintext, final byte[] associatedData) in encrypt()
74 public byte[] decrypt(final byte[] ciphertext, final byte[] associatedData) in decrypt()
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/hybrid/internal/
H A DHpkeAead.java37 byte[] seal(byte[] key, byte[] nonce, byte[] plaintext, byte[] associatedData) in seal()
47 byte[] open(byte[] key, byte[] nonce, byte[] ciphertext, byte[] associatedData) in open()

12345