Lines Matching refs:ctx
233 CipherContextBF *ctx,
241 CipherContextBF *ctx,
250 CipherContextBF *ctx,
259 CipherContextBF *ctx,
268 CipherContextBF *ctx,
657 CipherContextBF *ctx, in __rtl_cipherBF_init() argument
666 key = &(ctx->m_key); in __rtl_cipherBF_init()
669 rtl_zeroMemory (&(ctx->m_iv), sizeof(ctx->m_iv)); in __rtl_cipherBF_init()
670 ctx->m_offset = 0; in __rtl_cipherBF_init()
710 rtl_copyMemory (ctx->m_iv.m_byte, pArgData, nArgLen); in __rtl_cipherBF_init()
715 ctx->m_iv.m_long[0] = DL; in __rtl_cipherBF_init()
716 ctx->m_iv.m_long[1] = DR; in __rtl_cipherBF_init()
728 CipherContextBF *ctx, in __rtl_cipherBF_update() argument
747 __rtl_cipherBF_updateECB (ctx, eDirection, pData, pBuffer, 8); in __rtl_cipherBF_update()
752 __rtl_cipherBF_updateECB (ctx, eDirection, pData, pBuffer, nDatLen); in __rtl_cipherBF_update()
759 __rtl_cipherBF_updateCBC (ctx, eDirection, pData, pBuffer, 8); in __rtl_cipherBF_update()
764 __rtl_cipherBF_updateCBC (ctx, eDirection, pData, pBuffer, nDatLen); in __rtl_cipherBF_update()
771 __rtl_cipherBF_updateCFB (ctx, eDirection, pData, pBuffer); in __rtl_cipherBF_update()
784 CipherContextBF *ctx, in __rtl_cipherBF_updateECB() argument
793 key = &(ctx->m_key); in __rtl_cipherBF_updateECB()
819 CipherContextBF *ctx, in __rtl_cipherBF_updateCBC() argument
828 key = &(ctx->m_key); in __rtl_cipherBF_updateCBC()
833 DL ^= ctx->m_iv.m_long[0]; in __rtl_cipherBF_updateCBC()
834 DR ^= ctx->m_iv.m_long[1]; in __rtl_cipherBF_updateCBC()
838 ctx->m_iv.m_long[0] = DL; in __rtl_cipherBF_updateCBC()
839 ctx->m_iv.m_long[1] = DR; in __rtl_cipherBF_updateCBC()
856 DL ^= ctx->m_iv.m_long[0]; in __rtl_cipherBF_updateCBC()
857 DR ^= ctx->m_iv.m_long[1]; in __rtl_cipherBF_updateCBC()
859 ctx->m_iv.m_long[0] = IVL; in __rtl_cipherBF_updateCBC()
860 ctx->m_iv.m_long[1] = IVR; in __rtl_cipherBF_updateCBC()
872 CipherContextBF *ctx, in __rtl_cipherBF_updateCFB() argument
880 iv = ctx->m_iv.m_byte; in __rtl_cipherBF_updateCFB()
881 k = ctx->m_offset; in __rtl_cipherBF_updateCFB()
888 __rtl_cipherBF_encode (&(ctx->m_key), &IVL, &IVR); in __rtl_cipherBF_updateCFB()
907 ctx->m_offset = ((k + 1) & 0x07); in __rtl_cipherBF_updateCFB()
1154 ContextARCFOUR_Impl *ctx,
1162 ContextARCFOUR_Impl *ctx, in rtl_cipherARCFOUR_init_Impl() argument
1170 S = &(ctx->m_S[0]); in rtl_cipherARCFOUR_init_Impl()
1192 ctx->m_X = 0; in rtl_cipherARCFOUR_init_Impl()
1193 ctx->m_Y = 0; in rtl_cipherARCFOUR_init_Impl()
1202 ContextARCFOUR_Impl *ctx, in rtl_cipherARCFOUR_update_Impl() argument
1218 S = &(ctx->m_S[0]); in rtl_cipherARCFOUR_update_Impl()
1222 x = ctx->m_X; in rtl_cipherARCFOUR_update_Impl()
1223 y = ctx->m_Y; in rtl_cipherARCFOUR_update_Impl()
1226 ctx->m_X = x; in rtl_cipherARCFOUR_update_Impl()
1227 ctx->m_Y = y; in rtl_cipherARCFOUR_update_Impl()