Lines Matching refs:stp

113 ecb_encrypt(struct stinfo *stp, Block in, Block out)  in ecb_encrypt()  argument
127 code = krb5_c_encrypt(telnet_context, &stp->str_key, 0, NULL, in ecb_encrypt()
459 cfb64_stream_iv(Block seed, register struct stinfo *stp) in cfb64_stream_iv() argument
461 (void) memcpy((void *)stp->str_iv, (void *)seed, sizeof (Block)); in cfb64_stream_iv()
462 (void) memcpy((void *)stp->str_output, (void *)seed, sizeof (Block)); in cfb64_stream_iv()
464 stp->str_index = sizeof (Block); in cfb64_stream_iv()
468 cfb64_stream_key(Block key, register struct stinfo *stp) in cfb64_stream_key() argument
470 (void) memcpy((void *)stp->str_keybytes, (void *)key, sizeof (Block)); in cfb64_stream_key()
471 stp->str_key.length = DES_BLOCKSIZE; in cfb64_stream_key()
472 stp->str_key.contents = stp->str_keybytes; in cfb64_stream_key()
479 stp->str_key.enctype = ENCTYPE_DES_CBC_RAW; in cfb64_stream_key()
481 (void) memcpy((void *)stp->str_output, (void *)stp->str_iv, in cfb64_stream_key()
484 stp->str_index = sizeof (Block); in cfb64_stream_key()
512 register struct stinfo *stp = in cfb64_encrypt() local
516 index = stp->str_index; in cfb64_encrypt()
520 ecb_encrypt(stp, stp->str_output, b); in cfb64_encrypt()
521 (void) memcpy((void *)stp->str_feed, (void *)b, in cfb64_encrypt()
527 *s = stp->str_output[index] = (stp->str_feed[index] ^ *s); in cfb64_encrypt()
531 stp->str_index = index; in cfb64_encrypt()
537 register struct stinfo *stp = in cfb64_decrypt() local
547 if (stp->str_index) in cfb64_decrypt()
548 --stp->str_index; in cfb64_decrypt()
552 index = stp->str_index++; in cfb64_decrypt()
555 ecb_encrypt(stp, stp->str_output, b); in cfb64_decrypt()
556 (void) memcpy((void *)stp->str_feed, (void *)b, sizeof (Block)); in cfb64_decrypt()
557 stp->str_index = 1; /* Next time will be 1 */ in cfb64_decrypt()
562 stp->str_output[index] = data; in cfb64_decrypt()
563 return (data ^ stp->str_feed[index]); in cfb64_decrypt()