Home
last modified time | relevance | path

Searched full:des (Results 1 – 25 of 45) sorted by relevance

12

/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Ddes.h2 * \file des.h
4 * \brief DES block cipher
6 * \warning DES/3DES are considered weak ciphers and their use constitutes a
42 * \brief DES context structure
44 * \warning DES/3DES are considered weak ciphers and their use constitutes a
49 uint32_t MBEDTLS_PRIVATE(sk)[32]; /*!< DES subkeys */
54 * \brief Triple-DES context structure
56 * \warning DES/3DES are considered weak ciphers and their use constitutes a
61 uint32_t MBEDTLS_PRIVATE(sk)[96]; /*!< 3DES subkeys */
70 * \brief Initialize DES context
[all …]
H A Dcipher.h62 * \warning DES/3DES are considered weak ciphers and their use
70 MBEDTLS_CIPHER_ID_DES, /**< The DES cipher. \warning DES is considered weak. */
71 MBEDTLS_CIPHER_ID_3DES, /**< The Triple DES cipher. \warning 3DES is considered weak. */
80 * \warning DES/3DES are considered weak ciphers and their use
117 …MBEDTLS_CIPHER_DES_ECB, /**< DES cipher with ECB mode. \warning DES is considered wea…
118 …MBEDTLS_CIPHER_DES_CBC, /**< DES cipher with CBC mode. \warning DES is considered wea…
119 …MBEDTLS_CIPHER_DES_EDE_ECB, /**< DES cipher with EDE ECB mode. \warning 3DES is considere…
120 …MBEDTLS_CIPHER_DES_EDE_CBC, /**< DES cipher with EDE CBC mode. \warning 3DES is considere…
121 …MBEDTLS_CIPHER_DES_EDE3_ECB, /**< DES cipher with EDE3 ECB mode. \warning 3DES is consider…
122 …MBEDTLS_CIPHER_DES_EDE3_CBC, /**< DES cipher with EDE3 CBC mode. \warning 3DES is consider…
[all …]
H A Dcmac.h8 * It is supported with AES and DES.
34 #define MBEDTLS_CMAC_MAX_BLOCK_SIZE 8 /**< The longest block used by CMAC is that of 3DES. */
105 * AES-128 and AES-256, and may support AES-192 and 3DES.
197 * AES-128 and AES-256, and may support AES-192 and 3DES.
245 * not support the less widely used AES-192 or 3DES primitives.
/optee_os/core/lib/libtomcrypt/
H A Ddes2_key.h11 * This corresponds to a 2DES key. The 2DES encryption in get_des2_key()
12 * algorithm is similar to 3DES. Both perform and in get_des2_key()
14 * by another encryption step (EDE). However 2DES uses in get_des2_key()
H A Decb.c131 return ltc_ecb_alloc_ctx(ctx, find_cipher("des"), false); in crypto_des_ecb_alloc_ctx()
136 return ltc_ecb_alloc_ctx(ctx, find_cipher("3des"), true); in crypto_des3_ecb_alloc_ctx()
H A Dcbc.c133 return ltc_cbc_alloc_ctx(ctx, find_cipher("des"), false); in crypto_des_cbc_alloc_ctx()
138 return ltc_cbc_alloc_ctx(ctx, find_cipher("3des"), true); in crypto_des3_cbc_alloc_ctx()
H A Dcmac.c116 return crypto_common_cmac_alloc_ctx(ctx_ret, "3des"); in crypto_des3_cmac_alloc_ctx()
/optee_os/core/
H A Dcrypto.mk168 $(eval $(call cryp-dep-one, ECB, AES DES))
169 $(eval $(call cryp-dep-one, CBC, AES DES))
174 $(eval $(call cryp-dep-one, HMAC, AES DES))
177 $(eval $(call cryp-dep-one, CBC_MAC, AES DES))
182 # If no DES cipher mode is left, disable DES
183 $(eval $(call cryp-dep-one, DES, ECB CBC))
205 core-ltc-vars = AES DES
/optee_os/lib/libmbedtls/mbedtls/library/
H A Ddes.c2 * FIPS-46-3 compliant Triple-DES implementation
8 * DES, on which TDES is based, was originally designed by Horst Feistel
18 #include "mbedtls/des.h"
29 * Expanded DES S-boxes
241 * DES round macro
462 * DES key schedule (56-bit, encryption)
472 * DES key schedule (56-bit, decryption)
513 * Triple-DES key schedule (112-bit, encryption)
527 * Triple-DES key schedule (112-bit, decryption)
563 * Triple-DES key schedule (168-bit, encryption)
[all …]
H A Dpsa_crypto_cipher.c131 /* Only DES modifies key_bits */ in mbedtls_cipher_values_from_psa()
219 /* key_bits is 64 for Single-DES, 128 for two-key Triple-DES, in mbedtls_cipher_values_from_psa()
220 * and 192 for three-key Triple-DES. */ in mbedtls_cipher_values_from_psa()
226 /* mbedtls doesn't recognize two-key Triple-DES as an algorithm, in mbedtls_cipher_values_from_psa()
227 * but two-key Triple-DES is functionally three-key Triple-DES in mbedtls_cipher_values_from_psa()
310 /* Two-key Triple-DES is 3-key Triple-DES with K1=K3 */ in psa_cipher_setup()
H A Dcmac.c4 * \brief NIST SP800-38B compliant CMAC implementation for AES and 3DES
53 * Block size must be 8 bytes or 16 bytes - the block sizes for DES and AES.
610 /* Truncation point of message for 3DES CMAC tests */
862 * AES-192 and/or 3DES may be unavailable. This should not cause in cmac_test_wth_cipher()
1009 /* 3DES 2 key */ in mbedtls_cmac_self_test()
1011 "3DES 2 key", in mbedtls_cmac_self_test()
1022 "3DES 2 key", in mbedtls_cmac_self_test()
1034 /* 3DES 3 key */ in mbedtls_cmac_self_test()
1036 "3DES 3 key", in mbedtls_cmac_self_test()
1047 "3DES 3 key", in mbedtls_cmac_self_test()
H A Dpem.c14 #include "mbedtls/des.h"
151 * Decrypt with DES-CBC, using PBKDF1 for key derivation
181 * Decrypt with 3DES-CBC, using PBKDF1 for key derivation
347 if (s2 - s1 >= 23 && memcmp(s1, "DEK-Info: DES-EDE3-CBC,", 23) == 0) { in mbedtls_pem_read_buffer()
356 } else if (s2 - s1 >= 18 && memcmp(s1, "DEK-Info: DES-CBC,", 18) == 0) { in mbedtls_pem_read_buffer()
H A Dcipher_wrap.c38 #include "mbedtls/des.h"
1722 mbedtls_des_context *des = mbedtls_calloc(1, sizeof(mbedtls_des_context)); in des_ctx_alloc() local
1724 if (des == NULL) { in des_ctx_alloc()
1728 mbedtls_des_init(des); in des_ctx_alloc()
1730 return des; in des_ctx_alloc()
1798 "DES-ECB",
1810 "DES-CBC",
1850 "DES-EDE-ECB",
1862 "DES-EDE-CBC",
1902 "DES-EDE3-ECB",
[all …]
H A Doid.c679 OID_DESCRIPTOR(MBEDTLS_OID_DES_CBC, "desCBC", "DES-CBC"),
683 OID_DESCRIPTOR(MBEDTLS_OID_DES_EDE3_CBC, "des-ede3-cbc", "DES-EDE3-CBC"),
896 "PBE with SHA1 and 3-Key 3DES"),
902 "PBE with SHA1 and 2-Key 3DES"),
H A Dpsa_crypto_mac.c164 /* Mbed TLS CMAC does not accept 3DES with only two keys, nor does it accept in cmac_setup()
165 * to do CMAC with pure DES, so return NOT_SUPPORTED here. */ in cmac_setup()
/optee_os/core/lib/libtomcrypt/src/misc/pbes/
H A Dpbes1.c44 { s_pkcs_5_alg1_wrap, "md2", "des", 8, 8 },
46 { s_pkcs_5_alg1_wrap, "md5", "des", 8, 8 },
48 { s_pkcs_5_alg1_wrap, "sha1", "des", 8, 8 },
50 { s_pkcs_12_wrap, "sha1", "3des", 24, 8 },
H A Dpbes2.c26 { pkcs_5_alg2, "sha1", "des", 8, 0 },
28 { pkcs_5_alg2, "sha1", "3des", 24, 0 },
42 …1.2.840.113549.3.7" }, /* http://www.oid-info.com/get/1.2.840.113549.3.7 des-EDE3-CBC */
97 /* PBES2: encrypted pkcs8 - PBES2+PBKDF2+des-ede3-cbc: in pbes2_extract()
111 * 64:d=4 hl=2 l= 8 prim: OBJECT :des-ede3-cbc (== *lenc) in pbes2_extract()
/optee_os/lib/libmbedtls/
H A Dsub.mk27 SRCS_CRYPTO += des.c
85 SRCS_CRYPTO += des.c
/optee_os/core/drivers/crypto/caam/cipher/
H A Dcaam_cipher.c71 * Constants definition of the DES algorithm
75 .type = OP_ALGO(DES) | ALGO_AAI(DES_ECB),
84 .type = OP_ALGO(DES) | ALGO_AAI(DES_CBC),
99 .type = OP_ALGO(3DES) | ALGO_AAI(DES_ECB),
108 /* Triple-DES CBC No Pad */
109 .type = OP_ALGO(3DES) | ALGO_AAI(DES_CBC),
H A Dcaam_cipher_mac.c55 * Constant definitions of DES MAC algorithm
58 .type = OP_ALGO(DES) | ALGO_AAI(DES_CBC),
75 .type = OP_ALGO(3DES) | ALGO_AAI(DES_CBC),
/optee_os/lib/libmbedtls/core/
H A Ddes_ecb.c10 #include <mbedtls/des.h>
H A Ddes_cbc.c10 #include <mbedtls/des.h>
H A Ddes3_ecb.c10 #include <mbedtls/des.h>
H A Ddes3_cbc.c10 #include <mbedtls/des.h>
/optee_os/lib/libmbedtls/mbedtls/
H A DSECURITY.md121 DES. The pure software implementation in Mbed TLS implementation uses lookup

12