Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75952
b: refs/heads/master
c: 5de8f1b
h: refs/heads/master
v: v3
  • Loading branch information
Tan Swee Heng authored and Herbert Xu committed Jan 10, 2008
1 parent 758c65f commit 11fbd30
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b77abb3b2d0c2eee1da79a3f3bd4312a0edb156
refs/heads/master: 5de8f1b562e87ae9d93a4e0897e54c18a5e82915
5 changes: 5 additions & 0 deletions trunk/crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,11 @@ static void do_test(void)
camellia_speed_template);
break;

case 206:
test_cipher_speed("salsa20", ENCRYPT, sec, NULL, 0,
salsa20_speed_template);
break;

case 300:
/* fall through */

Expand Down
16 changes: 16 additions & 0 deletions trunk/crypto/tcrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -7947,4 +7947,20 @@ static struct cipher_speed camellia_speed_template[] = {
{ .klen = 0, .blen = 0, }
};

static struct cipher_speed salsa20_speed_template[] = {
{ .klen = 16, .blen = 16, },
{ .klen = 16, .blen = 64, },
{ .klen = 16, .blen = 256, },
{ .klen = 16, .blen = 1024, },
{ .klen = 16, .blen = 8192, },
{ .klen = 32, .blen = 16, },
{ .klen = 32, .blen = 64, },
{ .klen = 32, .blen = 256, },
{ .klen = 32, .blen = 1024, },
{ .klen = 32, .blen = 8192, },

/* End marker */
{ .klen = 0, .blen = 0, }
};

#endif /* _CRYPTO_TCRYPT_H */

0 comments on commit 11fbd30

Please sign in to comment.