UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    16.04 OTA-5 kernel missing aes-xts-plain64 crypto ciphers on mako?

    Scheduled Pinned Locked Moved OS
    5 Posts 3 Posters 2.0k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chriscC Offline
      chrisc
      last edited by

      Hi

      I have been using cryptsetup to encrypt disks on Ubuntu Touch for some years without a problem, after each update I simple need to run the following to install cryptsetup again:

      sudo -i
      mount -o rw,remount /
      apt-get update
      apt-get install cryptsetup
      mount -o ro,remount /
      

      I have upgraded a OnePlusOne to 16.04 OTA-5 and decrypted disks without issues, however on a mako, I can no longer decrypt disks:

      cryptsetup luksOpen phablet.img phablet
      Enter passphrase for phablet.img: 
      device-mapper: reload ioctl on  failed: No such file or directory
      Failed to setup dm-crypt key mapping for device phablet.img.
      Check that kernel supports aes-xts-plain64 cipher (check syslog for more info).
      

      Checking the kernel and ciphers (as suggested here) on the mako:

      uname -a
       Linux ubuntu-phablet 3.4.0+ #4 SMP PREEMPT Wed Oct 10 19:51:07 UTC 2018 armv7l armv7l armv7l GNU/Linux
      grep name.*aes /proc/crypto|cut -d : -f 2
       cbc(aes)
       aes
      

      And on the OnePlusOne:

      uname -a
       Linux ubuntu-phablet 3.4.0-Sultan-CAF #1 SMP PREEMPT Thu Oct 11 23:00:58 CEST 2018 armv7l armv7l armv7l GNU/Linux
      grep name.*aes /proc/crypto|cut -d : -f 2
       __xts-aes-neonbs
       xts(aes)
       cbc(aes)
       rfc4309(ccm(aes))
       ccm(aes)
       authenc(hmac(sha1),cbc(aes))
       qcom-xts(aes)
       qcom-ctr(aes)
       qcom-cbc(aes)
       qcom-ecb(aes)
       aes
       xts(aes)
       ctr(aes)
       cbc(aes)
       __xts-aes-neonbs
       __ctr-aes-neonbs
       __cbc-aes-neonbs
       aes
      

      So was a decision made to leave some crypto modules out of the mako kernel? Anyone know what happened here?

      1 Reply Last reply Reply Quote 0
      • chriscC Offline
        chrisc
        last edited by

        I just upgraded my Nexus 4 mako to OTA-6 and the and the lack of ciphers is unchanged.

        1 Reply Last reply Reply Quote 0
        • flohackF Offline
          flohack
          last edited by

          No we did not decide anything, kernels are mostly untouched and taken from Android or LineageOS or Cyanogenmod if possible. Every change to an Android kernel can cause problems, so we do not want to make too many changes there.
          In this case we could however see if there is a huge disparity between supported ciphers and maybe unify them somehow. Please open a ticket on the ubuntu-touch tracker.

          My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

          chriscC 1 Reply Last reply Reply Quote 0
          • chriscC Offline
            chrisc @flohack
            last edited by

            @flohack said in 16.04 OTA-5 kernel missing aes-xts-plain64 crypto ciphers on mako?:

            Please open a ticket on the ubuntu-touch tracker.

            Thanks, I have opened a issue on GitHub.

            1 Reply Last reply Reply Quote 0
            • U Offline
              UniSuperBox
              last edited by

              Hey @chrisc, the issue you opened has been closed. Can you check to ensure it is working correctly?

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better πŸ’—

              Register Login
              • First post
                Last post