Uses of Interface
cloud.opencode.base.crypto.mac.Mac

Packages that use Mac
  • Uses of Mac in cloud.opencode.base.crypto

    Methods in cloud.opencode.base.crypto that return Mac
    Modifier and Type
    Method
    Description
    static Mac
    OpenCrypto.hmac(String algorithm, byte[] key)
    Generic HMAC factory for any JCA algorithm name.
    static Mac
    OpenCrypto.hmacMd5(byte[] key)
    HMAC-MD5 — legacy opt-in, deprecated.
    static Mac
    OpenCrypto.hmacSha1(byte[] key)
    HMAC-SHA1 — legacy opt-in, deprecated.
    static Mac
    OpenCrypto.hmacSha256(byte[] key)
    HMAC-SHA256 HMAC-SHA256
    static Mac
    OpenCrypto.hmacSha384(byte[] key)
    HMAC-SHA384 HMAC-SHA384
    static Mac
    OpenCrypto.hmacSha512(byte[] key)
    HMAC-SHA512 HMAC-SHA512
  • Uses of Mac in cloud.opencode.base.crypto.mac

    Classes in cloud.opencode.base.crypto.mac that implement Mac
    Modifier and Type
    Class
    Description
    final class 
    HMAC-SHA256 implementation - Hash-based Message Authentication Code using SHA-256 HMAC-SHA256 实现 - 基于 SHA-256 的哈希消息认证码
    final class 
    HMAC-SHA512 implementation - Hash-based Message Authentication Code using SHA-512 HMAC-SHA512 实现 - 基于 SHA-512 的哈希消息认证码
    final class 
    Generic JCA HMAC wrapper for any algorithm name supported by the JDK provider.
    final class 
    Poly1305 MAC implementation - One-time authenticator using Bouncy Castle Poly1305 消息认证码实现 - 使用 Bouncy Castle 的一次性认证器
    Methods in cloud.opencode.base.crypto.mac that return Mac
    Modifier and Type
    Method
    Description
    HmacSha256.reset()
     
    HmacSha512.reset()
     
    JcaHmac.reset()
     
    Mac.reset()
    Resets the MAC to its initial state 将 MAC 重置为初始状态
    Poly1305.reset()
     
    HmacSha256.update(byte[] data)
     
    HmacSha256.update(String data)
     
    HmacSha512.update(byte[] data)
     
    HmacSha512.update(String data)
     
    JcaHmac.update(byte[] data)
     
    JcaHmac.update(String data)
     
    Mac.update(byte[] data)
    Updates the MAC with a chunk of data (for incremental computation) 使用数据块更新 MAC(用于增量计算)
    Mac.update(String data)
    Updates the MAC with a string (UTF-8 encoded) 使用字符串更新 MAC(UTF-8 编码)
    Poly1305.update(byte[] data)
     
    Poly1305.update(String data)