BSD encryption reddit / BSD ---------------------------------------------------------------------- mikeyinthesfl · 2013-11-12 15:50 I asked this on another forum before finding this subreddit. Basically, I'm doing a group presentation on security in BSD, and my part is on encryption. I know operating systems fairly well (algos used in CPU scheduling, memory, etc) and I know encryption (symmetric vs asymmetric, etc). I don't need/want you to waste your time going over a lengthy lecture on all the parts of it in BSD. I just need a few words on where to start looking in Wiki/Google (the BSD crypto page still wasn't enough, neither was the Wiki). Just a general idea of where I should start looking. Is it mostly in disk encryption or is it just hashing the passwords and the rest is for network connections or....? ---------------------------------------------------------------------- [deleted] · 2013-11-12 16:28 Not sure which BSD you're looking for (or a historical perspective like 4.2 BSD or such) but here are some pointers for OpenBSD Try [the OpenBSD papers page](http://cvs.openbsd.org/papers/) or [their crypto page](http://openbsd.org/crypto.html). ---------------------------------------------------------------------- mikeyinthesfl · 2013-11-12 16:38 Yes I saw that OpenBSD crypto page but there were something still not clear in general terms of how BSD uses encryption such as: 1) Is disk encryption (TrueCrypt or whatever BSD is using, I know it varies but let's say in general) considered involved with the password hashing? Or is it more like the /etc/shadow file just has the hashed passwords that are run through something like SHA-3 or...? It seems like supervisor mode just switches between root and user with the each password (root or from users) being stored in that shadow file. But is the system itself (like logging on) not protected by disk encryption? TLDR: Is the hashing in protecting passwords the only protection used to protect the system from someone accessing the info needed to get into a root (or admin user account) or is there someone kind of logon disk encryption as well that would protect everything (like if the disk were taken out and switched to another box)? 2) Would the networking-related functionality like in OpenSSH be considered part of the encryption used in BSD or is that generally considered more of "available to any OS and not really a benefit to a specific OS such as BSD"? 3) Does BSD use any encryption algos that take advantage of the particular design of its monolithic kernel? Like, something like AES-256 that might be slower (vs AES-128 which is faster but slightly 'not as secure') to run somewhere else (not this exactly but just an example)? ---------------------------------------------------------------------- hercelf · 2013-11-12 16:44 Those are really nice links to start, and I'll also throw in another one: http://en.m.wikipedia.org/wiki/OpenBSD_security_features. Also, OpenBSD is capable of full-disk encryption using softraid. ---------------------------------------------------------------------- hercelf · 2013-11-12 16:56 1) Password hashing protects only the hashed passwords. Full disk encryption, as the name suggests, encrypts the whole disk device (with all the files on it). Different BSDs use different frameworks for disk encryption, DragonFlyBSD even has a BSD-licensed clone of it. 2) OpenSSH isn't BSD-specific, so I don't think the crypto in it should be considered as such. 3) Not sure about it, I can only point out that OpenBSD uses the AES- NI extended instruction set if it's available. ---------------------------------------------------------------------- phessler · 2013-11-12 18:08 #2: OpenBSD *is* the upstream for OpenSSH. This might matter, or it might not. ---------------------------------------------------------------------- mikeyinthesfl · 2013-11-12 21:17 Upstream? OpenSSH can be on any OS, but it's part of BSD project. Is there some advantage to the BSD system because of that? ---------------------------------------------------------------------- liveoneggs · 2013-11-13 01:56 [Crypto Disk](http://netbsd.gw.com/cgi-bin/man-cgi?cgd++NetBSD- current) [more cgd](https://www.usenix.org/legacy/event/usenix03/tech/freenix03 /full_papers/dowdeswell/dowdeswell.pdf) [NetPGP](http://netbsd.gw.com/cgi-bin/man-cgi?netpgp++NetBSD-current) ---------------------------------------------------------------------- noahpugsley · 2013-11-13 02:37 http://undeadly.org/cgi?action=article&sid=20131112031806&mode=flat&co unt=2 ---------------------------------------------------------------------- ashemedai · 2013-11-13 10:23 In FreeBSD the manual page for random(4) mentions the Yarrow algorithm. You can also look at OpenBSD's random(4) and check the entries for arandom and srandom. All these are important cornerstones for encryption and hashing within the respective BSDs. ---------------------------------------------------------------------- killermouse0 · 2013-11-13 18:39 OpenSSH is a part of OpenBSD which is ported to other environments. Advantage ? Well, the latest version/patches/enhancements will always be available on OpenBSD first. ---------------------------------------------------------------------- espero · 2013-11-30 13:35 Yes. If stuck in the manuals, try LUKSUS for automated cgd disk and virtualcontainer encryption http://thomasfrivold.github.io/luksus