The authentication template conveys to the verifier how to verify the authenticity of the recieved codestream. There are 3 general classes of authentication methods:

  • Hash-Based Authentication
  • Cipher-Based Authentication
  • Digital Signatures

The first two are also referred to as Message Authentication Codes (MACs). The template defines the authentication method to be used and any parameters needed to accomplish the authentication.

When the Hash-based MAC is called for there is only one method defined in the JPSEC standard
HMAC. The list of Hash functions for use with this method are given in table 1. The method, function,  key template, and size in bits of the MAC are defined in the template.

Table 1: JPSEC Hash Function Identifiers

IdentifierHash Function
0Reserved
1SHA-1
2RIPEMD-128
3RIPEMD-160
4MASH-1
5MASH-2
6SHA-224
7SHA-256
8SHA-384
9SHA-512
10Whirlpool
All other values are reserved for ISO use

When the Cipher-based MAC is called for there are four methods defined in the JPSEC standard:

  • CBC-MAC MAC Algorithm 1
  • CBC-MAC MAC Algorithm 2
  • CBC-MAC MAC Algorithm 3
  • CBC-MAC MAC Algorithm 4

The list of Block-ciphers for use with these methods is given in table 2. The method, block-cipher to be used,
key template, and size in bits of the MAC are defined in the template.

Table 2: JPSEC Block-cipher Identifiers

IdentifierCipher Type
0x0000NULL (no encryption)
0x0001AES
0x0002TDEA
0x0003MISTY-1
0x0004Camellia
0x0005CAST-128
0x0006SEED
All other values are reserved for ISO use

When a digital signature is called for there are four methods defined in the JPSEC standard:

The list of Hash functions for use with this method are given in table 1. The method, hash function,
key template, and size of the digital signature in bits are defined in the
template.

Further information available here:

JPSEC

JPSEC Tools

JPSEC Tool Decryption Template

JPSEC Tool Hash Template

JPSEC Tool Key Template

JPSEC Registration Authority (RA)
JPSEC Standards available here:

Joint Photographic Experts Group (JPEG) Part 8 – JPSEC: Secure JPEG 2000 Final Committee Draft

ISO/IEC 15444-8:2007 – Information technology — JPEG 2000 image coding system: Secure JPEG 2000

T.807 (05/06) – Information technology — JPEG 2000 image coding system: Secure JPEG 2000