diff options
author | lloyd <[email protected]> | 2010-11-29 13:14:40 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-11-29 13:14:40 +0000 |
commit | adf062c2776a1ca57958bf2269781e0aaa73d321 (patch) | |
tree | 64200a554d51cde47a7839662359687459f8566a /src | |
parent | 40e1662d627e2c0c5a15ee35b7b2b225d52ac778 (diff) |
Overflow warning in MSVC
Diffstat (limited to 'src')
-rw-r--r-- | src/cert/cvc/ecdsa_sig.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cert/cvc/ecdsa_sig.cpp b/src/cert/cvc/ecdsa_sig.cpp index dba2ece8d..1b3940250 100644 --- a/src/cert/cvc/ecdsa_sig.cpp +++ b/src/cert/cvc/ecdsa_sig.cpp @@ -32,7 +32,8 @@ MemoryVector<byte> ECDSA_Signature::DER_encode() const MemoryVector<byte> ECDSA_Signature::get_concatenation() const { - u32bit enc_len = m_r > m_s ? m_r.bytes() : m_s.bytes(); // use the larger + // use the larger + const size_t enc_len = m_r > m_s ? m_r.bytes() : m_s.bytes(); SecureVector<byte> sv_r = BigInt::encode_1363(m_r, enc_len); SecureVector<byte> sv_s = BigInt::encode_1363(m_s, enc_len); |