MCPcopy Create free account
hub / github.com/bcgit/bc-java / addProposal

Method addProposal

mls/src/main/java/org/bouncycastle/mls/protocol/Group.java:1509–1523  ·  view source on GitHub ↗
(KeyPackage keyPackage)

Source from the content-addressed store, hash-verified

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

Callers 3

createWelcomeMethod · 0.95
createBranchMethod · 0.95
addMethod · 0.95

Calls 2

addMethod · 0.95
verifyMethod · 0.65

Tested by

no test coverage detected