Lines Matching refs:protkeytoken
1805 struct protaeskeytoken protkeytoken; in pkey_protkey_aes_attr_read() local
1809 if (off != 0 || count < sizeof(protkeytoken)) in pkey_protkey_aes_attr_read()
1812 if (count < 2 * sizeof(protkeytoken)) in pkey_protkey_aes_attr_read()
1815 memset(&protkeytoken, 0, sizeof(protkeytoken)); in pkey_protkey_aes_attr_read()
1816 protkeytoken.type = TOKTYPE_NON_CCA; in pkey_protkey_aes_attr_read()
1817 protkeytoken.version = TOKVER_PROTECTED_KEY; in pkey_protkey_aes_attr_read()
1818 protkeytoken.keytype = keytype; in pkey_protkey_aes_attr_read()
1821 rc = pkey_genprotkey(protkeytoken.keytype, in pkey_protkey_aes_attr_read()
1826 protkeytoken.len = protkey.len; in pkey_protkey_aes_attr_read()
1827 memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len); in pkey_protkey_aes_attr_read()
1829 memcpy(buf, &protkeytoken, sizeof(protkeytoken)); in pkey_protkey_aes_attr_read()
1834 rc = pkey_genprotkey(protkeytoken.keytype, in pkey_protkey_aes_attr_read()
1839 protkeytoken.len = protkey.len; in pkey_protkey_aes_attr_read()
1840 memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len); in pkey_protkey_aes_attr_read()
1842 memcpy(buf + sizeof(protkeytoken), &protkeytoken, in pkey_protkey_aes_attr_read()
1843 sizeof(protkeytoken)); in pkey_protkey_aes_attr_read()
1845 return 2 * sizeof(protkeytoken); in pkey_protkey_aes_attr_read()
1848 return sizeof(protkeytoken); in pkey_protkey_aes_attr_read()