1# 2# Copyright 2001-2024 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 9# Tests start with one of these keywords 10# Cipher Decrypt Derive Digest Encoding KDF MAC PBE 11# PrivPubKeyPair Sign Verify VerifyRecover 12# and continue until a blank line. Lines starting with a pound sign are ignored. 13 14Title = DES3 Tests 15 16# DES EDE3 CBC tests (from destest) 17FIPSversion = <3.4.0 18Cipher = DES-EDE3-CBC 19Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210 20IV = fedcba9876543210 21Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 22Ciphertext = 3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 23NextIV = 1c673812cfde9675 24 25# DES EDE3 ECB test 26# FIPS(3.0.0): has a bug in the IV length #17591 27FIPSversion = >3.0.0 28FIPSversion = <3.4.0 29Cipher = DES-EDE3-ECB 30Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210 31Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 32Ciphertext = 62c10cc9efbf15aaa5ae2e487b690e56d8b1dfb8f5c5b293855e77dd9024b1b1 33 34# DES EDE ECB test 35Availablein = default 36Cipher = DES-EDE-ECB 37Key = 0123456789abcdeffedcba9876543210 38Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 39Ciphertext = 4d1332e49f380e23d80a0d8b2bae5e4e6a0094171abcfc27df2bfd40da9f4e4d 40 41# DES EDE3 CBC tests (from destest) 42 43# Test that DES3 CBC mode encryption fails because it is not FIPS approved 44Availablein = fips 45FIPSversion = >=3.4.0 46Cipher = DES-EDE3-CBC 47Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210 48IV = fedcba9876543210 49Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 50Ciphertext = 3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 51Result = CIPHERINIT_ERROR 52 53# Test that DES3 EBC mode encryption fails because it is not FIPS approved 54Availablein = fips 55FIPSversion = >=3.4.0 56Cipher = DES-EDE3-ECB 57Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210 58Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 59Ciphertext = 62c10cc9efbf15aaa5ae2e487b690e56d8b1dfb8f5c5b293855e77dd9024b1b1 60Result = CIPHERINIT_ERROR 61 62Title = DES3 FIPS Indicator Tests 63 64# Test that DES3 CBC mode encryption is not FIPS approved 65Availablein = fips 66FIPSversion = >=3.4.0 67Cipher = DES-EDE3-CBC 68Unapproved = 1 69CtrlInit = encrypt-check:0 70Operation = ENCRYPT 71Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210 72IV = fedcba9876543210 73Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 74Ciphertext = 3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 75 76# Test that DES3 ECB mode encryption is not FIPS approved 77Availablein = fipss 78FIPSversion = >=3.4.0 79Cipher = DES-EDE3-ECB 80Operation = ENCRYPT 81Unapproved = 1 82CtrlInit = encrypt-check:0 83Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210 84Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 85Ciphertext = 62c10cc9efbf15aaa5ae2e487b690e56d8b1dfb8f5c5b293855e77dd9024b1b1 86