[gnutls-devel] GnuTLS | tests/slow/cipher-api-test.c: Make test more portable (!852)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Jan 2 10:04:49 CET 2019


Nikos Mavrogiannopoulos started a new discussion on tests/slow/cipher-api-test.c:

>  	} else {
> -		test_cipher(algo,aead);
> +		test_cipher(algo, aead, testmode);
>  		exit(0);
>  	}
>  }
>  
>  void doit(void)
>  {
> -	start("aes128-gcm", GNUTLS_CIPHER_AES_128_GCM, 1);
> -	start("aes256-gcm", GNUTLS_CIPHER_AES_256_GCM, 1);
> -	start("aes128-cbc", GNUTLS_CIPHER_AES_128_CBC, 0);
> -	start("aes256-cbc", GNUTLS_CIPHER_AES_256_CBC, 0);
> -	start("3des-cbc", GNUTLS_CIPHER_3DES_CBC, 0);
> +	start("aes128-gcm", GNUTLS_CIPHER_AES_128_GCM, 1, 0);
> +	start("aes256-gcm", GNUTLS_CIPHER_AES_256_GCM, 1, 0);

why called with testmode zero? This is supposed to do negative testing of `gnutls_cipher_add_auth`.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/852#note_128307115
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190102/0f81a309/attachment-0001.html>


More information about the Gnutls-devel mailing list