From 75eff6cba7ac959f0d3b5292aa5ca7e321bf2e0d Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 9 Feb 2011 15:13:28 +0000 Subject: Convert the BER/DER coders to use size_t instead of u32bit for small integer values. Update callers. --- src/pubkey/ecc_key/ecc_key.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pubkey/ecc_key') diff --git a/src/pubkey/ecc_key/ecc_key.cpp b/src/pubkey/ecc_key/ecc_key.cpp index bf221aad0..bd04e3197 100644 --- a/src/pubkey/ecc_key/ecc_key.cpp +++ b/src/pubkey/ecc_key/ecc_key.cpp @@ -108,7 +108,7 @@ MemoryVector EC_PrivateKey::pkcs8_private_key() const { return DER_Encoder() .start_cons(SEQUENCE) - .encode(static_cast(1)) + .encode(static_cast(1)) .encode(BigInt::encode_1363(private_key, private_key.bytes()), OCTET_STRING) .end_cons() @@ -123,7 +123,7 @@ EC_PrivateKey::EC_PrivateKey(const AlgorithmIdentifier& alg_id, BER_Decoder(key_bits) .start_cons(SEQUENCE) - .decode_and_check(1, "Unknown version code for ECC key") + .decode_and_check(1, "Unknown version code for ECC key") .decode_octet_string_bigint(private_key) .verify_end() .end_cons(); -- cgit v1.2.3