/freebsd/crypto/openssl/include/openssl/ |
H A D | des.h | 35 typedef unsigned char DES_cblock[8]; typedef 44 DES_cblock cblock; 52 # define DES_KEY_SZ (sizeof(DES_cblock)) 78 void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, 82 DES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output, 90 long length, DES_key_schedule *schedule, DES_cblock *ivec, 94 long length, DES_key_schedule *schedule, DES_cblock *ivec, 98 long length, DES_key_schedule *schedule, DES_cblock *ivec, 102 long length, DES_key_schedule *schedule, DES_cblock *ivec, 105 void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, [all …]
|
/freebsd/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | enc_des.c | 69 DES_cblock str_output; 70 DES_cblock str_feed; 71 DES_cblock str_iv; 72 DES_cblock str_ikey; 79 DES_cblock krbdes_key; 81 DES_cblock temp_feed; 118 void fb64_stream_iv (DES_cblock, struct stinfo *); 124 void fb64_stream_key (DES_cblock, struct stinfo *); 223 for (x = 0; x < sizeof(DES_cblock); ++x) { in fb64_start() 266 if (cnt != sizeof(DES_cblock)) { in fb64_is() [all …]
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_des.c | 64 DES_ecb_encrypt((DES_cblock *)(in + i), (DES_cblock *)(out + i), in des_ecb_cipher() 77 (DES_cblock *)ctx->iv, &num); in des_ofb_cipher() 87 (DES_cblock *)ctx->iv, &num); in des_ofb_cipher() 105 (DES_cblock *)ctx->iv, in des_cbc_cipher() 114 (DES_cblock *)ctx->iv, in des_cbc_cipher() 126 (DES_cblock *)ctx->iv, &num, in des_cfb64_cipher() 137 (DES_cblock *)ctx->iv, &num, in des_cfb64_cipher() 161 (DES_cblock *)ctx->iv, in des_cfb1_cipher() 183 (DES_cblock *)ctx->iv, in des_cfb8_cipher() 192 (DES_cblock *)ctx->iv, in des_cfb8_cipher() [all …]
|
H A D | e_xcbc_d.c | 34 DES_cblock inw; 35 DES_cblock outw; 63 DES_cblock *deskey = (DES_cblock *)key; in desx_cbc_init_key() 77 (DES_cblock *)ctx->iv, in desx_cbc_cipher() 86 (DES_cblock *)ctx->iv, in desx_cbc_cipher()
|
H A D | e_des3.c | 74 (DES_cblock *)(out + i), in des_ede_ecb_cipher() 88 (DES_cblock *)ctx->iv, in des_ede_ofb_cipher() 100 (DES_cblock *)ctx->iv, in des_ede_ofb_cipher() 121 (DES_cblock *)ctx->iv, in des_ede_cbc_cipher() 130 (DES_cblock *)ctx->iv, in des_ede_cbc_cipher() 142 &data(ctx)->ks3, (DES_cblock *)ctx->iv, in des_ede_cfb64_cipher() 153 &data(ctx)->ks3, (DES_cblock *)ctx->iv, in des_ede_cfb64_cipher() 176 &data(ctx)->ks3, (DES_cblock *)ctx->iv, in des_ede3_cfb1_cipher() 191 &data(ctx)->ks3, (DES_cblock *)ctx->iv, in des_ede3_cfb8_cipher() 200 &data(ctx)->ks3, (DES_cblock *)ctx->iv, in des_ede3_cfb8_cipher() [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_tdes_default_hw.c | 27 DES_cblock *deskey = (DES_cblock *)key; in ossl_cipher_hw_tdes_ede2_initkey() 56 &tctx->ks3, (DES_cblock *)ctx->iv, &num); in ossl_cipher_hw_tdes_ofb() 63 &tctx->ks3, (DES_cblock *)ctx->iv, &num); in ossl_cipher_hw_tdes_ofb() 79 (DES_cblock *)ctx->iv, &num, ctx->enc); in ossl_cipher_hw_tdes_cfb() 87 (DES_cblock *)ctx->iv, &num, ctx->enc); in ossl_cipher_hw_tdes_cfb() 110 (DES_cblock *)ctx->iv, ctx->enc); in ossl_cipher_hw_tdes_cfb1() 126 (DES_cblock *)ctx->iv, ctx->enc); in ossl_cipher_hw_tdes_cfb8() 134 (DES_cblock *)ctx->iv, ctx->enc); in ossl_cipher_hw_tdes_cfb8()
|
H A D | cipher_des_hw.c | 23 DES_cblock *deskey = (DES_cblock *)key; in cipher_hw_des_initkey() 77 DES_ncbc_encrypt(in, out, MAXCHUNK, key, (DES_cblock *)ctx->iv, in cipher_hw_des_cbc_cipher() 84 DES_ncbc_encrypt(in, out, (long)len, key, (DES_cblock *)ctx->iv, in cipher_hw_des_cbc_cipher() 96 DES_ofb64_encrypt(in, out, MAXCHUNK, key, (DES_cblock *)ctx->iv, &num); in cipher_hw_des_ofb64_cipher() 102 DES_ofb64_encrypt(in, out, (long)len, key, (DES_cblock *)ctx->iv, &num); in cipher_hw_des_ofb64_cipher() 118 DES_cfb64_encrypt(in, out, (long)chunk, key, (DES_cblock *)ctx->iv, in cipher_hw_des_cfb64_cipher() 147 DES_cfb_encrypt(c, d, 1, 1, key, (DES_cblock *)ctx->iv, ctx->enc); in cipher_hw_des_cfb1_cipher() 169 (DES_cblock *)ctx->iv, ctx->enc); in cipher_hw_des_cfb8_cipher() 176 (DES_cblock *)ctx->iv, ctx->enc); in cipher_hw_des_cfb8_cipher()
|
H A D | cipher_tdes_hw.c | 27 DES_cblock *deskey = (DES_cblock *)key; in ossl_cipher_hw_tdes_ede3_initkey() 70 &tctx->ks3, (DES_cblock *)ctx->iv, ctx->enc); in ossl_cipher_hw_tdes_cbc() 77 &tctx->ks3, (DES_cblock *)ctx->iv, ctx->enc); in ossl_cipher_hw_tdes_cbc() 91 DES_ecb3_encrypt((const_DES_cblock *)(in + i), (DES_cblock *)(out + i), in ossl_cipher_hw_tdes_ecb()
|
H A D | cipher_desx_hw.c | 31 DES_cblock *deskey = (DES_cblock *)key; in cipher_hw_desx_cbc_initkey() 57 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc() 65 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | salt-des.c | 52 DES_cblock *key) in krb5_DES_AFS3_CMU_string_to_key() 65 memcpy(key, crypt(password, "p1") + 2, sizeof(DES_cblock)); in krb5_DES_AFS3_CMU_string_to_key() 70 for (i = 0; i < sizeof(DES_cblock); i++) in krb5_DES_AFS3_CMU_string_to_key() 81 DES_cblock *key) in krb5_DES_AFS3_Transarc_string_to_key() 84 DES_cblock temp_key; in krb5_DES_AFS3_Transarc_string_to_key() 85 DES_cblock ivec; in krb5_DES_AFS3_Transarc_string_to_key() 125 DES_cblock tmp; in DES_AFS3_string_to_key() 138 DES_string_to_key_int(unsigned char *data, size_t length, DES_cblock *key) in DES_string_to_key_int() 180 DES_cblock tmp; in krb5_DES_string_to_key()
|
H A D | crypto-des.c | 43 DES_cblock *k = key->keyvalue.data; in krb5_DES_random_key() 45 krb5_generate_random_block(k, sizeof(DES_cblock)); in krb5_DES_random_key() 64 DES_cblock *k = key->keyvalue.data; in krb5_DES_random_to_key() 226 DES_cblock ivec; in evp_des_encrypt_null_ivec() 245 DES_cblock ivec; in evp_des_encrypt_key_ivec() 262 DES_cblock ivec; in DES_CFB64_encrypt_null_ivec() 280 DES_cblock ivec; in DES_PCBC_encrypt_key_ivec()
|
H A D | crypto-des3.c | 44 DES_cblock *k = key->keyvalue.data; in DES3_random_key() 46 krb5_generate_random_block(k, 3 * sizeof(DES_cblock)); in DES3_random_key() 202 DES_cblock *k; in _krb5_DES3_random_to_key()
|
H A D | crypto-des-common.c | 43 _krb5_xor (DES_cblock *key, const unsigned char *b) in _krb5_xor() 67 DES_cblock ivec; in _krb5_des_checksum() 102 DES_cblock ivec; in _krb5_des_verify()
|
H A D | salt-des3.c | 48 DES_cblock keys[3]; in DES3_string_to_key() 60 DES_cblock ivec; in DES3_string_to_key()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | DES_random_key.pod | 23 void DES_random_key(DES_cblock *ret); 30 void DES_set_odd_parity(DES_cblock *key); 33 void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, 35 void DES_ecb2_encrypt(const_DES_cblock *input, DES_cblock *output, 37 void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, 42 long length, DES_key_schedule *schedule, DES_cblock *ivec, 46 DES_cblock *ivec, int enc); 49 DES_cblock *ivec); 51 long length, DES_key_schedule *schedule, DES_cblock *ivec, 54 long length, DES_key_schedule *schedule, DES_cblock *ivec, [all …]
|
/freebsd/crypto/openssl/crypto/des/ |
H A D | str2key.c | 19 void DES_string_to_key(const char *str, DES_cblock *key) in DES_string_to_key() 46 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) in DES_string_to_2keys()
|
H A D | rand_key.c | 19 int DES_random_key(DES_cblock *ret) in DES_random_key() 22 if (RAND_priv_bytes((unsigned char *)ret, sizeof(DES_cblock)) != 1) in DES_random_key()
|
H A D | set_key.c | 59 void DES_set_odd_parity(DES_cblock *key) in DES_set_odd_parity() 94 static const DES_cblock weak_keys[] = { 125 j = CRYPTO_memcmp(weak_keys[i], key, sizeof(DES_cblock)); in DES_is_weak_key()
|
H A D | ofb64ede.c | 26 DES_key_schedule *k3, DES_cblock *ivec, int *num) in DES_ede3_ofb64_encrypt() 31 DES_cblock d; in DES_ede3_ofb64_encrypt()
|
H A D | ofb64enc.c | 25 DES_key_schedule *schedule, DES_cblock *ivec, int *num) in DES_ofb64_encrypt() 30 DES_cblock d; in DES_ofb64_encrypt()
|
H A D | qud_cksm.c | 34 DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[], in DES_quad_cksum() 35 long length, int out_count, DES_cblock *seed) in DES_quad_cksum()
|
H A D | ncbc_enc.c | 20 DES_key_schedule *_schedule, DES_cblock *ivec, int enc) in DES_cbc_encrypt() 24 DES_cblock *ivec, int enc) in DES_cbc_encrypt()
|
H A D | cfb64ede.c | 27 DES_cblock *ivec, int *num, int enc) in DES_ede3_cfb64_encrypt() 94 DES_cblock *ivec, int enc) in DES_ede3_cfb_encrypt()
|
/freebsd/crypto/openssl/test/ |
H A D | destest.c | 311 DES_cblock in, out, outin; in test_des_ecb() 336 DES_cblock in, out, outin; in test_des_ede_ecb() 366 DES_cblock iv3; in test_des_cbc() 388 DES_cblock iv3; in test_des_ede_cbc() 411 DES_cblock iv3; in test_ede_cbc() 444 DES_cblock iv; in test_input_align() 459 DES_cblock iv; in test_output_align() 686 cs = DES_quad_cksum(cbc_data, (DES_cblock *)lqret, in test_des_quad_cksum() 688 (DES_cblock *)cbc_iv); in test_des_quad_cksum() 784 const DES_cblock key; [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | chap_ms.c | 106 DES_set_odd_parity((DES_cblock *)des_key); in MakeKey() 112 DES_cblock des_key; in DesEncrypt() 117 DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cipher, &key_schedule, 1); in DesEncrypt()
|