Lines Matching refs:protkeytoken

53 	struct protaeskeytoken protkeytoken;  in pkey_protkey_aes_attr_read()  local
57 if (off != 0 || count < sizeof(protkeytoken)) in pkey_protkey_aes_attr_read()
60 if (count < 2 * sizeof(protkeytoken)) in pkey_protkey_aes_attr_read()
63 memset(&protkeytoken, 0, sizeof(protkeytoken)); in pkey_protkey_aes_attr_read()
64 protkeytoken.type = TOKTYPE_NON_CCA; in pkey_protkey_aes_attr_read()
65 protkeytoken.version = TOKVER_PROTECTED_KEY; in pkey_protkey_aes_attr_read()
66 protkeytoken.keytype = keytype; in pkey_protkey_aes_attr_read()
75 protkeytoken.len = protkey.len; in pkey_protkey_aes_attr_read()
76 memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len); in pkey_protkey_aes_attr_read()
78 memcpy(buf, &protkeytoken, sizeof(protkeytoken)); in pkey_protkey_aes_attr_read()
89 protkeytoken.len = protkey.len; in pkey_protkey_aes_attr_read()
90 memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len); in pkey_protkey_aes_attr_read()
92 memcpy(buf + sizeof(protkeytoken), &protkeytoken, in pkey_protkey_aes_attr_read()
93 sizeof(protkeytoken)); in pkey_protkey_aes_attr_read()
95 return 2 * sizeof(protkeytoken); in pkey_protkey_aes_attr_read()
98 return sizeof(protkeytoken); in pkey_protkey_aes_attr_read()
110 struct protkeytoken *t = (struct protkeytoken *)buf; in pkey_protkey_aes_xts_attr_read()
152 struct protkeytoken *t = (struct protkeytoken *)buf; in pkey_protkey_hmac_attr_read()
280 static BIN_ATTR_RO(protkey_aes_xts_128, sizeof(struct protkeytoken) + 64);
281 static BIN_ATTR_RO(protkey_aes_xts_256, sizeof(struct protkeytoken) + 96);
282 static BIN_ATTR_RO(protkey_hmac_512, sizeof(struct protkeytoken) + 96);
283 static BIN_ATTR_RO(protkey_hmac_1024, sizeof(struct protkeytoken) + 160);