• Herbert Xu's avatar
    crypto: api - Add instance free function to crypto_type · 319382a6
    Herbert Xu authored
    Currently the task of freeing an instance is given to the crypto
    template.  However, it has no type information on the instance so
    we have to resort to checking type information at runtime.
    
    This patch introduces a free function to crypto_type that will be
    used to free an instance.  This can then be used to free an instance
    in a type-safe manner.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    319382a6
algapi.c 20.6 KB