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:
76ec915
)
Submitted by: "Victor B. Wagner" <vitus@cryptocom.ru>
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 1 Jul 2009 11:23:07 +0000
(11:23 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 1 Jul 2009 11:23:07 +0000
(11:23 +0000)
Reviewed by: steve@openssl.org
EVP_CTRL_PBE_PRF_NID suppot for Gost engine.
engines/ccgost/gost_crypt.c
patch
|
blob
|
history
diff --git
a/engines/ccgost/gost_crypt.c
b/engines/ccgost/gost_crypt.c
index 954d150e51ce811f5473745806154fc5b84a820c..39bb6964469b203e8a426aa9ae3030d11a71888c 100644
(file)
--- a/
engines/ccgost/gost_crypt.c
+++ b/
engines/ccgost/gost_crypt.c
@@
-390,6
+390,14
@@
int gost_cipher_ctl(EVP_CIPHER_CTX *ctx,int type,int arg,void *ptr)
}
break;
}
+ case EVP_CTRL_PBE_PRF_NID:
+ if (ptr) {
+ *((int *)ptr)= NID_id_HMACGostR3411_94;
+ return 1;
+ } else {
+ return 0;
+ }
+
default:
GOSTerr(GOST_F_GOST_CIPHER_CTL,GOST_R_UNSUPPORTED_CIPHER_CTL_COMMAND);
return -1;