Lines Matching refs:encr_data

214 static telnet_enc_data_t  encr_data;  variable
366 encr_data.encrypt.autoflag = 0; in auth_finished()
757 encrypt_session_key(&skey, &encr_data.encrypt); in kerberos5_is()
758 encrypt_session_key(&skey, &encr_data.decrypt); in kerberos5_is()
1000 (void) memset(&encr_data.encrypt, 0, sizeof (cipher_info_t)); in encrypt_init()
1001 (void) memset(&encr_data.decrypt, 0, sizeof (cipher_info_t)); in encrypt_init()
1003 encr_data.encrypt.state = ENCR_STATE_NOT_READY; in encrypt_init()
1004 encr_data.decrypt.state = ENCR_STATE_NOT_READY; in encrypt_init()
1029 (void) memcpy(p, encr_data.decrypt.keyid, encr_data.decrypt.keyidlen); in encrypt_send_request_start()
1030 p += encr_data.decrypt.keyidlen; in encrypt_send_request_start()
1085 encr_data.decrypt.type = type; in encrypt_is()
1087 lstate = encr_data.decrypt.state; in encrypt_is()
1105 (void) memcpy(encr_data.decrypt.ivec, data, in encrypt_is()
1111 encr_data.decrypt.type = type; in encrypt_is()
1120 encr_data.decrypt.type = NULL; in encrypt_is()
1155 encr_data.decrypt.state = lstate; in encrypt_is()
1158 encr_data.decrypt.autoflag = 0; in encrypt_is()
1160 if (lstate == ENCR_STATE_OK && encr_data.decrypt.autoflag) in encrypt_is()
1166 encr_data.decrypt.state); in encrypt_is()
1183 lstate = encr_data.encrypt.state; in encrypt_send_encrypt_is()
1185 if (encr_data.encrypt.type == ENCTYPE_NULL) { in encrypt_send_encrypt_is()
1214 if (!VALIDKEY(encr_data.encrypt.krbdes_key)) { in encrypt_send_encrypt_is()
1219 encr_data.encrypt.need_start = 1; in encrypt_send_encrypt_is()
1236 kret = getrandom((char *)encr_data.encrypt.ivec, sizeof (Block)); in encrypt_send_encrypt_is()
1244 encr_data.encrypt.type = ENCTYPE_NULL; in encrypt_send_encrypt_is()
1246 mit_des_fixup_key_parity(encr_data.encrypt.ivec); in encrypt_send_encrypt_is()
1254 *p++ = encr_data.encrypt.type; in encrypt_send_encrypt_is()
1263 if ((*p++ = encr_data.encrypt.ivec[i]) == IAC) in encrypt_send_encrypt_is()
1275 encr_data.encrypt.state = lstate; in encrypt_send_encrypt_is()
1281 encr_data.encrypt.type); in encrypt_send_encrypt_is()
1371 (void) memcpy(p, encr_data.encrypt.keyid, encr_data.encrypt.keyidlen); in encrypt_start_output()
1372 p += encr_data.encrypt.keyidlen; in encrypt_start_output()
1384 (int)encr_data.encrypt.keyid[0], in encrypt_start_output()
1387 encr_data.encrypt.state = lstate; in encrypt_start_output()
1396 if (encr_data.encrypt.type == TELOPT_ENCTYPE_DES_CFB64) { in encrypt_start_output()
1403 encr_data.encrypt.type); in encrypt_start_output()
1405 encr_data.encrypt.type); in encrypt_start_output()
1416 if (encr_data.encrypt.setup == cki.crypto_method) { in encrypt_start_output()
1421 (void) memcpy(cki.key, (void *)encr_data.encrypt.krbdes_key, in encrypt_start_output()
1425 (void) memcpy(cki.ivec, (void *)encr_data.encrypt.ivec, in encrypt_start_output()
1445 encr_data.encrypt.setup = cki.crypto_method; in encrypt_start_output()
1472 if (encr_data.encrypt.type == ENCTYPE_NULL) { in encrypt_request_start()
1473 encr_data.encrypt.autoflag = 1; in encrypt_request_start()
1589 if (encr_data.decrypt.type == ENCTYPE_NULL) { in encrypt_start()
1600 if (encr_data.decrypt.type == TELOPT_ENCTYPE_DES_CFB64) { in encrypt_start()
1606 "crypto_method %d\n", encr_data.decrypt.type); in encrypt_start()
1609 encr_data.decrypt.type); in encrypt_start()
1617 if (encr_data.decrypt.setup != cki.crypto_method) { in encrypt_start()
1618 (void) memcpy(cki.key, (void *)encr_data.decrypt.krbdes_key, in encrypt_start()
1620 (void) memcpy(cki.ivec, (void *)encr_data.decrypt.ivec, in encrypt_start()
1643 encr_data.decrypt.setup = cki.crypto_method; in encrypt_start()
1698 ENCTYPE_NAME(encr_data.decrypt.type)); in encrypt_start()
1735 encr_data.encrypt.type = use_type; in encrypt_support()
1804 (void) memcpy(encr_data.encrypt.keyid, keyid, keylen); in encrypt_send_keyid()
1805 encr_data.encrypt.keyidlen = keylen; in encrypt_send_keyid()
1807 (void) memcpy(encr_data.decrypt.keyid, keyid, keylen); in encrypt_send_keyid()
1808 encr_data.decrypt.keyidlen = keylen; in encrypt_send_keyid()
1852 lstate = encr_data.encrypt.state; in encrypt_reply()
1878 (void) memset(encr_data.encrypt.ivec, 0, sizeof (Block)); in encrypt_reply()
1890 encr_data.encrypt.state = lstate; in encrypt_reply()
1892 encr_data.encrypt.autoflag = 0; in encrypt_reply()
1893 encr_data.encrypt.type = ENCTYPE_NULL; in encrypt_reply()
1899 encr_data.encrypt.type = type; in encrypt_reply()
1900 if ((lstate == ENCR_STATE_OK) && encr_data.encrypt.autoflag) in encrypt_reply()
1915 lstate = (dir == TELNET_DIR_ENCRYPT ? encr_data.encrypt.state : in encrypt_set_keyid_state()
1916 encr_data.decrypt.state); in encrypt_set_keyid_state()
1955 encr_data.encrypt.state = lstate; in encrypt_set_keyid_state()
1957 encr_data.decrypt.state = lstate; in encrypt_set_keyid_state()
2012 (dir == TELNET_DIR_ENCRYPT ? encr_data.encrypt.state: in encrypt_keyid()
2013 encr_data.decrypt.state), in encrypt_keyid()
2015 encr_data.encrypt.autoflag: in encrypt_keyid()
2016 encr_data.decrypt.autoflag)); in encrypt_keyid()
2019 if ((encr_data.encrypt.state == ENCR_STATE_OK) && in encrypt_keyid()
2020 dir == TELNET_DIR_ENCRYPT && encr_data.encrypt.autoflag) { in encrypt_keyid()
2031 encr_data.encrypt.state : in encrypt_keyid()
2032 encr_data.decrypt.state)); in encrypt_keyid()
2050 encrypt_keyid(encr_data.decrypt.keyid, &encr_data.decrypt.keyidlen, in encrypt_enc_keyid()
2063 encrypt_keyid(encr_data.encrypt.keyid, &encr_data.encrypt.keyidlen, in encrypt_dec_keyid()
2658 encr_data.encrypt.autoflag && in getterminaltype()
2659 encr_data.encrypt.state != ENCR_STATE_OK) { in getterminaltype()
2667 encr_data.encrypt.state == ENCR_STATE_OK ? "" : "not "); in getterminaltype()