tu.crossing.JavaCryptographicArchitecture.3.1.2.source-code.KeyPair.crysl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaCryptographicArchitecture
Show all versions of JavaCryptographicArchitecture
JavaCryptographicArchitecture CrySL ruleset
The newest version!
SPEC java.security.KeyPair
OBJECTS
java.security.PrivateKey privateKey;
java.security.PublicKey publicKey;
java.security.PrivateKey retPrivateKey;
java.security.PublicKey retPublicKey;
EVENTS
c1: KeyPair(publicKey, privateKey);
Con := c1;
gpu1: retPublicKey = getPublic();
GetPubl := gpu1;
gpr1: retPrivateKey = getPrivate();
GetPriv := gpr1;
ORDER
Con, (GetPubl | GetPriv)*
REQUIRES
generatedPrivkey[privateKey];
generatedPubkey[publicKey];
noCallTo[Con] => generatedKeypair[this, _];
ENSURES
generatedKeypair[this, _] after Con;
generatedPubkey[retPublicKey] after GetPubl;
generatedPrivkey[retPrivateKey] after GetPriv;