By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: DragonFlyBSD Lands “Next-Gen” Disk Encryption Code
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > DragonFlyBSD Lands “Next-Gen” Disk Encryption Code
Computing

DragonFlyBSD Lands “Next-Gen” Disk Encryption Code

News Room
Last updated: 2025/04/13 at 6:12 AM
News Room Published 13 April 2025
Share
SHARE

It’s been a while since having any exciting feature development to talk about with DragonFlyBSD but merged this past week was dm_target_crypt_ng, a next-generation implementation of their DM-crypt code for disk encryption.

DragonFlyBSD developer Michael Neumann re-engineered the DM-crypt code for this BSD operating system as this transparent disk encryption implementation compatible with Linux’s dm-crypt.

Michael Neumann explained in the initial commit landing this next-generation code:

“dm_target_crypt_ng – Add next-generation implementation

* No longer use opencrypto or cryptodev. These were asynchronous and caused a lot (!) of complications to the code.

* Instead, use our own set of crypto ciphers implemented in crypto_cipher.{c,h}, which is a simplified API to use symmetric block ciphers. It mostly calls out to the actual crypto algorithm implementations contained under sys/crypto.

* Interactivity is greatly improved! When running “blogbench” with the old dm_target_crypt module, “blogbench” basically “freezes” the system at around 400 number blogs (Nb). The mouse cursor continuously freezes for about 1 second. While the computer becomes slower when running dm_target_crypt_ng, no lag of mouse can be observed. The final “blogbench” performance result stays about the same. For example:

# dm_target_crypt (old)
Final score for writes: 2136
Final score for reads : 200584

# dm_target_crypt_ng (new)
Final score for writes: 2265
Final score for reads : 203668

* BIOs are processed by two worker pools, each having a set of threads bound to a particular CPU. Read requests need to be decrypted, while write requests need to be encrypted. Having a separate worker pool for read and write requests should provide more fairness. Requests are scheduled to the workers using round-robin, and “struct bio” is used to chain “requests” to be processed by worker threads. Read workers need no further memory to be allocated in order to decrypt the blocks. The write workers use a shared mpipe as before, as we need to copy the write buffer before encrypting it.

* Currently, dm_target_crypt_ng only supports AES-CBC and AES-XTS. Twofish and Serpent are not supported. They are said to be more secure, but also slower and do not have hardware support. It should be easy to bring them back into crypto_ciphers.{c,h}.

* If you want to try out the new module, add the following line to /boot/loader.conf:

dm_target_crypt_ng_load=YES

This might not work with “swapon” as it tries to manually load “dm_target_crypt”.

* My plan is to make “dm_target_crypt_ng” the default and remove the old “dm_target_crypt” after more intensive testing and feedback.”

Since that initial commit a few days ago there has been additional dm_target_crypt_ng patches being merged. Follow-up patches have refactored the crypto ciphers, improved the crypto cipher API, and introducing Twofish/Serpent CBC/XTS ciphers. Some nice improvements for those wanting to disk encryption with DragonFlyBSD.

DragonFlyBSD installer

As it’s been over two years since the previous release of this operating system, DragonFlyBSD 6.4, hopefully the next release will get wrapped up soon with this next-generation DM-crypt target and the many other enhancements that have queued up over this time.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Musk, Tesla caught in crosshairs of Trump trade war with China
Next Article I tested these would-be AirPods contenders with magnetic planar drivers — but the tariffs just wrecked my rating
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

How to Spot Fake Reviews on Amazon
Gadget
Chinese storage giant ChangXin Memory begins IPO counseling, previously valued at $19.5 billion · TechNode
Computing
This is an upgrade most cars could use, and it doesn’t require a mechanic
News
CMF Watch Pro 3 Cold Launch Soon; Price Surfaces Online
Software

You Might also Like

Computing

Chinese storage giant ChangXin Memory begins IPO counseling, previously valued at $19.5 billion · TechNode

1 Min Read
Computing

How Online Marketing Will Change In 2025 And Tools To Help You Adapt

16 Min Read
Computing

How to Master AI Orchestration for Smarter Automation |

31 Min Read
Computing

Researchers Uncover Batavia Windows Spyware Stealing Documents from Russian Firms

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?