1*b0d17251Schristos /* 2*b0d17251Schristos * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3*b0d17251Schristos * 4*b0d17251Schristos * Licensed under the Apache License 2.0 (the "License"). You may not use 5*b0d17251Schristos * this file except in compliance with the License. You can obtain a copy 6*b0d17251Schristos * in the file LICENSE in the source distribution or at 7*b0d17251Schristos * https://www.openssl.org/source/license.html 8*b0d17251Schristos */ 9*b0d17251Schristos 10*b0d17251Schristos #include <openssl/des.h> 11*b0d17251Schristos #include "crypto/des_platform.h" 12*b0d17251Schristos 13*b0d17251Schristos #define TDES_FLAGS 0 14*b0d17251Schristos 15*b0d17251Schristos typedef struct prov_des_ctx_st { 16*b0d17251Schristos PROV_CIPHER_CTX base; /* Must be first */ 17*b0d17251Schristos union { 18*b0d17251Schristos OSSL_UNION_ALIGN; 19*b0d17251Schristos DES_key_schedule ks; 20*b0d17251Schristos } dks; 21*b0d17251Schristos union { 22*b0d17251Schristos void (*cbc) (const void *, void *, size_t, 23*b0d17251Schristos const DES_key_schedule *, unsigned char *); 24*b0d17251Schristos } dstream; 25*b0d17251Schristos 26*b0d17251Schristos } PROV_DES_CTX; 27*b0d17251Schristos 28*b0d17251Schristos const PROV_CIPHER_HW *ossl_prov_cipher_hw_des_cbc(void); 29*b0d17251Schristos const PROV_CIPHER_HW *ossl_prov_cipher_hw_des_ecb(void); 30*b0d17251Schristos const PROV_CIPHER_HW *ossl_prov_cipher_hw_des_ofb64(void); 31*b0d17251Schristos const PROV_CIPHER_HW *ossl_prov_cipher_hw_des_cfb64(void); 32*b0d17251Schristos const PROV_CIPHER_HW *ossl_prov_cipher_hw_des_cfb1(void); 33*b0d17251Schristos const PROV_CIPHER_HW *ossl_prov_cipher_hw_des_cfb8(void); 34