org.mozilla.jss.crypto

Class HMACAlgorithm

public class HMACAlgorithm extends DigestAlgorithm

Algorithms for performing HMACs. These can be used to create MessageDigests.
Field Summary
static HMACAlgorithmSHA1
SHA-1 HMAC.
Constructor Summary
protected HMACAlgorithm(int oidIndex, String name, OBJECT_IDENTIFIER oid, int outputSize)
Method Summary
static DigestAlgorithmfromOID(OBJECT_IDENTIFIER oid)
Looks up the HMAC algorithm with the given OID.

Field Detail

SHA1

public static final HMACAlgorithm SHA1
SHA-1 HMAC. This is a Message Authentication Code that uses a symmetric key together with SHA-1 digesting to create a form of signature.

Constructor Detail

HMACAlgorithm

protected HMACAlgorithm(int oidIndex, String name, OBJECT_IDENTIFIER oid, int outputSize)

Method Detail

fromOID

public static DigestAlgorithm fromOID(OBJECT_IDENTIFIER oid)
Looks up the HMAC algorithm with the given OID.

Throws: NoSuchAlgorithmException If no registered HMAC algorithm has the given OID.