Skip to content
Snippets Groups Projects
Select Git revision
  • 664f85a376cad9ff8220ce87c0a2696d88d13ac6
  • master default
  • dbck-q-n-d-link
  • foutput-text_stat-override
  • generations
  • text-stat-sha256
  • use-nettle
  • import-nettle
  • refactor-cached_get_text
  • refactor-cached_get_text-part-2
  • add-text_store
  • introduce-generation_position
  • remove-reclamation
  • dbfile-temp-filenames
  • sstrdup
  • dbfile_open_read-check-magic
  • adns_dist
  • liboop_dist
  • search
  • isc
  • dbdbckmultiplechoice
  • last.cvs.revision
  • 2.1.2
  • 2.1.1
  • 2.1.0
  • adns_1_0
  • liboop_0_9
  • 2.0.7
  • search_bp
  • 2.0.6
  • 2.0.5
  • isc_1_01
  • Protocol-A-10.4
  • 2.0.4
  • 2.0.3
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • isc_1_00
  • isc_merge_1999_05_01
  • isc_merge_1999_04_21
41 results

ram-parse.c

Blame
  • rijndael_test.c 754 B
    
    #include <stdio.h>
    #include <stdlib.h>
    #include "rijndael.h"
    
    int main(void)
    {
      RIJNDAEL_context ctx;
      UINT8 key[32];
      UINT8 text[16];
      int i, j;
    
      for (i=0; i<16; i++)
        text[i] = i;
      for (i=0; i<32; i++)
        key[i] = 0;
      key[0] = 1;
    
      for (j=16; j<=32; j+=8) {
        rijndael_setup(&ctx, j, key);
        printf("\nBlock Size = 128 bits, Key Size = %d bits\n", j*8);
        printf("\nPlain=   ");
        for (i=0; i<16; i++)
          printf("%2x", text[i]);
        printf("\n");
        rijndael_encrypt(&ctx, text, text);
        printf("Encrypt= ");
        for (i=0; i<16; i++)
          printf("%02x", text[i]);
        printf("\nDecrypt= ");
        rijndael_decrypt(&ctx, text, text);
        for (i=0; i<16; i++)
          printf("%2x", text[i]);
        printf("\n");
      }
      return(0);
    }