Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-09-17 14:24:39 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-09-17 14:24:39 +0400
commitd03a1a1a45b922c970da7895878a91270b9d3567 (patch)
tree7d336574b3aa4b8926acd519809bd50dc07ec492 /core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java
parentbca63325a489aea4c649ee992cc7df22d4dc9349 (diff)
Add some TODOs related to draft-josefsson-salsa20-tls-02
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java
index e720d08d..20dfef89 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java
@@ -105,6 +105,15 @@ public class TlsMac
*/
public byte[] calculateMac(long seqNo, short type, byte[] message, int offset, int length)
{
+ /*
+ * TODO[draft-josefsson-salsa20-tls-02] 3. Moreover, in order to accommodate MAC algorithms
+ * like UMAC that require a nonce as part of their operation, the document extends the MAC
+ * algorithm as specified in the TLS protocol. The extended MAC includes a nonce as a second
+ * parameter. MAC algorithms that do not require a nonce, such as HMAC, are assumed to
+ * ignore the nonce input value. The MAC in a GenericStreamCipher is then calculated as
+ * follows.
+ */
+
ProtocolVersion serverVersion = context.getServerVersion();
boolean isSSL = serverVersion.isSSL();