MCPcopy Index your code
hub / github.com/SeanDragon/protools / allZero

Method allZero

security/src/main/java/pro/tools/security/sm/SM2.java:187–194  ·  view source on GitHub ↗

判断字节数组是否全0 @param buffer @return

(byte[] buffer)

Source from the content-addressed store, hash-verified

185 * @return
186 */
187 private boolean allZero(byte[] buffer) {
188 for (byte aBuffer : buffer) {
189 if (aBuffer != 0) {
190 return false;
191 }
192 }
193 return true;
194 }
195
196 /**
197 * 公钥加密

Callers 2

encryptMethod · 0.95
decryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected