projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21a5b6c
)
Output keys correctly.
author
Ben Laurie
<ben@openssl.org>
Thu, 18 Dec 2003 12:44:27 +0000
(12:44 +0000)
committer
Ben Laurie
<ben@openssl.org>
Thu, 18 Dec 2003 12:44:27 +0000
(12:44 +0000)
fips/des/fips_desmovs.c
patch
|
blob
|
history
diff --git
a/fips/des/fips_desmovs.c
b/fips/des/fips_desmovs.c
index d38e2601db5b381acf08bf2e32347670dc641649..b90d5cb376c11e23061a9c8ef596b47d30df39f5 100644
(file)
--- a/
fips/des/fips_desmovs.c
+++ b/
fips/des/fips_desmovs.c
@@
-284,9
+284,18
@@
void do_mct(char *amode,
int n;
EVP_CIPHER_CTX ctx;
unsigned char old_iv[8];
+ int kp=akeysz/64;
fprintf(rfp,"\nCOUNT = %d\n",i);
- OutputValue("KEY",akey,akeysz/8,rfp,0);
+ if(kp == 1)
+ OutputValue("KEY",akey,8,rfp,0);
+ else
+ for(n=0 ; n < kp ; ++n)
+ {
+ fprintf(rfp,"KEY%d",n+1);
+ OutputValue("",akey+n*8,8,rfp,0);
+ }
+
if(imode != ECB)
OutputValue("IV",ivec,8,rfp,0);
OutputValue(t_tag[dir^1],text,len,rfp,imode == CFB1);