Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: src/platform/vboot_reference/crypto/padding.c

Issue 660261: Refactor siglen_map[] to store key size in bytes instead of 32-bit words. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * DO NOT MODIFY THIS FILE DIRECTLY. 2 * DO NOT MODIFY THIS FILE DIRECTLY.
3 * 3 *
4 * This file is automatically generated by genpadding.sh and contains padding 4 * This file is automatically generated by genpadding.sh and contains padding
5 * arrays corresponding to various combinations of algorithms for RSA signatures . 5 * arrays corresponding to various combinations of algorithms for RSA signatures .
6 */ 6 */
7 7
8 #include "rsa.h" 8 #include "rsa.h"
9 #include "sha.h" 9 #include "sha.h"
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 SHA512_DIGESTINFO_LEN, 119 SHA512_DIGESTINFO_LEN,
120 SHA1_DIGESTINFO_LEN, 120 SHA1_DIGESTINFO_LEN,
121 SHA256_DIGESTINFO_LEN, 121 SHA256_DIGESTINFO_LEN,
122 SHA512_DIGESTINFO_LEN, 122 SHA512_DIGESTINFO_LEN,
123 SHA1_DIGESTINFO_LEN, 123 SHA1_DIGESTINFO_LEN,
124 SHA256_DIGESTINFO_LEN, 124 SHA256_DIGESTINFO_LEN,
125 SHA512_DIGESTINFO_LEN, 125 SHA512_DIGESTINFO_LEN,
126 }; 126 };
127 127
128 const int siglen_map[NUMALGORITHMS] = { 128 const int siglen_map[NUMALGORITHMS] = {
129 RSA1024NUMWORDS, 129 RSA1024NUMBYTES,
130 RSA1024NUMWORDS, 130 RSA1024NUMBYTES,
131 RSA1024NUMWORDS, 131 RSA1024NUMBYTES,
132 RSA2048NUMWORDS, 132 RSA2048NUMBYTES,
133 RSA2048NUMWORDS, 133 RSA2048NUMBYTES,
134 RSA2048NUMWORDS, 134 RSA2048NUMBYTES,
135 RSA4096NUMWORDS, 135 RSA4096NUMBYTES,
136 RSA4096NUMWORDS, 136 RSA4096NUMBYTES,
137 RSA4096NUMWORDS, 137 RSA4096NUMBYTES,
138 RSA8192NUMWORDS, 138 RSA8192NUMBYTES,
139 RSA8192NUMWORDS, 139 RSA8192NUMBYTES,
140 RSA8192NUMWORDS, 140 RSA8192NUMBYTES,
141 }; 141 };
142 142
143 const uint8_t* padding_map[NUMALGORITHMS] = { 143 const uint8_t* padding_map[NUMALGORITHMS] = {
144 paddingRSA1024_SHA1, 144 paddingRSA1024_SHA1,
145 paddingRSA1024_SHA256, 145 paddingRSA1024_SHA256,
146 paddingRSA1024_SHA512, 146 paddingRSA1024_SHA512,
147 paddingRSA2048_SHA1, 147 paddingRSA2048_SHA1,
148 paddingRSA2048_SHA256, 148 paddingRSA2048_SHA256,
149 paddingRSA2048_SHA512, 149 paddingRSA2048_SHA512,
150 paddingRSA4096_SHA1, 150 paddingRSA4096_SHA1,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 "RSA2048 SHA256", 223 "RSA2048 SHA256",
224 "RSA2048 SHA512", 224 "RSA2048 SHA512",
225 "RSA4096 SHA1", 225 "RSA4096 SHA1",
226 "RSA4096 SHA256", 226 "RSA4096 SHA256",
227 "RSA4096 SHA512", 227 "RSA4096 SHA512",
228 "RSA8192 SHA1", 228 "RSA8192 SHA1",
229 "RSA8192 SHA256", 229 "RSA8192 SHA256",
230 "RSA8192 SHA512", 230 "RSA8192 SHA512",
231 }; 231 };
232 232
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/crypto/genpadding.sh ('k') | src/platform/vboot_reference/crypto/rsa.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698