Changeset View
Changeset View
Standalone View
Standalone View
dev/cgd/t_cgd_blowfish.c
/* $NetBSD: t_cgd_blowfish.c,v 1.2 2017/01/13 21:30:39 christos Exp $ */ | /* $NetBSD: t_cgd_blowfish.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 77 Lines • ▼ Show 20 Lines | static const char bf_cbc_448_key[57] = { | ||||
0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, /* PQRSTUVW */ | 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, /* PQRSTUVW */ | ||||
0x58, 0x59, 0x5a, 0x7e, 0x3a, 0x61, 0x62, 0x63, /* XYZ~:abc */ | 0x58, 0x59, 0x5a, 0x7e, 0x3a, 0x61, 0x62, 0x63, /* XYZ~:abc */ | ||||
0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, /* defghijk */ | 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, /* defghijk */ | ||||
0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, /* lmnopqrs */ | 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, /* lmnopqrs */ | ||||
0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x23, /* tuvwxyz# */ | 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x23, /* tuvwxyz# */ | ||||
0 | 0 | ||||
}; | }; | ||||
static const uint8_t bf_cbc_ptxt[SECSIZE] = | static const uint8_t bf_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 2,238 Lines • Show Last 20 Lines |