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