Ejemplo n.º 1
0
//*****************************************************************************
//
//! Set Keys. Sets the Pre Defined Keys
//!
//! \param None
//!
//! \return none
//
//*****************************************************************************
void
SetKeys()
{
    HMACKey1 = MemAllocAndCpy(64, \
            "p$d0Kotrp$d0Kotrp$d0Kotrp$d0Kotrp$d0Kotrp$d0Kotrp$d0Kotrp$d0Kotr");
    HMACKey2 = MemAllocAndCpy(64, \
            "abababababababababababababababababababababababababababababababab");
    HMACKey3 = MemAllocAndCpy(64, \
            "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd");
}
Ejemplo n.º 2
0
//*****************************************************************************
//
//! Set Keys Function
//!
//! This function
//!        1. Defines the Default Keys
//! \param None
//!
//! \return None
//
//*****************************************************************************
void
SetKeys()
{
    AES128Key1 = MemAllocAndCpy(16, "abcdefghijklmnpq");
    AES128Key2 = MemAllocAndCpy(16, "rstuvwxyz1234567");
    AES128Key3 = MemAllocAndCpy(16, "12345678abcdefgh");
    
    AES192Key1 = MemAllocAndCpy(24, "abcdefghijklmnpqrstuvwxy");
    AES192Key2 = MemAllocAndCpy(24, "rstuvwxyz1234567abcdefgh");
    AES192Key3 = MemAllocAndCpy(24, "12345678abcdefghrstuvwxy");
    
    AES256Key1 = MemAllocAndCpy(32, "abcdefghijklmnpqrstuvwxy12345678");
    AES256Key2 = MemAllocAndCpy(32, "rstuvwxyz1234567abcdefghijklmnpq");
    AES256Key3 = MemAllocAndCpy(32, "12345678abcdefghrstuvwxyijklmnpq");
}
Ejemplo n.º 3
0
//*****************************************************************************
//
//! Set Keys with some default values
//!
//! \param None
//!
//! \return None
//
//*****************************************************************************
void
SetKeys()
{
    DESKey1 = MemAllocAndCpy(8, "abcdefgh");
    DESKey2 = MemAllocAndCpy(8, "rstuvwxy");
    DESKey3 = MemAllocAndCpy(8, "12345678");
    
    TDESKey1 = MemAllocAndCpy(24, "abcdefghijklmnpqrstuvwxy");
    TDESKey2 = MemAllocAndCpy(24, "rstuvwxyz1234567abcdefgh");
    TDESKey3 = MemAllocAndCpy(24, "12345678abcdefghrstuvwxy");
  
}