nl: uses a private key to sign data in a cms signeddata structure and returns the encoded cms signeddata as bytes . ` signedauthpack ' contains a cms type contentinfo encoded according to rfc3852 . the contenttype field of the type contentinfo is id-signeddata 1.2.840.113549.1.7.2 , and the content field is a signeddata . the econtenttype field for the type signeddata is id-pkinit-authdata 1.3.6.1.5.2.3.1 , and the econtent field contains the der encoding of the type authpack . concode_field_sep String ID_PKINIT_AUTHDATA concode_field_sep byte[] getSignedKdcDhKeyInfo concode_elem_sep byte[] getSignedReplyKeyPack
code: byte [ ] function ( PrivateKey arg0 , X509Certificate arg1 , AuthPack arg2 ) { byte [ ] loc0 = KrbCodec . encode ( arg2 ) ; byte [ ] loc1 ; try { loc1 = PkiUtil . getSignedData ( arg0 , arg1 , loc0 , ID_PKINIT_AUTHDATA ) ; } catch ( PkiException loc2 ) { throw new KrbException ( "srini_string" , loc2 ) ; } return loc1 ; }