diff options
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r-- | src/lib/libcrypto/evp/enc_min.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/evp/evp_test.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/evp/enc_min.c b/src/lib/libcrypto/evp/enc_min.c index 3cb4626bef..7fba38ee24 100644 --- a/src/lib/libcrypto/evp/enc_min.c +++ b/src/lib/libcrypto/evp/enc_min.c | |||
@@ -199,7 +199,7 @@ int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *imp | |||
199 | enc = 1; | 199 | enc = 1; |
200 | ctx->encrypt = enc; | 200 | ctx->encrypt = enc; |
201 | } | 201 | } |
202 | #ifdef OPENSSL_NO_FIPS | 202 | #ifdef OPENSSL_FIPS |
203 | if(FIPS_selftest_failed()) | 203 | if(FIPS_selftest_failed()) |
204 | { | 204 | { |
205 | FIPSerr(FIPS_F_EVP_CIPHERINIT_EX,FIPS_R_FIPS_SELFTEST_FAILED); | 205 | FIPSerr(FIPS_F_EVP_CIPHERINIT_EX,FIPS_R_FIPS_SELFTEST_FAILED); |
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 | } |