]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/implementations/ciphers/cipher_tdes.c
Replace provider cipher flags with separate param fields
[thirdparty/openssl.git] / providers / implementations / ciphers / cipher_tdes.c
CommitLineData
4a42e264 1/*
f5056577 2 * Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
4a42e264
SL
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
c6fec81b
P
10/*
11 * DES low level APIs are deprecated for public use, but still ok for internal
12 * use.
13 */
14#include "internal/deprecated.h"
15
604e884b
RL
16#include "prov/ciphercommon.h"
17#include "cipher_tdes.h"
993ebac9 18#include <openssl/rand.h>
af3e7e1b 19#include "prov/implementations.h"
ddd21319 20#include "prov/providercommonerr.h"
4a42e264 21
4a42e264 22/*
a054d15c 23 * NOTE: ECB mode does not use an IV - but existing test code is setting
4a42e264
SL
24 * an IV. Fixing this could potentially make applications break.
25 */
1be63951 26/* ossl_tdes_ede3_ecb_functions */
4a42e264 27IMPLEMENT_tdes_cipher(ede3, EDE3, ecb, ECB, TDES_FLAGS, 64*3, 64, 64, block);
1be63951 28/* ossl_tdes_ede3_cbc_functions */
4a42e264 29IMPLEMENT_tdes_cipher(ede3, EDE3, cbc, CBC, TDES_FLAGS, 64*3, 64, 64, block);