Lines Matching defs:ctx
3386 gss_digest_Init(GSS_DIGEST_CTX *ctx, gss_key_info *ki)
3388 ctx->type = ki->type;
3390 case NFS_GSS_1DES: MD5_DESCBC_Init(&ctx->m_ctx, &ki->ks_u.des.gss_sched);
3392 case NFS_GSS_3DES: HMAC_SHA1_DES3KD_Init(&ctx->h_ctx, ki->ks_u.des3.ckey, 0);
3400 gss_digest_Update(GSS_DIGEST_CTX *ctx, void *data, size_t len)
3402 switch (ctx->type) {
3403 case NFS_GSS_1DES: MD5_DESCBC_Update(&ctx->m_ctx, data, len);
3405 case NFS_GSS_3DES: HMAC_SHA1_DES3KD_Update(&ctx->h_ctx, data, len);
3411 gss_digest_Final(GSS_DIGEST_CTX *ctx, void *digest)
3413 switch (ctx->type) {
3414 case NFS_GSS_1DES: MD5_DESCBC_Final(digest, &ctx->m_ctx);
3416 case NFS_GSS_3DES: HMAC_SHA1_DES3KD_Final(digest, &ctx->h_ctx);