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

Method protect

mls/src/main/java/org/bouncycastle/mls/protocol/Group.java:1212–1224  ·  view source on GitHub ↗
(byte[] applicationData, byte[] pt, int paddingSize)

Source from the content-addressed store, hash-verified

1210 }
1211
1212 public MLSMessage protect(byte[] applicationData, byte[] pt, int paddingSize)
1213 throws Exception
1214 {
1215 Group.MessageOptions msgOptions = new Group.MessageOptions(true, applicationData, paddingSize);
1216
1217 AuthenticatedContent contentAuth = sign(
1218 Sender.forMember(index),
1219 pt,
1220 msgOptions.authenticatedData,
1221 msgOptions.encrypt
1222 );
1223 return protect(contentAuth, msgOptions.paddingSize);
1224 }
1225
1226 public byte[][] unprotect(MLSMessage ct)
1227 throws Exception

Callers 7

commitMethod · 0.95
addMethod · 0.95
updateMethod · 0.95
removeMethod · 0.95
reinitMethod · 0.95
preSharedKeyMethod · 0.95

Calls 8

signMethod · 0.95
forMemberMethod · 0.95
protectMethod · 0.95
encodeMethod · 0.95
getGroupContextMethod · 0.95
protectMethod · 0.95
getWireFormatMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected