OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [crypto/] [autoload.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * Cryptographic API.
3
 *
4
 * Algorithm autoloader.
5
 *
6
 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
7
 *
8
 * This program is free software; you can redistribute it and/or modify it
9
 * under the terms of the GNU General Public License as published by the Free
10
 * Software Foundation; either version 2 of the License, or (at your option)
11
 * any later version.
12
 *
13
 */
14
#include <linux/kernel.h>
15
#include <linux/crypto.h>
16
#include <linux/string.h>
17
#include <linux/kmod.h>
18
#include "internal.h"
19
 
20
/*
21
 * A far more intelligent version of this is planned.  For now, just
22
 * try an exact match on the name of the algorithm.
23
 */
24
void crypto_alg_autoload(const char *name)
25
{
26
        request_module(name);
27
}
28
 
29
struct crypto_alg *crypto_alg_mod_lookup(const char *name)
30
{
31
        struct crypto_alg *alg = crypto_alg_lookup(name);
32
        if (alg == NULL) {
33
                crypto_alg_autoload(name);
34
                alg = crypto_alg_lookup(name);
35
        }
36
        return alg;
37
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.