Lines Matching refs:c
15 static int encode_bits(int c) in encode_bits() argument
17 return pem_key[c]; in encode_bits()
20 static int decode_bits(char c) in decode_bits() argument
22 if (c >= 'A' && c <= 'Z') in decode_bits()
23 return c - 'A'; in decode_bits()
24 if (c >= 'a' && c <= 'z') in decode_bits()
25 return c - 'a' + 26; in decode_bits()
26 if (c >= '0' && c <= '9') in decode_bits()
27 return c - '0' + 52; in decode_bits()
28 if (c == '+') in decode_bits()
30 if (c == '/') in decode_bits()
32 if (c == '=') in decode_bits()
43 unsigned char a, b, c; in ceph_armor() local
51 c = *src++; in ceph_armor()
53 (c >> 6)); in ceph_armor()
54 *dst++ = encode_bits(c & 63); in ceph_armor()
80 int a, b, c, d; in ceph_unarmor() local
90 c = decode_bits(src[2]); in ceph_unarmor()
92 if (a < 0 || b < 0 || c < 0 || d < 0) in ceph_unarmor()
98 *dst++ = ((b & 15) << 4) | (c >> 2); in ceph_unarmor()
101 *dst++ = ((c & 3) << 6) | d; in ceph_unarmor()