#ifndef RND_H #define RND_H #define HIG_ENTROPY_SOURCE "/dev/random" #define LOW_ENTROPY_SOURCE "/dev/urandom" /* secrand is not really secure, but the name only suggests it's better to use * than rand(3) when transferring bytes over the network in non-security * critical structure members. secrand() is only used to fill up salts actually. */ extern int secrand(void); extern void gen_key_bytes(unsigned char *area, size_t len); #endif /* RND_H */ xt.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2016-05-04 14:38:12 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2016-05-17 16:54:36 +0200
commit3c866568aff7dcfc0bbd5ffc7fcc34fa8f100f67 (patch)
treebfc1fac4d66074396bde169f4a4dfc26fbc6f8b5
parent7ff2760999a86e4d2b1af93dcf0f0d336c309571 (diff)
mmc: block: Always switch back to main area after RPMB access
In preparation to support the use of the RPMB partition with transfer modes that might require re-tuning, always switch back to the main area after RPMB access. RPMB is accessible only via IOCTL so only those paths are affected. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>