You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/gmssl/crypto/asymmetric/SM2Cipher.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,19 @@ protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) {
117
117
returnnull;
118
118
}
119
119
120
+
/**
121
+
* The method does not perform any encryption or decryption; it only stores the input data. The returned result is meaningless, and the final result is output through `doFinal`.
122
+
* @param input the input buffer
123
+
* @param inputOffset the offset in <code>input</code> where the input
124
+
* starts
125
+
* @param inputLen the input length
126
+
* @param output the buffer for the result
127
+
* @param outputOffset the offset in <code>output</code> where the result
* SM9 encryption and decryption are completed during the engineDoFinal phase. During the update phase, data is only cached, and no partial encryption or decryption results are returned.
113
113
* @param input the input buffer
114
114
* @param inputOffset the offset in <code>input</code> where the input
115
115
* starts
116
116
* @param inputLen the input length
117
-
* @description
118
-
* SM9 encryption and decryption are completed during the engineDoFinal phase. During the update phase, data is only cached, and no partial encryption or decryption results are returned.
117
+
*
119
118
* @return
120
119
*/
121
120
@Override
@@ -124,6 +123,19 @@ protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) {
124
123
returnnull;
125
124
}
126
125
126
+
/**
127
+
* SM9 encryption and decryption are completed during the engineDoFinal phase. During the update phase, data is only cached, and no partial encryption or decryption results are returned.
128
+
* @param input the input buffer
129
+
* @param inputOffset the offset in <code>input</code> where the input
130
+
* starts
131
+
* @param inputLen the input length
132
+
* @param output the buffer for the result
133
+
* @param outputOffset the offset in <code>output</code> where the result
0 commit comments