func ReadArmoredKeyRing(r io.Reader) (EntityList, error) {
	block, err := armor.Decode(r)
	if err == io.EOF {
		return nil, errors.InvalidArgumentError("no armored data found")
	}
	if err != nil {
		return nil, err
	}
	if block.Type != PublicKeyType && block.Type != PrivateKeyType {
		return nil, errors.InvalidArgumentError("expected public or private key block, got: " + block.Type)
	}

	return ReadKeyRing(block.Body)
}
// ReadArmoredKeyRing reads one or more public/private keys from an armor keyring file.
ReadArmoredKeyRing reads one or more public/private keys from an armor keyring file.
// ReadArmoredKeyRing reads one or more public / private keys from an armor keyring file .
func ReadArmoredKeyRing(r io.Reader) (EntityList, error) {
	block, err := armor.Decode(r)
	if err == io.EOF {
		return nil, errors.InvalidArgumentError("no armored data found")
	}
	if err != nil {
		return nil, err
	}
	if block.Type != PublicKeyType && block.Type != PrivateKeyType {
		return nil, errors.InvalidArgumentError("expected public or private key block, got: " + block.Type)
	}
	return ReadKeyRing(block.Body)
}
func ReadArmoredKeyRing ( r io . Reader ) ( EntityList , error ) { block , err := armor . Decode ( r ) if err == io . EOF { return nil , errors . InvalidArgumentError ( " " ) } if err != nil { return nil , err } if block . Type != PublicKeyType && block . Type != PrivateKeyType { return nil , errors . InvalidArgumentError ( " " + block . Type ) } return ReadKeyRing ( block . Body ) }
ReadArmoredKeyRing reads one or more public/private keys from an armor keyring file.
ReadArmoredKeyRing reads one or more public / private keys from an armor keyring file .