Lines Matching +full:32 +full:kb
361 keysize = 32; in cca_genseckey()
500 keysize = 32; in cca_clr2seckey()
613 u8 keyattr[32]; in cca_sec2protkey()
616 u8 vp[32]; /* verification pattern */ in cca_sec2protkey()
689 case 16 + 32: in cca_sec2protkey()
694 case 24 + 32: in cca_sec2protkey()
699 case 32 + 32: in cca_sec2protkey()
796 } kb; in cca_gencipherkey() member
811 } kb; in cca_gencipherkey() member
847 /* prepare kb block */ in cca_gencipherkey()
848 preqparm->kb.len = sizeof(preqparm->kb); in cca_gencipherkey()
849 preqparm->kb.tlv1.len = sizeof(preqparm->kb.tlv1); in cca_gencipherkey()
850 preqparm->kb.tlv1.flag = 0x0030; in cca_gencipherkey()
851 preqparm->kb.tlv2.len = sizeof(preqparm->kb.tlv2); in cca_gencipherkey()
852 preqparm->kb.tlv2.flag = 0x0030; in cca_gencipherkey()
853 preqparm->kb.tlv3.len = sizeof(preqparm->kb.tlv3); in cca_gencipherkey()
854 preqparm->kb.tlv3.flag = 0x0030; in cca_gencipherkey()
855 memcpy(preqparm->kb.tlv3.gen_key_id_1, in cca_gencipherkey()
857 preqparm->kb.tlv4.len = sizeof(preqparm->kb.tlv4); in cca_gencipherkey()
858 preqparm->kb.tlv4.flag = 0x0030; in cca_gencipherkey()
859 preqparm->kb.tlv5.len = sizeof(preqparm->kb.tlv5); in cca_gencipherkey()
860 preqparm->kb.tlv5.flag = 0x0030; in cca_gencipherkey()
861 preqparm->kb.tlv6.len = sizeof(preqparm->kb.tlv6); in cca_gencipherkey()
862 preqparm->kb.tlv6.flag = 0x0030; in cca_gencipherkey()
864 /* patch the skeleton key token export flags inside the kb block */ in cca_gencipherkey()
866 t = (struct cipherkeytoken *)preqparm->kb.tlv3.gen_key_id_1; 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()
986 } kb; in _ip_cprb_helper() member
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()
1093 u8 exorbuf[32]; in cca_clr2cipherkey()
1191 } kb; in cca_cipher2protkey() member
1209 u8 keyattr[32]; in cca_cipher2protkey()
1212 u8 vp[32]; /* verification pattern */ in cca_cipher2protkey()
1217 } kb; in cca_cipher2protkey() member
1241 /* kb, cca token */ in cca_cipher2protkey()
1242 preqparm->kb.len = keytoklen + 3 * sizeof(uint16_t); in cca_cipher2protkey()
1243 preqparm->kb.cca_key_token_len = keytoklen + 2 * sizeof(uint16_t); in cca_cipher2protkey()
1244 memcpy(preqparm->kb.cca_key_token, ckey, keytoklen); in cca_cipher2protkey()
1300 case 16 + 32: in cca_cipher2protkey()
1305 case 24 + 32: in cca_cipher2protkey()
1310 case 32 + 32: in cca_cipher2protkey()
1356 } kb; in cca_ecc2protkey() member
1374 /* u8 keyattr[32]; */ in cca_ecc2protkey()
1377 /* u8 vp[32]; verification pattern */ in cca_ecc2protkey()
1404 /* kb, cca token */ in cca_ecc2protkey()
1405 preqparm->kb.len = keylen + 3 * sizeof(uint16_t); in cca_ecc2protkey()
1406 preqparm->kb.cca_key_token_len = keylen + 2 * sizeof(uint16_t); in cca_ecc2protkey()
1407 memcpy(preqparm->kb.cca_key_token, key, keylen); in cca_ecc2protkey()