/freebsd/lib/libc/rpc/ |
H A D | key_call.c | 131 key_encryptsession_pk(char *remotename, netobj *remotekey, des_block *deskey) in key_encryptsession_pk() argument 138 arg.deskey = *deskey; in key_encryptsession_pk() 147 *deskey = res.cryptkeyres_u.deskey; in key_encryptsession_pk() 152 key_decryptsession_pk(char *remotename, netobj *remotekey, des_block *deskey) in key_decryptsession_pk() argument 159 arg.deskey = *deskey; in key_decryptsession_pk() 168 *deskey = res.cryptkeyres_u.deskey; in key_decryptsession_pk() 173 key_encryptsession(const char *remotename, des_block *deskey) in key_encryptsession() argument 179 arg.deskey = *deskey; in key_encryptsession() 188 *deskey = res.cryptkeyres_u.deskey; in key_encryptsession() 193 key_decryptsession(const char *remotename, des_block *deskey) in key_decryptsession() argument [all …]
|
H A D | key_prot_xdr.c | 79 if (!xdr_des_block(xdrs, &objp->deskey)) in xdr_cryptkeyarg() 92 if (!xdr_des_block(xdrs, &objp->deskey)) in xdr_cryptkeyarg2() 105 if (!xdr_des_block(xdrs, &objp->cryptkeyres_u.deskey)) in xdr_cryptkeyres()
|
/freebsd/usr.sbin/keyserv/ |
H A D | keyserv.c | 335 arg->remotename, arg->deskey.key.high, in key_encrypt_pk_2_svc_prog() 336 arg->deskey.key.low); in key_encrypt_pk_2_svc_prog() 338 res.cryptkeyres_u.deskey = arg->deskey; in key_encrypt_pk_2_svc_prog() 340 &res.cryptkeyres_u.deskey); in key_encrypt_pk_2_svc_prog() 344 res.cryptkeyres_u.deskey.key.high, in key_encrypt_pk_2_svc_prog() 345 res.cryptkeyres_u.deskey.key.low); in key_encrypt_pk_2_svc_prog() 361 arg->remotename, arg->deskey.key.high, in key_decrypt_pk_2_svc_prog() 362 arg->deskey.key.low); in key_decrypt_pk_2_svc_prog() 364 res.cryptkeyres_u.deskey = arg->deskey; in key_decrypt_pk_2_svc_prog() 366 &res.cryptkeyres_u.deskey); in key_decrypt_pk_2_svc_prog() [all …]
|
H A D | setkey.c | 145 des_block deskey; in pk_crypt() local 173 if (!readcache(xpublic, xsecret, &deskey)) { in pk_crypt() 182 extractdeskey(common, &deskey); in pk_crypt() 183 writecache(xpublic, xsecret, &deskey); in pk_crypt() 188 err = ecb_crypt((char *)&deskey, (char *)key, sizeof (des_block), in pk_crypt() 220 if (!readcache(xpublic, xsecret, &result->cryptkeyres_u.deskey)) { in pk_get_conv_key() 229 extractdeskey(common, &result->cryptkeyres_u.deskey); in pk_get_conv_key() 230 writecache(xpublic, xsecret, &result->cryptkeyres_u.deskey); in pk_get_conv_key() 244 extractdeskey(MINT *ck, des_block *deskey) in extractdeskey() argument 261 k = deskey->c; in extractdeskey() [all …]
|
/freebsd/crypto/heimdal/lib/gssapi/krb5/ |
H A D | unwrap.c | 55 DES_cblock deskey; in unwrap_des() local 107 memcpy (&deskey, key->keyvalue.data, sizeof(deskey)); in unwrap_des() 110 for (i = 0; i < sizeof(deskey); ++i) in unwrap_des() 111 deskey[i] ^= 0xf0; in unwrap_des() 116 memset (deskey, 0, sizeof(deskey)); in unwrap_des() 120 EVP_CipherInit_ex(des_ctx, EVP_des_cbc(), NULL, deskey, zero, 0); in unwrap_des() 124 memset (deskey, 0, sizeof(deskey)); in unwrap_des() 146 memcpy (&deskey, key->keyvalue.data, sizeof(deskey)); in unwrap_des() 147 DES_set_key_unchecked (&deskey, &schedule); in unwrap_des() 151 memset (deskey, 0, sizeof(deskey)); in unwrap_des() [all …]
|
H A D | verify_mic.c | 56 DES_cblock deskey; in verify_mic_des() local 86 memcpy (&deskey, key->keyvalue.data, sizeof(deskey)); in verify_mic_des() 88 DES_set_key_unchecked (&deskey, &schedule); in verify_mic_des() 92 memset (deskey, 0, sizeof(deskey)); in verify_mic_des() 101 memset (deskey, 0, sizeof(deskey)); in verify_mic_des() 115 memset (deskey, 0, sizeof(deskey)); in verify_mic_des()
|
H A D | wrap.c | 215 DES_cblock deskey; in wrap_des() local 280 memcpy (&deskey, key->keyvalue.data, sizeof(deskey)); in wrap_des() 281 DES_set_key_unchecked (&deskey, &schedule); in wrap_des() 288 memset (deskey, 0, sizeof(deskey)); in wrap_des() 324 memcpy (&deskey, key->keyvalue.data, sizeof(deskey)); in wrap_des() 326 for (i = 0; i < sizeof(deskey); ++i) in wrap_des() 327 deskey[i] ^= 0xf0; in wrap_des() 330 EVP_CipherInit_ex(des_ctx, EVP_des_cbc(), NULL, deskey, zero, 1); in wrap_des() 334 memset (deskey, 0, sizeof(deskey)); in wrap_des()
|
H A D | get_mic.c | 54 DES_cblock deskey; in mic_des() local 93 memcpy (&deskey, key->keyvalue.data, sizeof(deskey)); in mic_des() 94 DES_set_key_unchecked (&deskey, &schedule); in mic_des() 101 memset (deskey, 0, sizeof(deskey)); in mic_des() 134 memset (deskey, 0, sizeof(deskey)); in mic_des()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_des3.c | 227 DES_cblock *deskey = (DES_cblock *)key; in des_ede_init_key() local 236 des_t4_key_expand(&deskey[0], &dat->ks1); in des_ede_init_key() 237 des_t4_key_expand(&deskey[1], &dat->ks2); in des_ede_init_key() 245 DES_set_key_unchecked(&deskey[0], &dat->ks1); in des_ede_init_key() 246 DES_set_key_unchecked(&deskey[1], &dat->ks2); in des_ede_init_key() 254 DES_cblock *deskey = (DES_cblock *)key; in des_ede3_init_key() local 263 des_t4_key_expand(&deskey[0], &dat->ks1); in des_ede3_init_key() 264 des_t4_key_expand(&deskey[1], &dat->ks2); in des_ede3_init_key() 265 des_t4_key_expand(&deskey[2], &dat->ks3); in des_ede3_init_key() 272 DES_set_key_unchecked(&deskey[0], &dat->ks1); in des_ede3_init_key() [all …]
|
H A D | e_xcbc_d.c | 63 DES_cblock *deskey = (DES_cblock *)key; in desx_cbc_init_key() local 65 DES_set_key_unchecked(deskey, &data(ctx)->ks); in desx_cbc_init_key()
|
H A D | e_des.c | 212 DES_cblock *deskey = (DES_cblock *)key; in des_init_key() local 227 DES_set_key_unchecked(deskey, EVP_CIPHER_CTX_get_cipher_data(ctx)); in des_init_key()
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_tdes_hw.c | 27 DES_cblock *deskey = (DES_cblock *)key; in ossl_cipher_hw_tdes_ede3_initkey() local 33 des_t4_key_expand(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede3_initkey() 34 des_t4_key_expand(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede3_initkey() 35 des_t4_key_expand(&deskey[2], &tctx->ks3); in ossl_cipher_hw_tdes_ede3_initkey() 42 DES_set_key_unchecked(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede3_initkey() 43 DES_set_key_unchecked(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede3_initkey() 44 DES_set_key_unchecked(&deskey[2], &tctx->ks3); in ossl_cipher_hw_tdes_ede3_initkey()
|
H A D | cipher_tdes_default_hw.c | 27 DES_cblock *deskey = (DES_cblock *)key; in ossl_cipher_hw_tdes_ede2_initkey() local 33 des_t4_key_expand(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede2_initkey() 34 des_t4_key_expand(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede2_initkey() 42 DES_set_key_unchecked(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede2_initkey() 43 DES_set_key_unchecked(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede2_initkey()
|
H A D | cipher_tdes_common.c | 121 DES_cblock *deskey = ptr; variable 126 DES_set_odd_parity(deskey); 128 DES_set_odd_parity(deskey + 1); 130 DES_set_odd_parity(deskey + 2);
|
H A D | cipher_desx_hw.c | 31 DES_cblock *deskey = (DES_cblock *)key; in cipher_hw_desx_cbc_initkey() local 33 DES_set_key_unchecked(deskey, &tctx->ks1); in cipher_hw_desx_cbc_initkey()
|
H A D | cipher_des_hw.c | 23 DES_cblock *deskey = (DES_cblock *)key; in cipher_hw_des_initkey() local 30 des_t4_key_expand(&deskey[0], ks); in cipher_hw_des_initkey() 37 DES_set_key_unchecked(deskey, ks); in cipher_hw_des_initkey()
|
H A D | cipher_des.c | 123 DES_cblock *deskey = ptr; in des_generatekey() local 128 DES_set_odd_parity(deskey); in des_generatekey()
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | des-internal.c | 273 static void deskey(const u8 *key, int decrypt, u32 *keyout) in deskey() function 414 deskey(pkey, 0, ek); in des_encrypt() 430 deskey(key, 0, ek); in des_key_setup() 431 deskey(key, 1, dk); in des_key_setup() 459 deskey(key, 0, dkey->ek[0]); in des3_key_setup() 460 deskey(key + 8, 1, dkey->ek[1]); in des3_key_setup() 461 deskey(key + 16, 0, dkey->ek[2]); in des3_key_setup() 463 deskey(key, 1, dkey->dk[2]); in des3_key_setup() 464 deskey(key + 8, 0, dkey->dk[1]); in des3_key_setup() 465 deskey(key + 16, 1, dkey->dk[0]); in des3_key_setup()
|
/freebsd/contrib/telnet/libtelnet/ |
H A D | pk.h | 57 DesData *deskey); 58 extern void pk_encode(char *in, char *out, DesData *deskey); 59 extern void pk_decode(char *in, char *out, DesData *deskey);
|
H A D | pk.c | 87 extractdeskey(MINT *ck, DesData *deskey) in extractdeskey() argument 102 k = (char *)deskey; in extractdeskey() 115 common_key(char *xsecret, char *xpublic, IdeaData *ideakey, DesData *deskey) in common_key() argument 126 extractdeskey(common, deskey); in common_key() 128 DES_set_odd_parity(deskey); in common_key()
|
/freebsd/include/rpcsvc/ |
H A D | key_prot.x | 98 des_block deskey; member 107 des_block deskey; member 116 des_block deskey; variable
|
/freebsd/crypto/openssl/apps/ |
H A D | speed.c | 1396 static const unsigned char deskey[] = { in speed_main() 2051 loopargs[i].ctx = init_evp_cipher_ctx("des-cbc", deskey, in speed_main() 2052 sizeof(deskey) / 3); in speed_main() 2072 loopargs[i].ctx = init_evp_cipher_ctx("des-ede3-cbc", deskey, in speed_main() 2073 sizeof(deskey)); in speed_main() 1392 static const unsigned char deskey[] = { speed_main() local
|