Lines Matching refs:mech
35 smb3_sha512_getmech(smb_crypto_mech_t *mech) in smb3_sha512_getmech() argument
44 mech->cm_type = t; in smb3_sha512_getmech()
54 smb_crypto_mech_t *mech; in smb31_preauth_init_mech() local
62 mech = kmem_zalloc(sizeof (*mech), KM_SLEEP); in smb31_preauth_init_mech()
63 rc = smb3_sha512_getmech(mech); in smb31_preauth_init_mech()
65 kmem_free(mech, sizeof (*mech)); in smb31_preauth_init_mech()
68 s->preauth_mech = mech; in smb31_preauth_init_mech()
74 smb_crypto_mech_t *mech; in smb31_preauth_fini() local
76 if ((mech = s->preauth_mech) != NULL) { in smb31_preauth_fini()
77 kmem_free(mech, sizeof (*mech)); in smb31_preauth_fini()
86 smb_sha512_init(smb_sign_ctx_t *ctxp, smb_crypto_mech_t *mech) in smb_sha512_init() argument
90 rv = crypto_digest_init(mech, ctxp, NULL); in smb_sha512_init()