Commit c3d5e739 authored by Karel Slaný's avatar Karel Slaný

Moved crypto pin functions into shared.

parent 3db83fc8
......@@ -29,13 +29,14 @@ winphone|winrt|win32 {
-Wall -Wextra -pedantic
SOURCES += \
src/crypto/crypto.c \
src/crypto/pin.c \
src/crypto/wrapped.cpp \
src/datovka_shared/crypto/crypto_pin.c \
src/datovka_shared/crypto/crypto_pwd.c
HEADERS += \
src/crypto/crypto.h \
src/crypto/pin.h \
src/crypto/wrapped.h \
src/datovka_shared/crypto/crypto_pin.h \
src/datovka_shared/crypto/crypto_pwd.h
LIBS += \
-lcrypto
......
......@@ -21,8 +21,8 @@
* the two.
*/
#include "src/crypto/pin.h"
#include "src/crypto/wrapped.h"
#include "src/datovka_shared/crypto/crypto_pin.h"
#include "src/datovka_shared/crypto/crypto_pwd.h"
QByteArray randomSalt(unsigned int len)
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -25,7 +25,7 @@
#include <limits.h>
#include <openssl/evp.h>
#include "src/crypto/pin.h"
#include "src/datovka_shared/crypto/crypto_pin.h"
/* Do not change these value as it will break PIN checking. */
#define PBKDF2_SHA256_NAME "PBKDF2-HMAC-SHA-256-64"
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -21,10 +21,9 @@
* the two.
*/
#ifndef _PIN_H_
#define _PIN_H_
#pragma once
#include <stdlib.h>
#include <stdlib.h> /* size_t */
#ifdef __cplusplus
extern "C" {
......@@ -68,5 +67,3 @@ extern const struct pin_alg pbkdf2_sha256;
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* _PIN_H_ */
......@@ -23,8 +23,8 @@
#include <QFileDialog>
#include "src/crypto/pin.h"
#include "src/crypto/wrapped.h"
#include "src/datovka_shared/crypto/crypto_pin.h"
#include "src/dialogues/dialogues.h"
#include "src/models/accountmodel.h"
#include "src/io/filesystem.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment