[crypto] Split crypto_algorithm into {digest,cipher,pubkey}_algorithm
The various types of cryptographic algorithm are fundamentally different, and it was probably a mistake to try to handle them via a single common type. pubkey_algorithm is a placeholder type for now.
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
|
||||
#include "crypto/axtls/crypto.h"
|
||||
|
||||
struct crypto_algorithm;
|
||||
struct digest_algorithm;
|
||||
|
||||
#define SHA1_CTX_SIZE sizeof ( SHA1_CTX )
|
||||
#define SHA1_DIGEST_SIZE SHA1_SIZE
|
||||
|
||||
extern struct crypto_algorithm sha1_algorithm;
|
||||
extern struct digest_algorithm sha1_algorithm;
|
||||
|
||||
#endif /* _GPXE_SHA1_H */
|
||||
|
||||
Reference in New Issue
Block a user