Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove redundant state
  • Loading branch information
tniessen committed Sep 14, 2018
commit 994d6b7c249a12125fce8b4fbe27102ed24115f3
2 changes: 0 additions & 2 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2818,7 +2818,6 @@ bool CipherBase::InitAuthenticated(const char* cipher_type, int iv_len,

// Remember the given authentication tag length for later.
auth_tag_len_ = auth_tag_len;
auth_tag_state_ = kAuthTagLengthKnown;

if (mode == EVP_CIPH_CCM_MODE) {
// Restrict the message length to min(INT_MAX, 2^(8*(15-iv_len))-1) bytes.
Expand All @@ -2841,7 +2840,6 @@ bool CipherBase::InitAuthenticated(const char* cipher_type, int iv_len,

// Remember the given authentication tag length for later.
auth_tag_len_ = auth_tag_len;
auth_tag_state_ = kAuthTagLengthKnown;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/node_crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ class CipherBase : public BaseObject {
};
enum AuthTagState {
kAuthTagUnknown,
kAuthTagLengthKnown,
kAuthTagKnown,
kAuthTagPassedToOpenSSL
};
Expand Down