You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -79,18 +86,18 @@ public static interface BlockCipherFactory {
79
86
* @param ctrKey SIV mode requires two separate keys. You can use one long key, which is splitted in half. See https://tools.ietf.org/html/rfc5297#section-2.2
80
87
* @param macKey SIV mode requires two separate keys. You can use one long key, which is splitted in half. See https://tools.ietf.org/html/rfc5297#section-2.2
81
88
* @param plaintext Your plaintext, which shall be encrypted.
82
-
* @param additionalData Optional additional data, which gets authenticated but not encrypted.
89
+
* @param associatedData Optional associated data, which gets authenticated but not encrypted.
83
90
* @return IV + Ciphertext as a concatenated byte array.
84
91
* @throws IllegalArgumentException if keys are invalid or {@link SecretKey#getEncoded()} is not supported.
* @param ctrKey SIV mode requires two separate keys. You can use one long key, which is splitted in half. See https://tools.ietf.org/html/rfc5297#section-2.2
104
111
* @param macKey SIV mode requires two separate keys. You can use one long key, which is splitted in half. See https://tools.ietf.org/html/rfc5297#section-2.2
105
112
* @param plaintext Your plaintext, which shall be encrypted.
106
-
* @param additionalData Optional additional data, which gets authenticated but not encrypted.
113
+
* @param associatedData Optional associated data, which gets authenticated but not encrypted.
107
114
* @return IV + Ciphertext as a concatenated byte array.
108
115
* @throws IllegalArgumentException if the either of the two keys is of invalid length for the used {@link BlockCipher}.
* @param ctrKey SIV mode requires two separate keys. You can use one long key, which is splitted in half. See https://tools.ietf.org/html/rfc5297#section-2.2
150
157
* @param macKey SIV mode requires two separate keys. You can use one long key, which is splitted in half. See https://tools.ietf.org/html/rfc5297#section-2.2
151
158
* @param ciphertext Your cipehrtext, which shall be decrypted.
152
-
* @param additionalData Optional additional data, which needs to be authenticated during decryption.
159
+
* @param associatedData Optional associated data, which needs to be authenticated during decryption.
153
160
* @return Plaintext byte array.
154
161
* @throws IllegalArgumentException If keys are invalid or {@link SecretKey#getEncoded()} is not supported.
155
-
* @throws AEADBadTagException If the authentication failed, e.g. because ciphertext and/or additionalData are corrupted.
162
+
* @throws AEADBadTagException If the authentication failed, e.g. because ciphertext and/or associatedData are corrupted.
156
163
* @throws IllegalBlockSizeException If the provided ciphertext is of invalid length.
* @param ctrKey SIV mode requires two separate keys. You can use one long key, which is splitted in half. See https://tools.ietf.org/html/rfc5297#section-2.2
176
183
* @param macKey SIV mode requires two separate keys. You can use one long key, which is splitted in half. See https://tools.ietf.org/html/rfc5297#section-2.2
177
184
* @param ciphertext Your ciphertext, which shall be encrypted.
178
-
* @param additionalData Optional additional data, which needs to be authenticated during decryption.
185
+
* @param associatedData Optional associated data, which needs to be authenticated during decryption.
179
186
* @return Plaintext byte array.
180
187
* @throws IllegalArgumentException If the either of the two keys is of invalid length for the used {@link BlockCipher}.
181
-
* @throws AEADBadTagException If the authentication failed, e.g. because ciphertext and/or additionalData are corrupted.
188
+
* @throws AEADBadTagException If the authentication failed, e.g. because ciphertext and/or associatedData are corrupted.
182
189
* @throws IllegalBlockSizeException If the provided ciphertext is of invalid length.
0 commit comments