Go to the source code of this file.
 | 
| #define  | BIT_RANGE(from,  to)   (((1 << ((to) - (from))) - 1) << (from)) | 
|   | 
| #define  | BIT_RANGE_LEFT(x,  from,  to,  shift)   (((x) & BIT_RANGE((from), (to))) << (shift)) | 
|   | 
| #define  | BIT_RANGE_RIGHT(x,  from,  to,  shift)   (((x) & BIT_RANGE((from), (to))) >> (shift)) | 
|   | 
| #define  | ROT(x,  b)   (((x) >> ((b) * 4)) | ((x) << ((4-(b)) * 4))) | 
|   | 
 | 
| void  | AES128_init (AES128_ctx *ctx, const unsigned char *key16) | 
|   | 
| void  | AES128_encrypt (const AES128_ctx *ctx, size_t blocks, unsigned char *cipher16, const unsigned char *plain16) | 
|   | 
| void  | AES128_decrypt (const AES128_ctx *ctx, size_t blocks, unsigned char *plain16, const unsigned char *cipher16) | 
|   | 
| void  | AES192_init (AES192_ctx *ctx, const unsigned char *key24) | 
|   | 
| void  | AES192_encrypt (const AES192_ctx *ctx, size_t blocks, unsigned char *cipher16, const unsigned char *plain16) | 
|   | 
| void  | AES192_decrypt (const AES192_ctx *ctx, size_t blocks, unsigned char *plain16, const unsigned char *cipher16) | 
|   | 
| void  | AES256_init (AES256_ctx *ctx, const unsigned char *key32) | 
|   | 
| void  | AES256_encrypt (const AES256_ctx *ctx, size_t blocks, unsigned char *cipher16, const unsigned char *plain16) | 
|   | 
| void  | AES256_decrypt (const AES256_ctx *ctx, size_t blocks, unsigned char *plain16, const unsigned char *cipher16) | 
|   | 
◆ BIT_RANGE
      
        
          | #define BIT_RANGE | 
          ( | 
            | 
          from,  | 
        
        
           | 
           | 
            | 
          to  | 
        
        
           | 
          ) | 
           |    (((1 << ((to) - (from))) - 1) << (from)) | 
        
      
 
 
◆ BIT_RANGE_LEFT
      
        
          | #define BIT_RANGE_LEFT | 
          ( | 
            | 
          x,  | 
        
        
           | 
           | 
            | 
          from,  | 
        
        
           | 
           | 
            | 
          to,  | 
        
        
           | 
           | 
            | 
          shift  | 
        
        
           | 
          ) | 
           |    (((x) & BIT_RANGE((from), (to))) << (shift)) | 
        
      
 
 
◆ BIT_RANGE_RIGHT
      
        
          | #define BIT_RANGE_RIGHT | 
          ( | 
            | 
          x,  | 
        
        
           | 
           | 
            | 
          from,  | 
        
        
           | 
           | 
            | 
          to,  | 
        
        
           | 
           | 
            | 
          shift  | 
        
        
           | 
          ) | 
           |    (((x) & BIT_RANGE((from), (to))) >> (shift)) | 
        
      
 
 
◆ ROT
      
        
          | #define ROT | 
          ( | 
            | 
          x,  | 
        
        
           | 
           | 
            | 
          b  | 
        
        
           | 
          ) | 
           |    (((x) >> ((b) * 4)) | ((x) << ((4-(b)) * 4))) | 
        
      
 
 
◆ AES128_decrypt()
      
        
          | void AES128_decrypt  | 
          ( | 
          const AES128_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          size_t  | 
          blocks,  | 
        
        
           | 
           | 
          unsigned char *  | 
          plain16,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          cipher16  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AES128_encrypt()
      
        
          | void AES128_encrypt  | 
          ( | 
          const AES128_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          size_t  | 
          blocks,  | 
        
        
           | 
           | 
          unsigned char *  | 
          cipher16,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          plain16  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AES128_init()
      
        
          | void AES128_init  | 
          ( | 
          AES128_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          key16  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AES192_decrypt()
      
        
          | void AES192_decrypt  | 
          ( | 
          const AES192_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          size_t  | 
          blocks,  | 
        
        
           | 
           | 
          unsigned char *  | 
          plain16,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          cipher16  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AES192_encrypt()
      
        
          | void AES192_encrypt  | 
          ( | 
          const AES192_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          size_t  | 
          blocks,  | 
        
        
           | 
           | 
          unsigned char *  | 
          cipher16,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          plain16  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AES192_init()
      
        
          | void AES192_init  | 
          ( | 
          AES192_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          key24  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AES256_decrypt()
      
        
          | void AES256_decrypt  | 
          ( | 
          const AES256_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          size_t  | 
          blocks,  | 
        
        
           | 
           | 
          unsigned char *  | 
          plain16,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          cipher16  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AES256_encrypt()
      
        
          | void AES256_encrypt  | 
          ( | 
          const AES256_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          size_t  | 
          blocks,  | 
        
        
           | 
           | 
          unsigned char *  | 
          cipher16,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          plain16  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AES256_init()
      
        
          | void AES256_init  | 
          ( | 
          AES256_ctx *  | 
          ctx,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          key32  | 
        
        
           | 
          ) | 
           |  |