+/*
+ * Copyright (c) 2008-2012, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
return 0;
}
+int
+solv_chksum_len(Id type)
+{
+ switch (type)
+ {
+ case REPOKEY_TYPE_MD5:
+ return 16;
+ case REPOKEY_TYPE_SHA1:
+ return 20;
+ case REPOKEY_TYPE_SHA256:
+ return 32;
+ default:
+ return 0;
+ }
+}
+
void *
solv_chksum_create_from_bin(Id type, const unsigned char *buf)
{