]> Pileus Git - ~andy/linux/blobdiff - crypto/asymmetric_keys/x509_parser.h
keys: change asymmetric keys to use common hash definitions
[~andy/linux] / crypto / asymmetric_keys / x509_parser.h
index 87d9cc26f630625d7c57e3309456de2a356a46b5..04c81bd0f3f27b8a71042acc8ca575047900ccfd 100644 (file)
@@ -21,6 +21,8 @@ struct x509_certificate {
        char            *authority;             /* Authority key fingerprint as hex */
        struct tm       valid_from;
        struct tm       valid_to;
+       enum pkey_algo  pkey_algo : 8;          /* Public key algorithm */
+       enum hash_algo sig_hash_algo : 8;       /* Signature hash algorithm */
        const void      *tbs;                   /* Signed data */
        unsigned        tbs_size;               /* Size of signed data */
        unsigned        raw_sig_size;           /* Size of sigature */