Lines Matching refs:md

43     ctx->md = ctx->head;  in cipher_hw_rc4_hmac_md5_initkey()
58 size_t md5_off = MD5_CBLOCK - ctx->md.num, blocks; in cipher_hw_rc4_hmac_md5_cipher()
77 MD5_Update(&ctx->md, in, md5_off); in cipher_hw_rc4_hmac_md5_cipher()
81 &ctx->md, in + md5_off, blocks); in cipher_hw_rc4_hmac_md5_cipher()
85 ctx->md.Nh += blocks >> 29; in cipher_hw_rc4_hmac_md5_cipher()
86 ctx->md.Nl += blocks <<= 3; in cipher_hw_rc4_hmac_md5_cipher()
87 if (ctx->md.Nl < (unsigned int)blocks) in cipher_hw_rc4_hmac_md5_cipher()
88 ctx->md.Nh++; in cipher_hw_rc4_hmac_md5_cipher()
94 MD5_Update(&ctx->md, in + md5_off, plen - md5_off); in cipher_hw_rc4_hmac_md5_cipher()
101 MD5_Final(out + plen, &ctx->md); in cipher_hw_rc4_hmac_md5_cipher()
102 ctx->md = ctx->tail; in cipher_hw_rc4_hmac_md5_cipher()
103 MD5_Update(&ctx->md, out + plen, MD5_DIGEST_LENGTH); in cipher_hw_rc4_hmac_md5_cipher()
104 MD5_Final(out + plen, &ctx->md); in cipher_hw_rc4_hmac_md5_cipher()
124 MD5_Update(&ctx->md, out, md5_off); in cipher_hw_rc4_hmac_md5_cipher()
127 &ctx->md, out + md5_off, blocks); in cipher_hw_rc4_hmac_md5_cipher()
131 l = (ctx->md.Nl + (blocks << 3)) & 0xffffffffU; in cipher_hw_rc4_hmac_md5_cipher()
132 if (l < ctx->md.Nl) in cipher_hw_rc4_hmac_md5_cipher()
133 ctx->md.Nh++; in cipher_hw_rc4_hmac_md5_cipher()
134 ctx->md.Nl = l; in cipher_hw_rc4_hmac_md5_cipher()
135 ctx->md.Nh += blocks >> 29; in cipher_hw_rc4_hmac_md5_cipher()
145 MD5_Update(&ctx->md, out + md5_off, plen - md5_off); in cipher_hw_rc4_hmac_md5_cipher()
148 MD5_Final(mac, &ctx->md); in cipher_hw_rc4_hmac_md5_cipher()
149 ctx->md = ctx->tail; in cipher_hw_rc4_hmac_md5_cipher()
150 MD5_Update(&ctx->md, mac, MD5_DIGEST_LENGTH); in cipher_hw_rc4_hmac_md5_cipher()
151 MD5_Final(mac, &ctx->md); in cipher_hw_rc4_hmac_md5_cipher()
156 MD5_Update(&ctx->md, out + md5_off, len - md5_off); in cipher_hw_rc4_hmac_md5_cipher()
184 ctx->md = ctx->head; in cipher_hw_rc4_hmac_md5_tls_init()
185 MD5_Update(&ctx->md, aad, aad_len); in cipher_hw_rc4_hmac_md5_tls_init()