Lines Matching refs:c
14 static int encode_bits(int c) in encode_bits() argument
16 return pem_key[c]; in encode_bits()
19 static int decode_bits(char c) in decode_bits() argument
21 if (c >= 'A' && c <= 'Z') in decode_bits()
22 return c - 'A'; in decode_bits()
23 if (c >= 'a' && c <= 'z') in decode_bits()
24 return c - 'a' + 26; in decode_bits()
25 if (c >= '0' && c <= '9') in decode_bits()
26 return c - '0' + 52; in decode_bits()
27 if (c == '+') in decode_bits()
29 if (c == '/') in decode_bits()
31 if (c == '=') in decode_bits()
42 unsigned char a, b, c; in ceph_armor() local
50 c = *src++; in ceph_armor()
52 (c >> 6)); in ceph_armor()
53 *dst++ = encode_bits(c & 63); in ceph_armor()
79 int a, b, c, d; in ceph_unarmor() local
89 c = decode_bits(src[2]); in ceph_unarmor()
91 if (a < 0 || b < 0 || c < 0 || d < 0) in ceph_unarmor()
97 *dst++ = ((b & 15) << 4) | (c >> 2); in ceph_unarmor()
100 *dst++ = ((c & 3) << 6) | d; in ceph_unarmor()