Lines Matching refs:prepparm
337 } __packed * prepparm; in cca_genseckey() local
407 prepparm = (struct kgrepparm *)ptr; in cca_genseckey()
410 seckeysize = prepparm->lv3.keyblock.toklen in cca_genseckey()
411 - sizeof(prepparm->lv3.keyblock.toklen) in cca_genseckey()
412 - sizeof(prepparm->lv3.keyblock.tokattr); in cca_genseckey()
422 prepparm->lv3.keyblock.tok, 8 * keysize); in cca_genseckey()
429 memcpy(seckey, prepparm->lv3.keyblock.tok, SECKEYBLOBSIZE); in cca_genseckey()
478 } __packed * prepparm; in cca_clr2seckey() local
545 prepparm = (struct cmrepparm *)ptr; in cca_clr2seckey()
548 seckeysize = prepparm->lv3.keyblock.toklen in cca_clr2seckey()
549 - sizeof(prepparm->lv3.keyblock.toklen) in cca_clr2seckey()
550 - sizeof(prepparm->lv3.keyblock.tokattr); in cca_clr2seckey()
560 prepparm->lv3.keyblock.tok, 8 * keysize); in cca_clr2seckey()
568 memcpy(seckey, prepparm->lv3.keyblock.tok, SECKEYBLOBSIZE); in cca_clr2seckey()
624 } __packed * prepparm; in cca_sec2protkey() local
681 prepparm = (struct uskrepparm *)ptr; in cca_sec2protkey()
684 if (prepparm->lv3.ckb.version != 0x01 && in cca_sec2protkey()
685 prepparm->lv3.ckb.version != 0x02) { in cca_sec2protkey()
687 __func__, (int)prepparm->lv3.ckb.version); in cca_sec2protkey()
693 switch (prepparm->lv3.ckb.len) { in cca_sec2protkey()
711 __func__, prepparm->lv3.ckb.len); in cca_sec2protkey()
715 memcpy(protkey, prepparm->lv3.ckb.key, prepparm->lv3.ckb.len); in cca_sec2protkey()
717 *protkeylen = prepparm->lv3.ckb.len; in cca_sec2protkey()
817 } __packed * prepparm; in cca_gencipherkey() local
903 prepparm = (struct gkrepparm *)ptr; in cca_gencipherkey()
906 if (prepparm->kb.len < 120 + 5 * sizeof(uint16_t) || in cca_gencipherkey()
907 prepparm->kb.len > 136 + 5 * sizeof(uint16_t)) { in cca_gencipherkey()
916 prepparm->kb.tlv1.gen_key, in cca_gencipherkey()
924 t = (struct cipherkeytoken *)prepparm->kb.tlv1.gen_key; in cca_gencipherkey()
995 } __packed * prepparm; in _ip_cprb_helper() local
1071 prepparm = (struct iprepparm *)ptr; in _ip_cprb_helper()
1074 if (prepparm->kb.len < 120 + 3 * sizeof(uint16_t) || in _ip_cprb_helper()
1075 prepparm->kb.len > 136 + 3 * sizeof(uint16_t)) { in _ip_cprb_helper()
1085 t = (struct cipherkeytoken *)prepparm->kb.tlv1.key_token; in _ip_cprb_helper()
1232 } __packed * prepparm; in cca_cipher2protkey() local
1298 prepparm = (struct aurepparm *)ptr; in cca_cipher2protkey()
1301 if (prepparm->vud.ckb.version != 0x01 && in cca_cipher2protkey()
1302 prepparm->vud.ckb.version != 0x02) { in cca_cipher2protkey()
1304 __func__, (int)prepparm->vud.ckb.version); in cca_cipher2protkey()
1308 if (prepparm->vud.ckb.algo != 0x02) { in cca_cipher2protkey()
1311 __func__, (int)prepparm->vud.ckb.algo); in cca_cipher2protkey()
1317 switch (prepparm->vud.ckb.keylen) { in cca_cipher2protkey()
1335 __func__, prepparm->vud.ckb.keylen); in cca_cipher2protkey()
1339 memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); in cca_cipher2protkey()
1341 *protkeylen = prepparm->vud.ckb.keylen; in cca_cipher2protkey()
1399 } __packed * prepparm; in cca_ecc2protkey() local
1465 prepparm = (struct aurepparm *)ptr; in cca_ecc2protkey()
1468 if (prepparm->vud.ckb.version != 0x02) { in cca_ecc2protkey()
1470 __func__, (int)prepparm->vud.ckb.version); in cca_ecc2protkey()
1474 if (prepparm->vud.ckb.algo != 0x81) { in cca_ecc2protkey()
1477 __func__, (int)prepparm->vud.ckb.algo); in cca_ecc2protkey()
1483 if (prepparm->vud.ckb.keylen > *protkeylen) { in cca_ecc2protkey()
1485 __func__, prepparm->vud.ckb.keylen, *protkeylen); in cca_ecc2protkey()
1489 memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); in cca_ecc2protkey()
1490 *protkeylen = prepparm->vud.ckb.keylen; in cca_ecc2protkey()
1527 } __packed * prepparm; in cca_query_crypto_facility() local
1571 prepparm = (struct fqrepparm *)ptr; in cca_query_crypto_facility()
1572 ptr = prepparm->lvdata; in cca_query_crypto_facility()