mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
List and check sigs works
This commit is contained in:
parent
649eae8f1b
commit
5c1cca042e
35 changed files with 1007 additions and 793 deletions
12
g10/seskey.c
12
g10/seskey.c
|
@ -179,3 +179,15 @@ encode_md5_value( byte *md, unsigned len, unsigned nbits )
|
|||
return frame;
|
||||
}
|
||||
|
||||
MPI
|
||||
encode_md_value( MD_HANDLE *md, unsigned nbits )
|
||||
{
|
||||
byte *p = md_final( md );
|
||||
if( md->algo == DIGEST_ALGO_MD5 )
|
||||
return encode_md5_value( p, 16, nbits );
|
||||
else if( md->algo == DIGEST_ALGO_RMD160 )
|
||||
return encode_rmd160_value( p, 20, nbits );
|
||||
else
|
||||
log_bug(NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue