S4S Security Header Level 2
S4S Security Header Level 2
To initiate the beginning of a secured area and to provide the parameters needed for authentication or encryption of a transaction set
Position
Element
Name
Type
Requirement
Min
Max
Repeat
S4S-01
Security Version/Release Identifier Code
Identifier (ID)
Mandatory
6
6
-
Code indicating the version/release of the ASC X12 standard that is being used for this specific security structure. The version/release identified for this segment also applies to any corresponding trailer or security value segment. This version/release is independent of any other version/release identified in another security segment at the transaction set or functional group level. This version/release is independent of the version/release identified at the interchange or functional group level
S4S-02
Security Type Code
Identifier (ID)
Mandatory
2
2
-
Code identifying the security algorithms and methods applied for this level of interchange
If S4S02 is "AA", "BB", "AC", or "BC", then S4S05 is required.
If S4S02 is "BB", "EE", "AC", or "EC", then S4S08 is required.
If S4S02 is "CC" then S4S09 is required.
S4S-03
Security Originator Name
String (AN)
Mandatory
1
64
-
Unique designation (identity) of the cryptographic process that performs authentication or encryption on data to be interchanged, or originates a cryptographic service message Note: X9 has a minimum length of 4 characters for the security originator; no mechanism, or registration method is provided by X9 or X12 to guarantee the uniqueness of the identifier
X9 has a required minimum length of four characters for S4S03 (security originator). No mechanism, or registration method, is provided by X9 or X12 to guarantee uniqueness of the identifier.
S4S-04
Security Recipient Name
String (AN)
Optional
1
64
-
Unique designation (identity) of the cryptographic process that performs authentication or decryption on received data, or is the destination of a cryptographic service message Note: X9 has a minimum length of 4 characters for the security recipient; no mechanism, or registration method is provided by X9 or X12 to guarantee the uniqueness of the identifier
X9 has a required minimum length of four characters for S4S04 (security recipient). No mechanism, or registration method, is provided by X9 or X12 to guarantee uniqueness of the identifier.
S4S-05
Authentication Key Name
String (AN)
Conditional
1
64
-
Name of the key used for authentication; this name is mutually known to the security originator and the security recipient, is unique for this relationship, and is intended to allow the changing of the key from time to time Note: The special key name "0123456789ABCDEF" is reserved for the hexadecimal value 0123456789ABCDEF (i.e. a fixed non-secret value) to provide a well-known value for data integrity testing only)
In S4S05, the special name "01234567890ABCDEF" is reserved for the hexadecimal value 01234567890ABCDEF (i.e., a fixed, non-secret value) to provide a well-known value for data-integrity testing only.
S4S-06
Authentication Service Code
Identifier (ID)
Conditional
1
1
-
Code identifying authentication options
S4S-07
Optional
-
S4S-08
Conditional
-
S4S-09
Conditional
-
S4S-10
Length of Data
Numeric (N)
Conditional
1
18
-
Length of data is the number of character positions of the compressed or encrypted/filtered text; when data is plain text, this field shall be absent
S4S-11
Transformed Data
Binary (B)
Conditional
1
10000000000000000
-
Binary or filtered data having one or more security policy options applied; transformed data may represent compressed, encrypted, or compressed and encrypted plaintext
The first set of characters in DE 1700, with a length defined by the C03208 value (DE 1704), is the initialization vector (IV). The IV is followed by a stream of data, whose length is equal to S4S10 minus C03208.