Lines Matching refs:prepparm

332 	} __packed * prepparm;  in cca_genseckey()  local
402 prepparm = (struct kgrepparm *)ptr; in cca_genseckey()
405 seckeysize = prepparm->lv3.keyblock.toklen in cca_genseckey()
406 - sizeof(prepparm->lv3.keyblock.toklen) in cca_genseckey()
407 - sizeof(prepparm->lv3.keyblock.tokattr); in cca_genseckey()
417 prepparm->lv3.keyblock.tok, 8 * keysize); in cca_genseckey()
424 memcpy(seckey, prepparm->lv3.keyblock.tok, SECKEYBLOBSIZE); in cca_genseckey()
473 } __packed * prepparm; in cca_clr2seckey() local
540 prepparm = (struct cmrepparm *)ptr; in cca_clr2seckey()
543 seckeysize = prepparm->lv3.keyblock.toklen in cca_clr2seckey()
544 - sizeof(prepparm->lv3.keyblock.toklen) in cca_clr2seckey()
545 - sizeof(prepparm->lv3.keyblock.tokattr); in cca_clr2seckey()
555 prepparm->lv3.keyblock.tok, 8 * keysize); in cca_clr2seckey()
563 memcpy(seckey, prepparm->lv3.keyblock.tok, SECKEYBLOBSIZE); in cca_clr2seckey()
619 } __packed * prepparm; in cca_sec2protkey() local
676 prepparm = (struct uskrepparm *)ptr; in cca_sec2protkey()
679 if (prepparm->lv3.ckb.version != 0x01 && in cca_sec2protkey()
680 prepparm->lv3.ckb.version != 0x02) { in cca_sec2protkey()
682 __func__, (int)prepparm->lv3.ckb.version); in cca_sec2protkey()
688 switch (prepparm->lv3.ckb.len) { in cca_sec2protkey()
706 __func__, prepparm->lv3.ckb.len); in cca_sec2protkey()
710 memcpy(protkey, prepparm->lv3.ckb.key, prepparm->lv3.ckb.len); in cca_sec2protkey()
712 *protkeylen = prepparm->lv3.ckb.len; in cca_sec2protkey()
812 } __packed * prepparm; in cca_gencipherkey() local
895 prepparm = (struct gkrepparm *)ptr; in cca_gencipherkey()
898 if (prepparm->kb.len < 120 + 5 * sizeof(uint16_t) || in cca_gencipherkey()
899 prepparm->kb.len > 136 + 5 * sizeof(uint16_t)) { in cca_gencipherkey()
908 prepparm->kb.tlv1.gen_key, in cca_gencipherkey()
916 t = (struct cipherkeytoken *)prepparm->kb.tlv1.gen_key; in cca_gencipherkey()
987 } __packed * prepparm; in _ip_cprb_helper() local
1061 prepparm = (struct iprepparm *)ptr; in _ip_cprb_helper()
1064 if (prepparm->kb.len < 120 + 3 * sizeof(uint16_t) || in _ip_cprb_helper()
1065 prepparm->kb.len > 136 + 3 * sizeof(uint16_t)) { in _ip_cprb_helper()
1075 t = (struct cipherkeytoken *)prepparm->kb.tlv1.key_token; in _ip_cprb_helper()
1218 } __packed * prepparm; in cca_cipher2protkey() local
1281 prepparm = (struct aurepparm *)ptr; in cca_cipher2protkey()
1284 if (prepparm->vud.ckb.version != 0x01 && in cca_cipher2protkey()
1285 prepparm->vud.ckb.version != 0x02) { in cca_cipher2protkey()
1287 __func__, (int)prepparm->vud.ckb.version); in cca_cipher2protkey()
1291 if (prepparm->vud.ckb.algo != 0x02) { in cca_cipher2protkey()
1293 __func__, (int)prepparm->vud.ckb.algo); in cca_cipher2protkey()
1299 switch (prepparm->vud.ckb.keylen) { in cca_cipher2protkey()
1317 __func__, prepparm->vud.ckb.keylen); in cca_cipher2protkey()
1321 memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); in cca_cipher2protkey()
1323 *protkeylen = prepparm->vud.ckb.keylen; in cca_cipher2protkey()
1381 } __packed * prepparm; in cca_ecc2protkey() local
1444 prepparm = (struct aurepparm *)ptr; in cca_ecc2protkey()
1447 if (prepparm->vud.ckb.version != 0x02) { in cca_ecc2protkey()
1449 __func__, (int)prepparm->vud.ckb.version); in cca_ecc2protkey()
1453 if (prepparm->vud.ckb.algo != 0x81) { in cca_ecc2protkey()
1455 __func__, (int)prepparm->vud.ckb.algo); in cca_ecc2protkey()
1461 if (prepparm->vud.ckb.keylen > *protkeylen) { in cca_ecc2protkey()
1463 __func__, prepparm->vud.ckb.keylen, *protkeylen); in cca_ecc2protkey()
1467 memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); in cca_ecc2protkey()
1468 *protkeylen = prepparm->vud.ckb.keylen; in cca_ecc2protkey()
1505 } __packed * prepparm; in cca_query_crypto_facility() local
1549 prepparm = (struct fqrepparm *)ptr; in cca_query_crypto_facility()
1550 ptr = prepparm->lvdata; in cca_query_crypto_facility()