VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.2/providers/implementations/ciphers/cipher_tdes.c@ 94403

Last change on this file since 94403 was 94320, checked in by vboxsync, 3 years ago

libs/openssl-3.0.1: Export to OSE and fix copyright headers in Makefiles, bugref:10128

File size: 982 bytes
Line 
1/*
2 * Copyright 2019-2021 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
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
16#include <openssl/rand.h>
17#include <openssl/proverr.h>
18#include "prov/ciphercommon.h"
19#include "cipher_tdes.h"
20#include "prov/implementations.h"
21
22/*
23 * NOTE: ECB mode does not use an IV - but existing test code is setting
24 * an IV. Fixing this could potentially make applications break.
25 */
26/* ossl_tdes_ede3_ecb_functions */
27IMPLEMENT_tdes_cipher(ede3, EDE3, ecb, ECB, TDES_FLAGS, 64*3, 64, 64, block);
28/* ossl_tdes_ede3_cbc_functions */
29IMPLEMENT_tdes_cipher(ede3, EDE3, cbc, CBC, TDES_FLAGS, 64*3, 64, 64, block);
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette