Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2827
b: refs/heads/master
c: 3cc3816
h: refs/heads/master
i:
  2825: 1754178
  2823: f2fad69
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jun 22, 2005
1 parent 3182c4d commit c0a93ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef2736fc741316913a457abd3731053071c86241
refs/heads/master: 3cc3816f93e3f94f88503da8e6090302fa986bd6
10 changes: 5 additions & 5 deletions trunk/crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,16 @@ static void test_cipher(char *algo, int mode, int enc,
char *key;
struct cipher_testvec *cipher_tv;
struct scatterlist sg[8];
char e[11], m[4];
const char *e, *m;

if (enc == ENCRYPT)
strncpy(e, "encryption", 11);
e = "encryption";
else
strncpy(e, "decryption", 11);
e = "decryption";
if (mode == MODE_ECB)
strncpy(m, "ECB", 4);
m = "ECB";
else
strncpy(m, "CBC", 4);
m = "CBC";

printk("\ntesting %s %s %s\n", algo, m, e);

Expand Down

0 comments on commit c0a93ec

Please sign in to comment.