diff options
Diffstat (limited to 'crypto/tcrypt.h')
-rw-r--r-- | crypto/tcrypt.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/crypto/tcrypt.h b/crypto/tcrypt.h index 1f683ba794ee..1fac5602f633 100644 --- a/crypto/tcrypt.h +++ b/crypto/tcrypt.h | |||
@@ -65,6 +65,11 @@ struct cipher_speed { | |||
65 | unsigned int blen; | 65 | unsigned int blen; |
66 | }; | 66 | }; |
67 | 67 | ||
68 | struct digest_speed { | ||
69 | unsigned int blen; /* buffer length */ | ||
70 | unsigned int plen; /* per-update length */ | ||
71 | }; | ||
72 | |||
68 | /* | 73 | /* |
69 | * MD4 test vectors from RFC1320 | 74 | * MD4 test vectors from RFC1320 |
70 | */ | 75 | */ |
@@ -2975,4 +2980,35 @@ static struct cipher_speed des_speed_template[] = { | |||
2975 | { .klen = 0, .blen = 0, } | 2980 | { .klen = 0, .blen = 0, } |
2976 | }; | 2981 | }; |
2977 | 2982 | ||
2983 | /* | ||
2984 | * Digest speed tests | ||
2985 | */ | ||
2986 | static struct digest_speed generic_digest_speed_template[] = { | ||
2987 | { .blen = 16, .plen = 16, }, | ||
2988 | { .blen = 64, .plen = 16, }, | ||
2989 | { .blen = 64, .plen = 64, }, | ||
2990 | { .blen = 256, .plen = 16, }, | ||
2991 | { .blen = 256, .plen = 64, }, | ||
2992 | { .blen = 256, .plen = 256, }, | ||
2993 | { .blen = 1024, .plen = 16, }, | ||
2994 | { .blen = 1024, .plen = 256, }, | ||
2995 | { .blen = 1024, .plen = 1024, }, | ||
2996 | { .blen = 2048, .plen = 16, }, | ||
2997 | { .blen = 2048, .plen = 256, }, | ||
2998 | { .blen = 2048, .plen = 1024, }, | ||
2999 | { .blen = 2048, .plen = 2048, }, | ||
3000 | { .blen = 4096, .plen = 16, }, | ||
3001 | { .blen = 4096, .plen = 256, }, | ||
3002 | { .blen = 4096, .plen = 1024, }, | ||
3003 | { .blen = 4096, .plen = 4096, }, | ||
3004 | { .blen = 8192, .plen = 16, }, | ||
3005 | { .blen = 8192, .plen = 256, }, | ||
3006 | { .blen = 8192, .plen = 1024, }, | ||
3007 | { .blen = 8192, .plen = 4096, }, | ||
3008 | { .blen = 8192, .plen = 8192, }, | ||
3009 | |||
3010 | /* End marker */ | ||
3011 | { .blen = 0, .plen = 0, } | ||
3012 | }; | ||
3013 | |||
2978 | #endif /* _CRYPTO_TCRYPT_H */ | 3014 | #endif /* _CRYPTO_TCRYPT_H */ |