Lines Matching defs:stp
112 ecb_encrypt(struct stinfo *stp, Block in, Block out)
126 code = krb5_c_encrypt(telnet_context, &stp->str_key, NULL, NULL,
458 cfb64_stream_iv(Block seed, register struct stinfo *stp)
460 (void) memcpy((void *)stp->str_iv, (void *)seed, sizeof (Block));
461 (void) memcpy((void *)stp->str_output, (void *)seed, sizeof (Block));
463 stp->str_index = sizeof (Block);
467 cfb64_stream_key(Block key, register struct stinfo *stp)
469 (void) memcpy((void *)stp->str_keybytes, (void *)key, sizeof (Block));
470 stp->str_key.length = DES_BLOCKSIZE;
471 stp->str_key.contents = stp->str_keybytes;
478 stp->str_key.enctype = ENCTYPE_DES_CBC_RAW;
480 (void) memcpy((void *)stp->str_output, (void *)stp->str_iv,
483 stp->str_index = sizeof (Block);
511 register struct stinfo *stp =
515 index = stp->str_index;
519 ecb_encrypt(stp, stp->str_output, b);
520 (void) memcpy((void *)stp->str_feed, (void *)b,
526 *s = stp->str_output[index] = (stp->str_feed[index] ^ *s);
530 stp->str_index = index;
536 register struct stinfo *stp =
546 if (stp->str_index)
547 --stp->str_index;
551 index = stp->str_index++;
554 ecb_encrypt(stp, stp->str_output, b);
555 (void) memcpy((void *)stp->str_feed, (void *)b, sizeof (Block));
556 stp->str_index = 1; /* Next time will be 1 */
561 stp->str_output[index] = data;
562 return (data ^ stp->str_feed[index]);