MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / sha1

Method sha1

CodenameOne/src/com/codename1/security/Hmac.java:157–159  ·  view source on GitHub ↗
(byte[] key, byte[] data)

Source from the content-addressed store, hash-verified

155
156 /// One-shot HMAC-SHA-1. Legacy interop only -- prefer HMAC-SHA-256.
157 public static byte[] sha1(byte[] key, byte[] data) {
158 return create(Hash.SHA1, key).doFinal(data);
159 }
160
161 /// One-shot HMAC-SHA-224.
162 public static byte[] sha224(byte[] key, byte[] data) {

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
doFinalMethod · 0.80

Tested by

no test coverage detected