void function ( byte [ ] arg0 , KeyPair arg1 ) { String loc0 = detectKeyAlgorithm ( arg1 ) ; writeUTF ( loc0 ) ; writeKey ( arg1 . getPublic ( ) ) ; Signature loc1 = Signature . getInstance ( "srini_string" + loc0 ) ; loc1 . initSign ( arg1 . getPrivate ( ) ) ; loc1 . update ( arg1 . getPublic ( ) . getEncoded ( ) ) ; loc1 . update ( arg0 ) ; writeObject ( loc1 . sign ( ) ) ; }
used in conjunction with #verifyidentity byte to provethat we actually own the private key of the given key pair . concode_field_sep InputStream in concode_elem_sep DataOutputStream dout concode_elem_sep DataInputStream din concode_elem_sep OutputStream out concode_field_sep void writeByteArray concode_elem_sep PublicKey verifyIdentity concode_elem_sep void writeObject concode_elem_sep KeyAgreement diffieHellman concode_elem_sep KeyAgreement diffieHellman concode_elem_sep X509EncodedKeySpec readKey concode_elem_sep Connection encryptConnection concode_elem_sep T readObject concode_elem_sep void writeKey concode_elem_sep byte[] fold concode_elem_sep String readUTF concode_elem_sep byte[] readByteArray concode_elem_sep void writeUTF concode_elem_sep boolean readBoolean concode_elem_sep void close concode_elem_sep void writeBoolean concode_elem_sep String detectKeyAlgorithm concode_elem_sep String detectKeyAlgorithm