summaryrefslogtreecommitdiffstats
path: root/ncr-key-storage.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-09-06 20:40:43 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-06 23:15:24 +0200
commit95496890180536231adfb983dc67c629f26f0caf (patch)
treed0cdb577dac177d42d2e048fe75544679c8a2d20 /ncr-key-storage.c
parenta92443718f19ffc36fbe55d85a4785130a4b33c7 (diff)
downloadcryptodev-linux-95496890180536231adfb983dc67c629f26f0caf.tar.gz
cryptodev-linux-95496890180536231adfb983dc67c629f26f0caf.tar.xz
cryptodev-linux-95496890180536231adfb983dc67c629f26f0caf.zip
Rename CONFIG_AS*YM*METRIC, push into headers
Diffstat (limited to 'ncr-key-storage.c')
-rw-r--r--ncr-key-storage.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ncr-key-storage.c b/ncr-key-storage.c
index 59ed915..08c3264 100644
--- a/ncr-key-storage.c
+++ b/ncr-key-storage.c
@@ -69,7 +69,6 @@ int key_to_storage_data(uint8_t ** sdata, size_t * sdata_size,
if (key->type == NCR_KEY_TYPE_SECRET) {
pkey->raw_size = key->key.secret.size;
memcpy(pkey->raw, key->key.secret.data, pkey->raw_size);
-#ifdef CONFIG_ASSYMETRIC
} else if (key->type == NCR_KEY_TYPE_PRIVATE
|| key->type == NCR_KEY_TYPE_PUBLIC) {
pkey->raw_size = sizeof(pkey->raw);
@@ -78,7 +77,6 @@ int key_to_storage_data(uint8_t ** sdata, size_t * sdata_size,
err();
goto fail;
}
-#endif
} else {
err();
ret = -EINVAL;
@@ -124,7 +122,6 @@ int key_from_storage_data(struct key_item_st *key, const void *data,
}
key->key.secret.size = pkey->raw_size;
memcpy(key->key.secret.data, pkey->raw, pkey->raw_size);
-#ifdef CONFIG_ASSYMETRIC
} else if (key->type == NCR_KEY_TYPE_PUBLIC
|| key->type == NCR_KEY_TYPE_PRIVATE) {
int ret;
@@ -134,7 +131,6 @@ int key_from_storage_data(struct key_item_st *key, const void *data,
err();
return ret;
}
-#endif
} else {
err();
return -EINVAL;