Add ability to search for keys using WKD protocol

If a search pattern that looks like an email address is found
an additional query using Web Key Directory will be performed.

Implements basic flow described in "Key Discovery" [0] I-D.
Querying SRV records is not supported.

Fixes partially #2270.

[0]: https://tools.ietf.org/html/draft-koch-openpgp-webkey-service-05#section-3.1
This commit is contained in:
Wiktor Kwapisiewicz
2018-05-08 16:08:34 +02:00
parent cfc5cc4c44
commit fa3b32eddc
7 changed files with 235 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
package org.sufficientlysecure.keychain.util;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ZBase32Test {
@Test
public void encode() {
assertEquals("yyyoryar", ZBase32.encode(new byte[]{0, 1, 2, 3, 4}));
}
}