Full paper (pdf) - CDC

Full paper (pdf) - CDC Full paper (pdf) - CDC

cdc.informatik.tu.darmstadt.de
von cdc.informatik.tu.darmstadt.de Mehr von diesem Publisher
04.02.2013 Aufrufe

Anhang E Benutzerhandbuch Programmierschnittstelle E.1 Secret-Sharing-Basisfunktionalität Geheimnis verteilen public static SecretShare[] share (byte[] secret, int threshold, int sharenumber) throws InvalidParameterException, NoSuchAlgorithmException Integritätspaßwort setzen public static void protectIntegrity (PasswordIntegrityProtected[] shares, String password) throws NoSuchAlgorithmException Anteile serialisieren byte[] bytes = share.getEncoded(); Anteile zusammensetzen public static byte[] combine (SecretShare[] shares) throws NoSuchAlgorithmException, SecretSharingException public static byte[] checkAndCombine (SecretShare[] shares, String integrityPassword) throws NoSuchAlgorithmException, SecretSharingException E.2 Key-Sharing-Basisfunktionalität Schlüssel verteilen 89

public static KeyShare[] share (Key secret, int threshold, int sharenumber) throws InvalidParameterException, NoSuchAlgorithmException, InvalidKeySpecException Teilsignaturen und Teilentschlüsselungen erstellen Signature signer = Signature.getInstance("DistributedMD5withRSA"); signer.initSign(keyshare); signer.update(message); byte[] partialSignature = signer.sign(); Teilberechnungen zusammenführen public static byte[] combine (byte[][] shares, byte[] message) throws NoSuchAlgorithmException, SecretSharingException E.3 Der Shamir-KeyStore Konfiguration

Anhang E<br />

Benutzerhandbuch<br />

Programmierschnittstelle<br />

E.1 Secret-Sharing-Basisfunktionalität<br />

Geheimnis verteilen<br />

public static SecretShare[] share<br />

(byte[] secret, int threshold, int sharenumber)<br />

throws InvalidParameterException, NoSuchAlgorithmException<br />

Integritätspaßwort setzen<br />

public static void protectIntegrity<br />

(PasswordIntegrityProtected[] shares, String password)<br />

throws NoSuchAlgorithmException<br />

Anteile serialisieren<br />

byte[] bytes = share.getEncoded();<br />

Anteile zusammensetzen<br />

public static byte[] combine<br />

(SecretShare[] shares)<br />

throws NoSuchAlgorithmException, SecretSharingException<br />

public static byte[] checkAndCombine<br />

(SecretShare[] shares, String integrityPassword)<br />

throws NoSuchAlgorithmException, SecretSharingException<br />

E.2 Key-Sharing-Basisfunktionalität<br />

Schlüssel verteilen<br />

89

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!