/*
 * jPOS Project [http://jpos.org]
 * Copyright (C) 2000-2023 jPOS Software SRL
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.jpos.security;

/**
 * Key Encription Scheme.
 *
 * @author Robert Demski
 */
public enum KeyScheme {

    /**
     * Encryption of a single length DES key using X9.17 methods.
     * <p>
     * Used for encryption of keys under a variant LMK..
     */
    Z,

    /**
     * Encryption of a double length key using X9.17 methods.
     */
    X,

    /**
     * Encryption of a double length DES key using the variant method.
     * <p>
     * Used for encryption of keys under a variant LMK.
     */
    U,

    /**
     * Encryption of a triple length key using X9.17 methods.
     */
    Y,

    /**
     * Encryption of a triple length DES key using the variant method.
     * <p>
     * Used for encryption of keys under a variant LMK.
     */
    T,

    /**
     * Encryption of single/double/triple-length DES & AES keys using the ANSI
     * X9 TR-31 Key Block methods.
     * <p>
     * Only used for exporting keys <i>(e.g. under a KEK)</i>.
     * <p>
     * The ANSI X9 Committee published Technical Report 31 (TR-31) on
     * <i>Interoperable Secure Key ExcKey Block Specification for Symmetric
     * Algorithms</i> in 2010 to describe a method for secure key exchange which
     * meets the needs of X9.24.
     */
    R,

    /**
     * Encryption of all DES, AES, HMAC & RSA keys using proprietary Key Block
     * methods.
     * <p>
     * Used for encrypting keys for local use <i>(under a Key Block LMK)</i> or
     * for importing/exporting keys <i>(e.g. under a KEK or ZMK)</i>.
     */
    S

}

