Avoid unsafe integer signedness conversions when loading key file

This commit is contained in:
Andrew Ayer
2014-07-02 22:08:45 -07:00
parent 3511033f7f
commit 4af0a0cfc1
2 changed files with 12 additions and 3 deletions

View File

@@ -102,6 +102,9 @@ private:
KEY_FIELD_AES_KEY = 3,
KEY_FIELD_HMAC_KEY = 5
};
enum {
MAX_FIELD_LEN = 1<<20
};
};
enum {