diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp_test.c')
| -rw-r--r-- | src/lib/libcrypto/evp/evp_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/evp/evp_test.c b/src/lib/libcrypto/evp/evp_test.c index bb6f02c2e9..436be20bf1 100644 --- a/src/lib/libcrypto/evp/evp_test.c +++ b/src/lib/libcrypto/evp/evp_test.c | |||
| @@ -220,18 +220,18 @@ static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn, | |||
| 220 | test1_exit(7); | 220 | test1_exit(7); |
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | if(outl+outl2 != cn) | 223 | if(outl+outl2 != pn) |
| 224 | { | 224 | { |
| 225 | fprintf(stderr,"Plaintext length mismatch got %d expected %d\n", | 225 | fprintf(stderr,"Plaintext length mismatch got %d expected %d\n", |
| 226 | outl+outl2,cn); | 226 | outl+outl2,pn); |
| 227 | test1_exit(8); | 227 | test1_exit(8); |
| 228 | } | 228 | } |
| 229 | 229 | ||
| 230 | if(memcmp(out,plaintext,cn)) | 230 | if(memcmp(out,plaintext,pn)) |
| 231 | { | 231 | { |
| 232 | fprintf(stderr,"Plaintext mismatch\n"); | 232 | fprintf(stderr,"Plaintext mismatch\n"); |
| 233 | hexdump(stderr,"Got",out,cn); | 233 | hexdump(stderr,"Got",out,pn); |
| 234 | hexdump(stderr,"Expected",plaintext,cn); | 234 | hexdump(stderr,"Expected",plaintext,pn); |
| 235 | test1_exit(9); | 235 | test1_exit(9); |
| 236 | } | 236 | } |
| 237 | } | 237 | } |
