| author | |
| committer | |
| log | 91a1c20e74a8919b7d96366a5c220af79fe67168 |
| tree | c69b0c94d00adc344080e96cc48df5af85221663 |
| parent | 4b48fccaddd2f8f840f34779c07ad1fa634d09c5 |
3 files changed, 12 insertions(+), 12 deletions(-)
lib/std/crypto/aes/aesni.zig+4-4| ... | @@ -123,7 +123,7 @@ pub const Block = struct { | ... | @@ -123,7 +123,7 @@ pub const Block = struct { |
| 123 | return out; | 123 | return out; |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | /// Encrypt multple blocks in parallel with the same round key. | 126 | /// Encrypt multiple blocks in parallel with the same round key. |
| 127 | pub inline fn encryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 127 | pub inline fn encryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 128 | comptime var i = 0; | 128 | comptime var i = 0; |
| 129 | var out: [count]Block = undefined; | 129 | var out: [count]Block = undefined; |
| ... | @@ -133,7 +133,7 @@ pub const Block = struct { | ... | @@ -133,7 +133,7 @@ pub const Block = struct { |
| 133 | return out; | 133 | return out; |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | /// Decrypt multple blocks in parallel with the same round key. | 136 | /// Decrypt multiple blocks in parallel with the same round key. |
| 137 | pub inline fn decryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 137 | pub inline fn decryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 138 | comptime var i = 0; | 138 | comptime var i = 0; |
| 139 | var out: [count]Block = undefined; | 139 | var out: [count]Block = undefined; |
| ... | @@ -143,7 +143,7 @@ pub const Block = struct { | ... | @@ -143,7 +143,7 @@ pub const Block = struct { |
| 143 | return out; | 143 | return out; |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | /// Encrypt multple blocks in parallel with the same last round key. | 146 | /// Encrypt multiple blocks in parallel with the same last round key. |
| 147 | pub inline fn encryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 147 | pub inline fn encryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 148 | comptime var i = 0; | 148 | comptime var i = 0; |
| 149 | var out: [count]Block = undefined; | 149 | var out: [count]Block = undefined; |
| ... | @@ -153,7 +153,7 @@ pub const Block = struct { | ... | @@ -153,7 +153,7 @@ pub const Block = struct { |
| 153 | return out; | 153 | return out; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | /// Decrypt multple blocks in parallel with the same last round key. | 156 | /// Decrypt multiple blocks in parallel with the same last round key. |
| 157 | pub inline fn decryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 157 | pub inline fn decryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 158 | comptime var i = 0; | 158 | comptime var i = 0; |
| 159 | var out: [count]Block = undefined; | 159 | var out: [count]Block = undefined; |
lib/std/crypto/aes/armcrypto.zig+4-4| ... | @@ -139,7 +139,7 @@ pub const Block = struct { | ... | @@ -139,7 +139,7 @@ pub const Block = struct { |
| 139 | return out; | 139 | return out; |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | /// Encrypt multple blocks in parallel with the same round key. | 142 | /// Encrypt multiple blocks in parallel with the same round key. |
| 143 | pub inline fn encryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 143 | pub inline fn encryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 144 | comptime var i = 0; | 144 | comptime var i = 0; |
| 145 | var out: [count]Block = undefined; | 145 | var out: [count]Block = undefined; |
| ... | @@ -149,7 +149,7 @@ pub const Block = struct { | ... | @@ -149,7 +149,7 @@ pub const Block = struct { |
| 149 | return out; | 149 | return out; |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | /// Decrypt multple blocks in parallel with the same round key. | 152 | /// Decrypt multiple blocks in parallel with the same round key. |
| 153 | pub inline fn decryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 153 | pub inline fn decryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 154 | comptime var i = 0; | 154 | comptime var i = 0; |
| 155 | var out: [count]Block = undefined; | 155 | var out: [count]Block = undefined; |
| ... | @@ -159,7 +159,7 @@ pub const Block = struct { | ... | @@ -159,7 +159,7 @@ pub const Block = struct { |
| 159 | return out; | 159 | return out; |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | /// Encrypt multple blocks in parallel with the same last round key. | 162 | /// Encrypt multiple blocks in parallel with the same last round key. |
| 163 | pub inline fn encryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 163 | pub inline fn encryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 164 | comptime var i = 0; | 164 | comptime var i = 0; |
| 165 | var out: [count]Block = undefined; | 165 | var out: [count]Block = undefined; |
| ... | @@ -169,7 +169,7 @@ pub const Block = struct { | ... | @@ -169,7 +169,7 @@ pub const Block = struct { |
| 169 | return out; | 169 | return out; |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | /// Decrypt multple blocks in parallel with the same last round key. | 172 | /// Decrypt multiple blocks in parallel with the same last round key. |
| 173 | pub inline fn decryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 173 | pub inline fn decryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 174 | comptime var i = 0; | 174 | comptime var i = 0; |
| 175 | var out: [count]Block = undefined; | 175 | var out: [count]Block = undefined; |
lib/std/crypto/aes/soft.zig+4-4| ... | @@ -180,7 +180,7 @@ pub const Block = struct { | ... | @@ -180,7 +180,7 @@ pub const Block = struct { |
| 180 | return out; | 180 | return out; |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | /// Encrypt multple blocks in parallel with the same round key. | 183 | /// Encrypt multiple blocks in parallel with the same round key. |
| 184 | pub fn encryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 184 | pub fn encryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 185 | var i = 0; | 185 | var i = 0; |
| 186 | var out: [count]Block = undefined; | 186 | var out: [count]Block = undefined; |
| ... | @@ -190,7 +190,7 @@ pub const Block = struct { | ... | @@ -190,7 +190,7 @@ pub const Block = struct { |
| 190 | return out; | 190 | return out; |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | /// Decrypt multple blocks in parallel with the same round key. | 193 | /// Decrypt multiple blocks in parallel with the same round key. |
| 194 | pub fn decryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 194 | pub fn decryptWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 195 | var i = 0; | 195 | var i = 0; |
| 196 | var out: [count]Block = undefined; | 196 | var out: [count]Block = undefined; |
| ... | @@ -200,7 +200,7 @@ pub const Block = struct { | ... | @@ -200,7 +200,7 @@ pub const Block = struct { |
| 200 | return out; | 200 | return out; |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | /// Encrypt multple blocks in parallel with the same last round key. | 203 | /// Encrypt multiple blocks in parallel with the same last round key. |
| 204 | pub fn encryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 204 | pub fn encryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 205 | var i = 0; | 205 | var i = 0; |
| 206 | var out: [count]Block = undefined; | 206 | var out: [count]Block = undefined; |
| ... | @@ -210,7 +210,7 @@ pub const Block = struct { | ... | @@ -210,7 +210,7 @@ pub const Block = struct { |
| 210 | return out; | 210 | return out; |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | /// Decrypt multple blocks in parallel with the same last round key. | 213 | /// Decrypt multiple blocks in parallel with the same last round key. |
| 214 | pub fn decryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { | 214 | pub fn decryptLastWide(comptime count: usize, blocks: [count]Block, round_key: Block) [count]Block { |
| 215 | var i = 0; | 215 | var i = 0; |
| 216 | var out: [count]Block = undefined; | 216 | var out: [count]Block = undefined; |