base64 standard in Ceph

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
    I'm trying to accelerate base64 encode/decode in Ceph.

    There's one contradictory logic in ceph_armor & ceph_unarmor:
    1. ceph_armor:
       It won't add new breakline '\n' in the encoded result.
       https://github.com/ceph/ceph/blob/master/src/common/armor.c#L85
       Note: line_width is always 0
       https://github.com/ceph/ceph/blob/master/src/common/armor.c#L96
    2. ceph_unarmor:
       It will use specific logic to deal with the new breakline in '\n'
       https://github.com/ceph/ceph/blob/master/src/common/armor.c#L106

    Why do we implement it in this way? Which version of base64 RFC is
    followd by Ceph?

B.R.
Changcheng
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx



[Index of Archives]     [CEPH Users]     [Ceph Devel]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux