spinal.lib.crypto

symmetric

package symmetric

Visibility
  1. Public
  2. All

Type Members

  1. class DESBlock extends Component

    Data Encryption Standard (DES)

    Data Encryption Standard (DES)

    _ | | -- Plaintext --->| DES |-- Ciphertext --> (64 bits) |_| (64 bits) | Key (56 bits) | Key + parity (64 bits)

  2. case class DESBlockGenerics() extends Product with Serializable

    Contains all constants for the DES Block

  3. case class SymmetricCryptoBlockCmd(g: SymmetricCryptoBlockGeneric) extends Bundle with Product with Serializable

  4. case class SymmetricCryptoBlockGeneric(keyWidth: BitCount, blockWidth: BitCount, useEncDec: Boolean = true) extends Product with Serializable

    **************************************************************************** Interface use by a symmetric block

  5. case class SymmetricCryptoBlockIO(g: SymmetricCryptoBlockGeneric) extends Bundle with Product with Serializable

  6. case class SymmetricCryptoBlockRsp(g: SymmetricCryptoBlockGeneric) extends Bundle with Product with Serializable

  7. class TripleDESBlock extends Component

    Triple DES (3DES)

    Triple DES (3DES)

    Encrpytion : Decrytpion :

    plaintext plaintext (64 bits) | | ----------------- ---------------- | DES encrypt |<-- K1 -->| DES decrypt | ----------------- ---------------- | | ----------------- ---------------- | DES decrypt |<-- K2 -->| DES encrypt | ----------------- ---------------- | | ----------------- ---------------- | DES encrypt |<-- K3 -->| DES decrypt | ----------------- ---------------- | | ciphertext ciphertext (64 bits)

    key = Concatenation(k1 , k2 , k3) = 3*64 bits = 192 bits

Value Members

  1. object DESBlock

    Define some usefull funtion

Ungrouped