aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_errors.pl
diff options
context:
space:
mode:
authorJanos Follath <janos.follath@arm.com>2019-12-03 15:55:56 +0000
committerJanos Follath <janos.follath@arm.com>2019-12-03 16:01:06 +0000
commit60f6b64b8f6545c9fcc699291a19144ddff2cd99 (patch)
tree3695c944db886ba8ecd540a25357bbb46a51c552 /scripts/generate_errors.pl
parentd11550e11d893cd743996d8789c6d82ac3ea190a (diff)
downloadmbedtls-60f6b64b8f6545c9fcc699291a19144ddff2cd99.zip
mbedtls-60f6b64b8f6545c9fcc699291a19144ddff2cd99.tar.gz
mbedtls-60f6b64b8f6545c9fcc699291a19144ddff2cd99.tar.bz2
Add two error codes to the Error module
One of the error codes was already reserved, this commit just makes it explicit. The other one is a new error code for initializing return values in the library: `MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED` should not be returned by the library. If it is returned, then it is surely a bug in the library or somebody is tampering with the device.
Diffstat (limited to 'scripts/generate_errors.pl')
-rwxr-xr-xscripts/generate_errors.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_errors.pl b/scripts/generate_errors.pl
index e640f4c..b4c014e 100755
--- a/scripts/generate_errors.pl
+++ b/scripts/generate_errors.pl
@@ -31,7 +31,7 @@ my $error_format_file = $data_dir.'/error.fmt';
my @low_level_modules = qw( AES ARC4 ARIA ASN1 BASE64 BIGNUM BLOWFISH
CAMELLIA CCM CHACHA20 CHACHAPOLY CMAC CTR_DRBG DES
- ENTROPY GCM HKDF HMAC_DRBG MD2 MD4 MD5
+ ENTROPY ERROR GCM HKDF HMAC_DRBG MD2 MD4 MD5
OID PADLOCK PBKDF2 PLATFORM POLY1305 RIPEMD160
SHA1 SHA256 SHA512 THREADING XTEA );
my @high_level_modules = qw( CIPHER DHM ECP MD