Commit 343e6a49 authored by Ben Laurie's avatar Ben Laurie
Browse files

Add corruptors so KATs can be made to fail.

parent 0c0bba97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
HMAC-SHA1(fips_aes_core.c)= 979e9a3084dc8e15d9f222bf721e6faccf6bcd18
HMAC-SHA1(fips_aes_selftest.c)= 0bf32b515e2ee39332aa6563b45d7d44d88f4ed4
HMAC-SHA1(fips_aes_selftest.c)= 98b01502221e7fe529fd981222f2cbb52eb4cbe0
HMAC-SHA1(fips_aes_locl.h)= ded58f0cda8cb967dc5f5f3a860601c0b8744623
+5 −0
Original line number Diff line number Diff line
@@ -70,6 +70,11 @@ static struct
	},
	};

void FIPS_corrupt_aes()
    {
    tests[0].key[0]++;
    }

int FIPS_selftest_aes()
    {
    int n;
+1 −1
Original line number Diff line number Diff line
HMAC-SHA1(fips_des_enc.c)= ea89417ba58c148c3d72d29438cd0bedc2315f7f
HMAC-SHA1(asm/fips-dx86-elf.s)= 2f85e8e86806c92ee4c12cf5354e19eccf6ed47d
HMAC-SHA1(fips_des_selftest.c)= af1ad8d10a0f0567d48fcffd6f45b7b050f6dcb5
HMAC-SHA1(fips_des_selftest.c)= 3bc574e51647c5f5ab45d1007b2cf461d67764a9
HMAC-SHA1(fips_set_key.c)= e55cabd0cbe5cd17710e11270d9594c0d7237064
HMAC-SHA1(fips_des_locl.h)= 7053848e884df47f06de9f2248380b92e58ef4e5
+6 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@
static struct
    {
    DES_cblock key;
    DES_cblock plaintext;
    unsigned char plaintext[8];
    unsigned char ciphertext[8];
    } tests[]=
	{
@@ -120,6 +120,11 @@ static struct
	},
	};

void FIPS_corrupt_des()
    {
    tests[0].plaintext[0]++;
    }

int FIPS_selftest_des()
    {
    int n;
+1 −1
Original line number Diff line number Diff line
HMAC-SHA1(fips_dsa_ossl.c)= 1295b5241620e1d5449aaeeb7084b181fc197003
HMAC-SHA1(fips_dsa_gen.c)= e347a0c5b19cdcde37c73f6abcdc52c794d5dd4e
HMAC-SHA1(fips_dsa_selftest.c)= 5a42b699e44b68e765fd6a1e9bcc2b923512a198
HMAC-SHA1(fips_dsa_selftest.c)= a3de5feb989e7bfb15478318feab1f035e700933
Loading