/*
* signature record
*/
-struct ksign_signature
-{
+struct ksign_signature {
uint32_t keyid[2]; /* 64 bit keyid */
time_t timestamp; /* signature made */
uint8_t version;
/*
* public key record
*/
-struct ksign_public_key
-{
+struct ksign_public_key {
struct list_head link;
atomic_t count; /* ref count */
time_t timestamp; /* key made */
/*
* user ID record
*/
-struct ksign_user_id
-{
+struct ksign_user_id {
int len; /* length of the name */
char name[0];
};
* - we _know_ the data is locked into kernel memory, so we don't want to have
* to kmap() it
*/
-static inline void SHA1_putc(struct crypto_tfm *sha1, uint8_t ch)
+static inline void SHA1_putc(struct hash_desc *sha1, uint8_t ch)
{
- crypto_digest_update_kernel(sha1, &ch, 1);
+ crypto_hash_update_kernel(sha1, &ch, 1);
}
-static inline void SHA1_write(struct crypto_tfm *sha1, const void *s, size_t n)
+static inline void SHA1_write(struct hash_desc *sha1, const void *s, size_t n)
{
- crypto_digest_update_kernel(sha1, s, n);
+ crypto_hash_update_kernel(sha1, s, n);
}