diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-09-17 14:24:39 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-09-17 14:24:39 +0400 |
commit | d03a1a1a45b922c970da7895878a91270b9d3567 (patch) | |
tree | 7d336574b3aa4b8926acd519809bd50dc07ec492 /core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java | |
parent | bca63325a489aea4c649ee992cc7df22d4dc9349 (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.java | 9 |
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(); |