.iem.BouncyCastle.3.1.3.source-code.RSAEngine.crysl Maven / Gradle / Ivy
The newest version!
SPEC org.bouncycastle.crypto.engines.RSAEngine
OBJECTS
org.bouncycastle.crypto.CipherParameters params;
boolean isEncryption;
byte[] cipherText;
byte[] plainText;
int plainTextLen;
int plainTextOffset;
EVENTS
c1: RSAEngine();
Con := c1;
i1: init(isEncryption, params);
Init := i1;
p1: cipherText = processBlock(plainText, plainTextOffset, plainTextLen);
Process := p1;
ORDER
Con, (Init, Process)+
CONSTRAINTS
length[plainText] >= plainTextOffset + plainTextLen;
plainTextOffset >= 0;
plainTextLen > 0;
REQUIRES
generatedRSAKeyParameters[params] || generatedRSAPrivateCrtKeyParameters[params] || generatedECPublicKeyParameters[params];
ENSURES
generatedRSAEngine[this] after Con;
encrypted[cipherText] after Process;