(KeyPackage keyPackage)
| 1507 | } |
| 1508 | |
| 1509 | private Proposal addProposal(KeyPackage keyPackage) |
| 1510 | throws Exception |
| 1511 | { |
| 1512 | //TODO: Check that validity of the signed key package |
| 1513 | if (!keyPackage.verify()) |
| 1514 | { |
| 1515 | throw new Exception("Invalid signature on key package"); |
| 1516 | } |
| 1517 | |
| 1518 | //TODO: Check if the Key Package supports the group (capabilities) |
| 1519 | |
| 1520 | //TODO: Check if the Key Package supports the group extensions |
| 1521 | |
| 1522 | return Proposal.add(keyPackage); |
| 1523 | } |
| 1524 | |
| 1525 | private MLSMessage protect(AuthenticatedContent contentAuth, int paddingSize) |
| 1526 | throws Exception |
no test coverage detected