diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-02-08 18:15:59 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-02-08 18:15:59 +0000 |
commit | 9dd346c90d4db6d5db23c143fcbb95c6a7fd05e1 (patch) | |
tree | 16b4788e71ea9c5657cb6569fdbf3d828eb9b465 /fips/fips_utl.h | |
parent | 9770924f9bd6de3d64041f4a725dea7c958721b7 (diff) |
Experimental incomplete AES GCM algorithm test program.
Diffstat (limited to 'fips/fips_utl.h')
-rw-r--r-- | fips/fips_utl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fips/fips_utl.h b/fips/fips_utl.h index eccc8ddf44..7ead612478 100644 --- a/fips/fips_utl.h +++ b/fips/fips_utl.h @@ -134,6 +134,11 @@ int hex2bin(const char *in, unsigned char *out) unsigned char *hex2bin_m(const char *in, long *plen) { unsigned char *p; + if (strlen(in) == 0) + { + *plen = 0; + return OPENSSL_malloc(1); + } p = OPENSSL_malloc((strlen(in) + 1)/2); *plen = hex2bin(in, p); return p; |