mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
crypto_hash_polarssl_close works
This commit is contained in:
parent
9b09e34eb7
commit
a37314343f
1 changed files with 4 additions and 4 deletions
|
@ -30,15 +30,15 @@
|
|||
|
||||
struct crypto_hash_polarssl {
|
||||
struct crypto_hash ch;
|
||||
// gcry_md_hd_t md;
|
||||
rsa_context *ctx;
|
||||
};
|
||||
|
||||
static void crypto_hash_polarssl_close(struct crypto_hash *_ch)
|
||||
{
|
||||
// struct crypto_hash_polarssl *ch = container_of(_ch, struct crypto_hash_libgcrypt, ch);
|
||||
struct crypto_hash_polarssl *ch = (struct crypto_hash_polarssl *)_ch;
|
||||
|
||||
// gcry_md_close(ch->md);
|
||||
// free(ch);
|
||||
rsa_free(ch->ctx);
|
||||
free(ch);
|
||||
}
|
||||
|
||||
static void crypto_hash_polarssl_write(struct crypto_hash *_ch, const unsigned char *buf, size_t len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue