@@ -665,10 +665,11 @@ public void do_CCM_delete() throws OCKException {
665665 }
666666
667667 @ Override
668- public int RSACIPHER_public_encrypt (long rsaKeyId , int rsaPaddingId , byte [] plaintext , int plaintextOffset ,
668+ public int RSACIPHER_public_encrypt (long rsaKeyId ,
669+ int rsaPaddingId , int mdId , int mgf1Id , byte [] plaintext , int plaintextOffset ,
669670 int plaintextLen , byte [] ciphertext , int ciphertextOffset ) throws OCKException {
670671 return NativeOCKImplementation .RSACIPHER_public_encrypt (ockContext .getId (), rsaKeyId , rsaPaddingId ,
671- plaintext , plaintextOffset , plaintextLen , ciphertext , ciphertextOffset );
672+ mdId , mgf1Id , plaintext , plaintextOffset , plaintextLen , ciphertext , ciphertextOffset );
672673 }
673674
674675 @ Override
@@ -686,10 +687,12 @@ public int RSACIPHER_public_decrypt(long rsaKeyId, int rsaPaddingId, byte[] ciph
686687 }
687688
688689 @ Override
689- public int RSACIPHER_private_decrypt (long rsaKeyId , int rsaPaddingId , byte [] ciphertext , int ciphertextOffset ,
690- int ciphertextLen , byte [] plaintext , int plaintextOffset , boolean convertKey ) throws OCKException {
690+ public int RSACIPHER_private_decrypt (long rsaKeyId ,
691+ int rsaPaddingId , int mdId , int mgf1Id , byte [] ciphertext , int ciphertextOffset ,
692+ int ciphertextLen , byte [] plaintext , int plaintextOffset , boolean convertKey )
693+ throws OCKException {
691694 return NativeOCKImplementation .RSACIPHER_private_decrypt (ockContext .getId (), rsaKeyId , rsaPaddingId ,
692- ciphertext , ciphertextOffset , ciphertextLen , plaintext , plaintextOffset , convertKey );
695+ mdId , mgf1Id , ciphertext , ciphertextOffset , ciphertextLen , plaintext , plaintextOffset , convertKey );
693696 }
694697
695698 @ Override
@@ -772,11 +775,6 @@ public byte[] RSAKEY_getPublicKeyBytes(long rsaKeyId) throws OCKException {
772775 return NativeOCKImplementation .RSAKEY_getPublicKeyBytes (ockContext .getId (), rsaKeyId );
773776 }
774777
775- @ Override
776- public long RSAKEY_createPKey (long rsaKeyId ) throws OCKException {
777- return NativeOCKImplementation .RSAKEY_createPKey (ockContext .getId (), rsaKeyId );
778- }
779-
780778 @ Override
781779 public int RSAKEY_size (long rsaKeyId ) {
782780 return NativeOCKImplementation .RSAKEY_size (ockContext .getId (), rsaKeyId );
0 commit comments