19-mac-then-encrypt.conf.in 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # -*- mode: perl; -*-
  2. # Copyright 2016-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License 2.0 (the "License"). You may not use
  5. # this file except in compliance with the License. You can obtain a copy
  6. # in the file LICENSE in the source distribution or at
  7. # https://www.openssl.org/source/license.html
  8. ## SSL test configurations
  9. package ssltests;
  10. use OpenSSL::Test::Utils;
  11. our @tests = (
  12. {
  13. name => "disable-encrypt-then-mac-server-sha",
  14. server => {
  15. "Options" => "-EncryptThenMac",
  16. },
  17. client => {
  18. "CipherString" => "AES128-SHA",
  19. "MaxProtocol" => "TLSv1.2"
  20. },
  21. test => {
  22. "ExpectedResult" => "Success",
  23. },
  24. },
  25. {
  26. name => "disable-encrypt-then-mac-client-sha",
  27. server => {
  28. },
  29. client => {
  30. "CipherString" => "AES128-SHA",
  31. "Options" => "-EncryptThenMac",
  32. "MaxProtocol" => "TLSv1.2"
  33. },
  34. test => {
  35. "ExpectedResult" => "Success",
  36. },
  37. },
  38. {
  39. name => "disable-encrypt-then-mac-both-sha",
  40. server => {
  41. "Options" => "-EncryptThenMac",
  42. },
  43. client => {
  44. "CipherString" => "AES128-SHA",
  45. "Options" => "-EncryptThenMac",
  46. "MaxProtocol" => "TLSv1.2"
  47. },
  48. test => {
  49. "ExpectedResult" => "Success",
  50. },
  51. },
  52. );
  53. my @tests_tls1_2 = (
  54. {
  55. name => "disable-encrypt-then-mac-server-sha2",
  56. server => {
  57. "Options" => "-EncryptThenMac",
  58. },
  59. client => {
  60. "CipherString" => "AES128-SHA256",
  61. "MaxProtocol" => "TLSv1.2"
  62. },
  63. test => {
  64. "ExpectedResult" => "Success",
  65. },
  66. },
  67. {
  68. name => "disable-encrypt-then-mac-client-sha2",
  69. server => {
  70. },
  71. client => {
  72. "CipherString" => "AES128-SHA256",
  73. "Options" => "-EncryptThenMac",
  74. "MaxProtocol" => "TLSv1.2"
  75. },
  76. test => {
  77. "ExpectedResult" => "Success",
  78. },
  79. },
  80. {
  81. name => "disable-encrypt-then-mac-both-sha2",
  82. server => {
  83. "Options" => "-EncryptThenMac",
  84. },
  85. client => {
  86. "CipherString" => "AES128-SHA256",
  87. "Options" => "-EncryptThenMac",
  88. "MaxProtocol" => "TLSv1.2"
  89. },
  90. test => {
  91. "ExpectedResult" => "Success",
  92. },
  93. },
  94. );
  95. push @tests, @tests_tls1_2 unless disabled("tls1_2");