diff options
author | Erlend Aasland <erlend-a@us.his.no> | 2003-09-11 02:43:45 -0700 |
---|---|---|
committer | Hideaki Yoshifuji <yoshfuji@linux-ipv6.org> | 2003-09-11 02:43:45 -0700 |
commit | ecfb14f35acbc3f6047a52cedf4dd762ab8c7b12 (patch) | |
tree | a2d755e931e61e136cfa2082a5484047db8258e8 /crypto | |
parent | d90a0b5ba2407f6c82a871067a512909b20cbc0b (diff) | |
download | history-ecfb14f35acbc3f6047a52cedf4dd762ab8c7b12.tar.gz |
[CRYPTO]: Add alg. type to /proc/crypto output.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/proc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/proc.c b/crypto/proc.c index 011085bf3a137f..630ba91c08f139 100644 --- a/crypto/proc.c +++ b/crypto/proc.c @@ -57,6 +57,7 @@ static int c_show(struct seq_file *m, void *p) switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { case CRYPTO_ALG_TYPE_CIPHER: + seq_printf(m, "type : cipher\n"); seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); seq_printf(m, "min keysize : %u\n", alg->cra_cipher.cia_min_keysize); @@ -65,10 +66,17 @@ static int c_show(struct seq_file *m, void *p) break; case CRYPTO_ALG_TYPE_DIGEST: + seq_printf(m, "type : digest\n"); seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); seq_printf(m, "digestsize : %u\n", alg->cra_digest.dia_digestsize); break; + case CRYPTO_ALG_TYPE_COMPRESS: + seq_printf(m, "type : compression\n"); + break; + default: + seq_printf(m, "type : unknown\n"); + break; } seq_putc(m, '\n'); |