mirror of
https://github.com/sheumann/65816-crypto.git
synced 2024-11-28 15:49:27 +00:00
Mention sources of AES test vectors.
This commit is contained in:
parent
eaa0d4865c
commit
95acb9f43f
@ -22,6 +22,8 @@
|
|||||||
#include <orca.h>
|
#include <orca.h>
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
|
|
||||||
|
/* Example vectors from NIST SP 800-38A */
|
||||||
|
|
||||||
unsigned char iv[16] = {
|
unsigned char iv[16] = {
|
||||||
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
|
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
|
||||||
0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f
|
0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
#include <orca.h>
|
#include <orca.h>
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
|
|
||||||
|
/* Example vectors from NIST SP 800-38A */
|
||||||
|
|
||||||
unsigned char initial_counter[16] = {
|
unsigned char initial_counter[16] = {
|
||||||
0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,
|
0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,
|
||||||
0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff
|
0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
|
|
||||||
|
/* Example vectors from FIPS 197, Advanced Encryption Standard (AES) */
|
||||||
|
|
||||||
void print_hexbytes(char *prefix, unsigned char *data, unsigned int n) {
|
void print_hexbytes(char *prefix, unsigned char *data, unsigned int n) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user