// TODO: Add length checks func ParseCipherMsgPubKey(s string) (k *CipherMsgPubKey, err os.Error) { rsapub, err := rsa64.Base64ToPub(s) if err != nil { return nil, err } return &CipherMsgPubKey{rsapub}, nil }
// TODO: Add length checks func ParseSigPubKey(s string) (sk *SigPubKey, err os.Error) { rsapub, err := rsa64.Base64ToPub(s) if err != nil { return nil, err } return &SigPubKey{rsapub}, nil }