[MDEV-8480] mysql-test - main.func_encrypt_ucs2 fails if FIPS=1 Created: 2015-07-17  Updated: 2020-12-08  Resolved: 2016-04-24

Status: Closed
Project: MariaDB Server
Component/s: Encryption
Affects Version/s: 10.0.20
Fix Version/s: 10.0.25, 10.1.14

Type: Bug Priority: Major
Reporter: Nirbhay Choubey (Inactive) Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: SUSE, fips
Environment:

SLES12 x86_64


Sprint: 10.0.25

 Description   

mariadb-10.0.20-18.1.x86_64

main.func_encrypt_ucs2                   [ fail ]
        Test ended at 2015-07-13 13:14:14
 
CURRENT_TEST: main.func_encrypt_ucs2
--- /usr/share/mysql-test/r/func_encrypt_ucs2.result    2015-06-17 16:54:11.000000000 +0200
+++ /usr/share/mysql-test/r/func_encrypt_ucs2.reject    2015-07-13 13:14:14.131164424 +0200
@@ -8,12 +8,10 @@
 CONVERT(DES_ENCRYPT(0, CHAR('1' USING ucs2)),UNSIGNED)
 0
 Warnings:
-Warning        1292    Truncated incorrect INTEGER value: '\xFFT\xDCiK\x92j\xE6\xFC'
+Warning        1292    Truncated incorrect INTEGER value: '\xFFc\xBA}\xA8\x0E\\xA2,'
 SELECT CHAR_LENGTH(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' USING ucs2)));
 CHAR_LENGTH(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' USING ucs2)))
-4
+NULL
 SELECT CONVERT(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' using ucs2)), UNSIGNED);
 CONVERT(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' using ucs2)), UNSIGNED)
-0
-Warnings:
-Warning        1292    Truncated incorrect INTEGER value: 'test'
+NULL
 
mysqltest: Result length mismatch
 
 - saving '/usr/share/mysql-test/var/log/main.func_encrypt_ucs2/' to '/usr/share/mysql-test/var/log/main.func_encrypt_ucs2/'
Too many tests(10) failed! Terminating...

see
Bug #937843
Bug #937849

https://bugzilla.suse.com/show_bug.cgi?id=937850



 Comments   
Comment by Elena Stepanova [ 2016-01-21 ]

nirbhay_c, can you find out if FIPS-related issues are still reproducible on SLES? I managed to enable FIPS on OpenSUSE 42 (I think), but did not get test failures. Of course, it's very far from running SUSE builds on SLES 12.

If it's still reproducible, or if it's unknown, could you please paste the whole build options that they use? I think we already tried to get them once, but I cannot find them in JIRA.

Generated at Thu Feb 08 07:27:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.