OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |