Changeset View
Changeset View
Standalone View
Standalone View
dev/cgd/t_cgd_3des.c
/* $NetBSD: t_cgd_3des.c,v 1.2 2017/01/13 21:30:39 christos Exp $ */ | /* $NetBSD: t_cgd_3des.c,v 1.3 2020/08/15 10:03:10 mlelstv Exp $ */ | ||||
/*- | /*- | ||||
* Copyright (c) 2016 The NetBSD Foundation, Inc. | * Copyright (c) 2016 The NetBSD Foundation, Inc. | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* This code is derived from software contributed to The NetBSD Foundation | * This code is derived from software contributed to The NetBSD Foundation | ||||
* by Alexander Nasonov. | * by Alexander Nasonov. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static const char c3des_cbc_192_key[25] = { | static const char c3des_cbc_192_key[25] = { | ||||
0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, /* ABCDEFGH */ | 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, /* ABCDEFGH */ | ||||
0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, /* IJKLMNOP */ | 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, /* IJKLMNOP */ | ||||
0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, /* QRSTUVWX */ | 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, /* QRSTUVWX */ | ||||
0 | 0 | ||||
}; | }; | ||||
static const uint8_t c3des_cbc_ptxt[SECSIZE] = | static const uint8_t c3des_cbc_ptxt[SECSIZE] __aligned(4) = | ||||
" abcdefghijklmnop" | " abcdefghijklmnop" | ||||
" abcdefghijklmnop" | " abcdefghijklmnop" | ||||
" abcdefghijklmnop" | " abcdefghijklmnop" | ||||
" abcdefghijklmnop" | " abcdefghijklmnop" | ||||
" abcdefghijklmnop" | " abcdefghijklmnop" | ||||
" abcdefghijklmnop" | " abcdefghijklmnop" | ||||
" abcdefghijklmnop" | " abcdefghijklmnop" | ||||
" abcdefghijklmnop" | " abcdefghijklmnop" | ||||
▲ Show 20 Lines • Show All 834 Lines • Show Last 20 Lines |