X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fbftest.c;h=2f9b29387bb0980cb3f4150b663b635b96ea2ed0;hp=0639ec888d35854a3cdd5095c2db6dba64ef446c;hb=1f483a69bce11c940309edc437eee6e32294d5f2;hpb=b99fe5f4927b305bae88daac2484c284fe749329 diff --git a/test/bftest.c b/test/bftest.c index 0639ec888d..2f9b29387b 100644 --- a/test/bftest.c +++ b/test/bftest.c @@ -1,7 +1,7 @@ /* * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. * - * Licensed under the OpenSSL license (the "License"). You may not use + * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html @@ -16,10 +16,9 @@ #include #include #include /* To see if OPENSSL_NO_BF is defined */ - #include "testutil.h" -#include +#include "internal/nelem.h" #ifndef OPENSSL_NO_BF # include @@ -357,7 +356,7 @@ static int test_bf_cbc(void) BF_set_key(&key, 16, cbc_key); memset(cbc_in, 0, sizeof(cbc_in)); memset(cbc_out, 0, sizeof(cbc_out)); - memcpy(iv, cbc_iv, sizeof iv); + memcpy(iv, cbc_iv, sizeof(iv)); BF_cbc_encrypt((unsigned char *)cbc_data, cbc_out, len, &key, iv, BF_ENCRYPT); if (!TEST_mem_eq(cbc_out, 32, cbc_ok, 32))